Class LabelParameterDefinition.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<ParameterDefinition>
hudson.model.ParameterDefinition.ParameterDescriptor
org.jvnet.jenkins.plugins.nodelabelparameter.LabelParameterDefinition.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
LabelParameterDefinition

@Extension public static class LabelParameterDefinition.DescriptorImpl extends ParameterDefinition.ParameterDescriptor
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Overrides:
      getDisplayName in class ParameterDefinition.ParameterDescriptor
    • getHelpFile

      public String getHelpFile()
      Overrides:
      getHelpFile in class Descriptor<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 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

      public NodeEligibility getDefaultNodeEligibility()
      provides the default node eligibility for the UI