Package hudson.model
Class AbstractProject.AbstractProjectDescriptor
java.lang.Object
hudson.model.Descriptor<TopLevelItem>
hudson.model.TopLevelItemDescriptor
hudson.model.AbstractProject.AbstractProjectDescriptor
- Direct Known Subclasses:
FreeStyleProject.DescriptorImpl
- Enclosing class:
AbstractProject<P extends AbstractProject<P,R>, R extends AbstractBuild<P, R>>
public abstract static class AbstractProject.AbstractProjectDescriptor
extends TopLevelItemDescriptor
AbstractProject subtypes should implement this base class as a descriptor.- Since:
- 1.294
-
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 TypeMethodDescriptiondoAutoCompleteLabel(String value) doCheckAssignedLabelString(AbstractProject<?, ?> project, String value) doCheckCustomWorkspace(String customWorkspace) doCheckLabel(AbstractProject<?, ?> project, String value) booleanisApplicable(Descriptor descriptor) AbstractProjectsubtypes can override this method to veto someDescriptors from showing up on their configuration screen.static FormValidationvalidateLabelExpression(String value, AbstractProject<?, ?> project) Deprecated.Methods inherited from class hudson.model.TopLevelItemDescriptor
all, checkApplicableIn, doCheckDisplayNameOrNull, getCategoryId, getDescription, getDisplayName, getIconClassName, getIconFilePath, getIconFilePathPattern, isApplicableIn, newInstance, newInstance, newInstance, testInstanceMethods 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, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
AbstractProjectDescriptor
public AbstractProjectDescriptor()
-
-
Method Details
-
isApplicable
AbstractProjectsubtypes can override this method to veto someDescriptors 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
Descriptors define their own schemes for controlling applicability (such asBuildStepDescriptor.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 givenDescriptorto show up for the givenProject.The default implementation returns true for everything.
- Overrides:
isApplicablein classTopLevelItemDescriptor- See Also:
-
doCheckAssignedLabelString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public FormValidation doCheckAssignedLabelString(@AncestorInPath AbstractProject<?, ?> project, @QueryParameter String value) -
doCheckLabel
public FormValidation doCheckLabel(@AncestorInPath AbstractProject<?, ?> project, @QueryParameter String value) -
validateLabelExpression
@Deprecated @NonNull public static FormValidation validateLabelExpression(String value, @CheckForNull AbstractProject<?, ?> project) Deprecated.UseLabelExpression.validate(String, Item)instead.Validate label expression string.- Parameters:
project- May be specified to perform project specific validation.- Since:
- 1.590
-
doCheckCustomWorkspace
-
doAutoCompleteUpstreamProjects
-
doAutoCompleteAssignedLabelString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public AutoCompletionCandidates doAutoCompleteAssignedLabelString(@QueryParameter String value) -
doAutoCompleteLabel
-
getApplicableSCMCheckoutStrategyDescriptors
public List<SCMCheckoutStrategyDescriptor> getApplicableSCMCheckoutStrategyDescriptors(AbstractProject p)
-
LabelExpression.validate(String, Item)instead.