Class GerritProject.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<GerritProject>
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject.DescriptorImpl
- Enclosing class:
- GerritProject
Descriptor allowing for communication within the Repeatable.
Necessary for editable combobox.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoFillPatternItems(Item project, String serverName) Used to fill the project pattern combobox with AJAX.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
doFillPatternItems
public ComboBoxModel doFillPatternItems(@AncestorInPath Item project, @QueryParameter("serverName") @RelativePath("..") String serverName) Used to fill the project pattern combobox with AJAX. The filled values will depend on the server that the user has chosen from the dropdown.- Parameters:
project- the current project.serverName- the name of the server that the user has chosen.- Returns:
- ComboBoxModels containing a list of all Gerrit Projects found on that server.
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<GerritProject>
-