hudson.model
Class AbstractProject.AbstractProjectDescriptor
java.lang.Object
hudson.model.Descriptor<TopLevelItem>
hudson.model.TopLevelItemDescriptor
hudson.model.AbstractProject.AbstractProjectDescriptor
- All Implemented Interfaces:
- Saveable
- Direct Known Subclasses:
- FreeStyleProject.DescriptorImpl, MatrixProject.DescriptorImpl, MavenModuleSet.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
Methods inherited from class hudson.model.Descriptor |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractProject.AbstractProjectDescriptor
public AbstractProject.AbstractProjectDescriptor()
isApplicable
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.
- Overrides:
isApplicable
in class TopLevelItemDescriptor
- See Also:
BuildStepDescriptor.isApplicable(Class)
,
BuildWrapperDescriptor.isApplicable(AbstractProject)
,
TriggerDescriptor.isApplicable(Item)
doCheckAssignedLabelString
public FormValidation doCheckAssignedLabelString(@QueryParameter
String value)
doCheckCustomWorkspace
public FormValidation doCheckCustomWorkspace(@QueryParameter(value="customWorkspace.directory")
String customWorkspace)
doAutoCompleteUpstreamProjects
public AutoCompletionCandidates doAutoCompleteUpstreamProjects(@QueryParameter
String value)
doAutoCompleteAssignedLabelString
public AutoCompletionCandidates doAutoCompleteAssignedLabelString(@QueryParameter
String value)
getApplicableSCMCheckoutStrategyDescriptors
public List<SCMCheckoutStrategyDescriptor> getApplicableSCMCheckoutStrategyDescriptors(AbstractProject p)
Copyright © 2004-2013. All Rights Reserved.