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 -
Method Summary
Modifier and TypeMethodDescriptiondoAutoCompleteDefaultValue
(String value) Called by UI - Autocompletion for label valuesdoCheckDefaultValue
(String value) Called by UI - Checks whether the given label is validdoListNodesForLabel
(String label) Called by validation button in UI when triggering a job manuallyprovides the default node eligibility for the UIMethods inherited from class hudson.model.ParameterDefinition.ParameterDescriptor
getValuePage
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayName
in classParameterDefinition.ParameterDescriptor
-
getHelpFile
- Overrides:
getHelpFile
in classDescriptor<ParameterDefinition>
-
doAutoCompleteDefaultValue
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
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 jakarta.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:
jakarta.servlet.ServletException
- on error
-
getDefaultNodeEligibility
provides the default node eligibility for the UI
-