public abstract class BranchPropertyDescriptor extends hudson.model.Descriptor<BranchProperty>
Descriptor
for BranchProperty
.Modifier and Type | Class and Description |
---|---|
static class |
BranchPropertyDescriptor.Visibility
Ensures that the configuration screen of (for example)
DefaultBranchPropertyStrategy shows only appropriate descriptors. |
Constructor and Description |
---|
BranchPropertyDescriptor() |
Modifier and Type | Method and Description |
---|---|
static List<BranchPropertyDescriptor> |
all()
All the registered
BranchPropertyDescriptor s. |
static List<BranchPropertyDescriptor> |
all(MultiBranchProject project)
Gets all the
BranchPropertyDescriptor 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.
|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public boolean isApplicable(@NonNull MultiBranchProject project)
project
- the project.protected boolean isApplicable(@NonNull MultiBranchProjectDescriptor projectDescriptor)
projectDescriptor
- the project type.public static List<BranchPropertyDescriptor> all()
BranchPropertyDescriptor
s.BranchPropertyDescriptor
s.public static List<BranchPropertyDescriptor> all(@NonNull MultiBranchProject project)
BranchPropertyDescriptor
instances applicable to the specified project.
Probably unused.project
- the projectBranchPropertyDescriptor
instances applicable to the specified project.Copyright © 2016–2017. All rights reserved.