Class GerritProject.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<GerritProject>
-
- com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject.DescriptorImpl
-
- Enclosing class:
- GerritProject
@Extension public static final class GerritProject.DescriptorImpl extends Descriptor<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 Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComboBoxModel
doFillPatternItems(Item project, String serverName)
Used to fill the project pattern combobox with AJAX.String
getDisplayName()
-
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
-
-
-
-
Method Detail
-
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
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<GerritProject>
-
-