hudson.model
Class AbstractProject.AbstractProjectDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<TopLevelItem>
      extended by hudson.model.TopLevelItemDescriptor
          extended by 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

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
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
AbstractProject.AbstractProjectDescriptor()
           
 
Method Summary
 AutoCompletionCandidates doAutoCompleteAssignedLabelString(String value)
           
 AutoCompletionCandidates doAutoCompleteUpstreamProjects(String value)
           
 FormValidation doCheckAssignedLabelString(String value)
           
 FormValidation doCheckCustomWorkspace(String customWorkspace)
           
 List<SCMCheckoutStrategyDescriptor> getApplicableSCMCheckoutStrategyDescriptors(AbstractProject p)
           
 boolean isApplicable(Descriptor descriptor)
          AbstractProject subtypes can override this method to veto some Descriptors from showing up on their configuration screen.
 
Methods inherited from class hudson.model.TopLevelItemDescriptor
all, getDisplayName, newInstance, newInstance, newInstance, testInstance
 
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
 

Constructor Detail

AbstractProject.AbstractProjectDescriptor

public AbstractProject.AbstractProjectDescriptor()
Method Detail

isApplicable

public boolean isApplicable(Descriptor descriptor)
AbstractProject subtypes can override this method to veto some Descriptors 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 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.