Class InheritanceProject.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<TopLevelItem>
-
- hudson.model.TopLevelItemDescriptor
-
- hudson.model.AbstractProject.AbstractProjectDescriptor
-
- hudson.plugins.project_inheritance.projects.InheritanceProject.DescriptorImpl
-
- Enclosing class:
- InheritanceProject
public static class InheritanceProject.DescriptorImpl extends AbstractProject.AbstractProjectDescriptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
urlJobPattern
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProjectToBeCreatedTransient(String name)
ListBoxModel
doFillCreationClassItems()
ListBoxModel
doFillProjectClassItems()
Wrapper arounddoFillCreationClassItems()
to account for slightly different field names used byBuildFlowScriptAction
's groovy scripts.ListBoxModel
doFillUserDesiredVersionItems()
void
dropProjectToBeCreatedTransient(String name)
String
getCategoryId()
protected InheritanceProject
getConfiguredProject()
InheritanceProject
getConfiguredProject(org.kohsuke.stapler.StaplerRequest req)
This method identifies the project under configuration.String
getDescription()
String
getDisplayName()
String
getIconClassName()
String
getIconFilePathPattern()
boolean
isApplicable(Descriptor descriptor)
InheritanceProject
newInstance(ItemGroup parent, String name)
-
Methods inherited from class hudson.model.AbstractProject.AbstractProjectDescriptor
doAutoCompleteAssignedLabelString, doAutoCompleteLabel, doAutoCompleteUpstreamProjects, doCheckAssignedLabelString, doCheckCustomWorkspace, doCheckLabel, getApplicableSCMCheckoutStrategyDescriptors, validateLabelExpression
-
Methods inherited from class hudson.model.TopLevelItemDescriptor
all, checkApplicableIn, getIconFilePath, isApplicableIn, newInstance, newInstance, testInstance
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, 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
-
-
-
-
Field Detail
-
urlJobPattern
public static final Pattern urlJobPattern
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classTopLevelItemDescriptor
-
getDescription
public String getDescription()
- Overrides:
getDescription
in classTopLevelItemDescriptor
-
isApplicable
public boolean isApplicable(Descriptor descriptor)
- Overrides:
isApplicable
in classAbstractProject.AbstractProjectDescriptor
-
getCategoryId
public String getCategoryId()
- Overrides:
getCategoryId
in classTopLevelItemDescriptor
-
getIconFilePathPattern
public String getIconFilePathPattern()
- Overrides:
getIconFilePathPattern
in classTopLevelItemDescriptor
-
getIconClassName
public String getIconClassName()
- Specified by:
getIconClassName
in interfaceIconSpec
- Overrides:
getIconClassName
in classTopLevelItemDescriptor
-
newInstance
public InheritanceProject newInstance(ItemGroup parent, String name)
- Specified by:
newInstance
in classTopLevelItemDescriptor
-
doFillCreationClassItems
public ListBoxModel doFillCreationClassItems()
-
doFillProjectClassItems
public ListBoxModel doFillProjectClassItems()
Wrapper arounddoFillCreationClassItems()
to account for slightly different field names used byBuildFlowScriptAction
's groovy scripts.- Returns:
- the content of the select box
-
doFillUserDesiredVersionItems
public ListBoxModel doFillUserDesiredVersionItems()
-
getConfiguredProject
public InheritanceProject getConfiguredProject(org.kohsuke.stapler.StaplerRequest req)
This method identifies the project under configuration. It first tries to do that by asking the request itself for its ancestor; but if that is unavailable it looks at the HTTP request to check for the name of the project under configuration. It then tries to retrieve the object associated with that name.- Parameters:
req
- the user request- Returns:
- the project under configuration by the given request
-
getConfiguredProject
protected InheritanceProject getConfiguredProject()
-
addProjectToBeCreatedTransient
public void addProjectToBeCreatedTransient(String name)
-
dropProjectToBeCreatedTransient
public void dropProjectToBeCreatedTransient(String name)
-
-