Package jenkins.branch
Class BranchPropertyDescriptor
- Direct Known Subclasses:
BuildRetentionBranchProperty.DescriptorImpl,NoTriggerBranchProperty.DescriptorImpl,RateLimitBranchProperty.DescriptorImpl,UntrustedBranchProperty.DescriptorImpl
Descriptor for BranchProperty.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classEnsures that the configuration screen of (for example)DefaultBranchPropertyStrategyshows only appropriate descriptors.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 TypeMethodDescriptionstatic List<BranchPropertyDescriptor>all()All the registeredBranchPropertyDescriptors.static List<BranchPropertyDescriptor>all(MultiBranchProject project) Gets all theBranchPropertyDescriptorinstances applicable to the specified project.booleanisApplicable(MultiBranchProject project) A branch property may not be appropriate for every project, this method lets a property opt out of being selectable for a specific project.protected booleanisApplicable(MultiBranchProjectDescriptor projectDescriptor) Usually a branch property is more concerned with the specific type of project than the specifics of the project instance.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
-
BranchPropertyDescriptor
public BranchPropertyDescriptor()
-
-
Method Details
-
isApplicable
A branch property may not be appropriate for every project, this method lets a property opt out of being selectable for a specific project.- Parameters:
project- the project.- Returns:
- true iff this property is relevant with this project instance.
-
isApplicable
Usually a branch property is more concerned with the specific type of project than the specifics of the project instance.- Parameters:
projectDescriptor- the project type.- Returns:
- true iff this property is relevant with this project type.
-
all
All the registeredBranchPropertyDescriptors.- Returns:
- All the registered
BranchPropertyDescriptors.
-
all
Gets all theBranchPropertyDescriptorinstances applicable to the specified project. Probably unused.- Parameters:
project- the project- Returns:
- all the
BranchPropertyDescriptorinstances applicable to the specified project.
-