Class InheritableStringParameterReferenceDefinition.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<ParameterDefinition>
-
- hudson.model.ParameterDefinition.ParameterDescriptor
-
- hudson.model.StringParameterDefinition.DescriptorImpl
-
- hudson.plugins.project_inheritance.projects.parameters.InheritableStringParameterDefinition.DescriptorImpl
-
- hudson.plugins.project_inheritance.projects.parameters.InheritableStringParameterReferenceDefinition.DescriptorImpl
-
- Enclosing class:
- InheritableStringParameterReferenceDefinition
@Extension public static class InheritableStringParameterReferenceDefinition.DescriptorImpl extends InheritableStringParameterDefinition.DescriptorImpl
-
-
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 Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckDefaultValue(String name)
ListBoxModel
doFillNameItems(String name, InheritanceProject project, String targetJob, String parents)
Fills the name select box, with all parameters from a pool of referenced jobs.String
getDisplayName()
String
getHelpFile()
-
Methods inherited from class hudson.plugins.project_inheritance.projects.parameters.InheritableStringParameterDefinition.DescriptorImpl
doCheckName, doFillInheritanceModeItems, doFillWhitespaceModeItems, getReferencedProjects
-
Methods inherited from class hudson.model.ParameterDefinition.ParameterDescriptor
getValuePage
-
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, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classInheritableStringParameterDefinition.DescriptorImpl
-
getHelpFile
public String getHelpFile()
- Overrides:
getHelpFile
in classInheritableStringParameterDefinition.DescriptorImpl
-
doCheckDefaultValue
public FormValidation doCheckDefaultValue(@QueryParameter String name)
- Overrides:
doCheckDefaultValue
in classInheritableStringParameterDefinition.DescriptorImpl
-
doFillNameItems
public ListBoxModel doFillNameItems(@QueryParameter String name, @AncestorInPath InheritanceProject project, @RelativePath("..") @QueryParameter String targetJob, @QueryParameter String parents)
Fills the name select box, with all parameters from a pool of referenced jobs.The pool is determined dynamically as containing:
- The parent job in which the parameter is defined (plus all its parents in inheritance)
- The job targeted by the outer container, if present
(usually a
ParameterizedProjectReference
) - TODO: Any new jobs, that the user added to the inheritance in the current HTML form
- Parameters:
name
- the currently pointed-to task. If null or blank, it is ignored.project
- the project on whose config page the parameter is generated. If null, it is ignored.targetJob
- another job reference, if the parent container has a 'targetJob' field.parents
- the parents from the current form data- Returns:
- a list of parameters. Will always contain at least the passed in name, but may be empty, if that name is blank/null.
-
-