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
Modifier and TypeClassDescriptionstatic final class
Ensures that the configuration screen of (for example)DefaultBranchPropertyStrategy
shows 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<BranchPropertyDescriptor>
all()
All the registeredBranchPropertyDescriptor
s.static List<BranchPropertyDescriptor>
all
(MultiBranchProject project) Gets all theBranchPropertyDescriptor
instances applicable to the specified project.boolean
isApplicable
(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 boolean
isApplicable
(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, calcAutoCompleteSettings, calcFillSettings, configure, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, 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 registeredBranchPropertyDescriptor
s.- Returns:
- All the registered
BranchPropertyDescriptor
s.
-
all
Gets all theBranchPropertyDescriptor
instances applicable to the specified project. Probably unused.- Parameters:
project
- the project- Returns:
- all the
BranchPropertyDescriptor
instances applicable to the specified project.
-