public abstract static class AbstractProject.AbstractProjectDescriptor extends TopLevelItemDescriptor
AbstractProject
subtypes should implement this base class as a descriptor.Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
clazz
Constructor and Description |
---|
AbstractProjectDescriptor() |
Modifier and Type | Method and Description |
---|---|
AutoCompletionCandidates |
doAutoCompleteAssignedLabelString(String value) |
AutoCompletionCandidates |
doAutoCompleteLabel(String value) |
AutoCompletionCandidates |
doAutoCompleteUpstreamProjects(String value) |
FormValidation |
doCheckAssignedLabelString(AbstractProject<?,?> project,
String value) |
FormValidation |
doCheckCustomWorkspace(String customWorkspace) |
FormValidation |
doCheckLabel(AbstractProject<?,?> project,
String value) |
List<SCMCheckoutStrategyDescriptor> |
getApplicableSCMCheckoutStrategyDescriptors(AbstractProject p) |
boolean |
isApplicable(Descriptor descriptor)
AbstractProject subtypes can override this method to veto some Descriptor s
from showing up on their configuration screen. |
static FormValidation |
validateLabelExpression(String value,
AbstractProject<?,?> project)
Deprecated.
Use
LabelExpression.validate(String, Item) instead. |
all, checkApplicableIn, getCategoryId, getDescription, getDisplayName, getIconClassName, getIconFilePath, getIconFilePathPattern, isApplicableIn, newInstance, newInstance, newInstance, testInstance
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, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public boolean isApplicable(Descriptor descriptor)
AbstractProject
subtypes can override this method to veto some Descriptor
s
from showing up on their configuration screen. This is often useful when you are building
a workflow/company specific project type, where you want to limit the number of choices
given to the users.
Some Descriptor
s define their own schemes for controlling applicability
(such as BuildStepDescriptor.isApplicable(Class)
),
This method works like AND in conjunction with them;
Both this method and that method need to return true in order for a given Descriptor
to show up for the given Project
.
The default implementation returns true for everything.
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public FormValidation doCheckAssignedLabelString(@AncestorInPath AbstractProject<?,?> project, @QueryParameter String value)
public FormValidation doCheckLabel(@AncestorInPath AbstractProject<?,?> project, @QueryParameter String value)
@Deprecated @NonNull public static FormValidation validateLabelExpression(String value, @CheckForNull AbstractProject<?,?> project)
LabelExpression.validate(String, Item)
instead.project
- May be specified to perform project specific validation.public FormValidation doCheckCustomWorkspace(@QueryParameter String customWorkspace)
public AutoCompletionCandidates doAutoCompleteUpstreamProjects(@QueryParameter String value)
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public AutoCompletionCandidates doAutoCompleteAssignedLabelString(@QueryParameter String value)
public AutoCompletionCandidates doAutoCompleteLabel(@QueryParameter String value)
public List<SCMCheckoutStrategyDescriptor> getApplicableSCMCheckoutStrategyDescriptors(AbstractProject p)
Copyright © 2004–2022. All rights reserved.