Class LabelParameterDefinition.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<ParameterDefinition>
-
- hudson.model.ParameterDefinition.ParameterDescriptor
-
- org.jvnet.jenkins.plugins.nodelabelparameter.LabelParameterDefinition.DescriptorImpl
-
- Enclosing class:
- LabelParameterDefinition
@Extension public static class LabelParameterDefinition.DescriptorImpl extends ParameterDefinition.ParameterDescriptor
-
-
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 AutoCompletionCandidates
doAutoCompleteDefaultValue(String value)
Called by UI - Autocompletion for label valuesFormValidation
doCheckDefaultValue(String value)
Called by UI - Checks whether the given label is validFormValidation
doListNodesForLabel(String label)
Called by validation button in UI when triggering a job manuallyNodeEligibility
getDefaultNodeEligibility()
provides the default node eligibility for the UIString
getDisplayName()
String
getHelpFile()
-
Methods inherited from class hudson.model.ParameterDefinition.ParameterDescriptor
getValuePage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, 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 classParameterDefinition.ParameterDescriptor
-
getHelpFile
public String getHelpFile()
- Overrides:
getHelpFile
in classDescriptor<ParameterDefinition>
-
doAutoCompleteDefaultValue
public AutoCompletionCandidates doAutoCompleteDefaultValue(@QueryParameter String value)
Called by UI - Autocompletion for label values- Parameters:
value
- the current value in the text field to base the automcompetion upon.- Returns:
- autocompletion candidates for label values
-
doCheckDefaultValue
public FormValidation doCheckDefaultValue(@QueryParameter String value)
Called by UI - Checks whether the given label is valid- Parameters:
value
- the label to be checked- Returns:
- validation result for the form
-
doListNodesForLabel
public FormValidation doListNodesForLabel(@QueryParameter("value") String label) throws javax.servlet.ServletException
Called by validation button in UI when triggering a job manually- Parameters:
label
- the label to search the nodes for- Returns:
- if ok, a list of nodes matching the given label
- Throws:
javax.servlet.ServletException
- on error
-
getDefaultNodeEligibility
public NodeEligibility getDefaultNodeEligibility()
provides the default node eligibility for the UI
-
-