Package hudson.plugins.promoted_builds
Class PromotionTrigger.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<Trigger<?>>
-
- hudson.triggers.TriggerDescriptor
-
- hudson.plugins.promoted_builds.PromotionTrigger.DescriptorImpl
-
- Enclosing class:
- PromotionTrigger
@Extension public static class PromotionTrigger.DescriptorImpl extends TriggerDescriptor
-
-
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 AutoCompletionCandidates
doAutoCompleteJobName(String value)
FormValidation
doCheckJobName(Item project, String value)
Checks the job name.ListBoxModel
doFillProcessItems(Item defaultJob, String jobName)
Fills in the available promotion processes.String
getDisplayName()
boolean
isApplicable(Item item)
-
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
-
isApplicable
public boolean isApplicable(Item item)
- Specified by:
isApplicable
in classTriggerDescriptor
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<Trigger<?>>
-
doCheckJobName
public FormValidation doCheckJobName(@AncestorInPath Item project, @QueryParameter String value)
Checks the job name.- Parameters:
project
- Current projectvalue
- Value to be validated- Returns:
- Validation result
-
doAutoCompleteJobName
public AutoCompletionCandidates doAutoCompleteJobName(@QueryParameter String value)
-
doFillProcessItems
public ListBoxModel doFillProcessItems(@AncestorInPath Item defaultJob, @QueryParameter("jobName") String jobName)
Fills in the available promotion processes.- Parameters:
defaultJob
- Base jobjobName
- Current name of the job specified in the form- Returns:
- List of possible project names. May be empty
-
-