Package hudson.plugins.git.util
Class BuildChooserDescriptor
- Direct Known Subclasses:
AncestryBuildChooser.DescriptorImpl
,DefaultBuildChooser.DescriptorImpl
,InverseBuildChooser.DescriptorImpl
- Author:
- Kohsuke Kawaguchi
-
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 TypeMethodDescriptionall()
Before this extension point was formalized, existingBuildChooser
s had a hard-coded ID name used for the persistence.boolean
isApplicable
(Class<? extends Item> job) Returns true if this build chooser is applicable to the given job type.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
BuildChooserDescriptor
public BuildChooserDescriptor()
-
-
Method Details
-
getLegacyId
Before this extension point was formalized, existingBuildChooser
s had a hard-coded ID name used for the persistence. This method returns those legacy ID, if any, to keep compatibility with existing data.- Returns:
- legacy ID, if any, to keep compatibility with existing data.
-
all
-
isApplicable
Returns true if this build chooser is applicable to the given job type.- Parameters:
job
- the type of job or item.- Returns:
- true to allow user to select this build chooser.
-