org.jvnet.jenkins.plugins.nodelabelparameter
Class LabelParameterDefinition.DescriptorImpl

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

@Extension
public static class LabelParameterDefinition.DescriptorImpl
extends hudson.model.ParameterDefinition.ParameterDescriptor


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
LabelParameterDefinition.DescriptorImpl()
           
 
Method Summary
 hudson.model.AutoCompletionCandidates doAutoCompleteDefaultValue(String value)
          Called by UI - Autocompletion for label values
 hudson.util.FormValidation doCheckDefaultValue(String value)
          Called by UI - Checks whether the given label is valid
 hudson.util.FormValidation doListNodesForLabel(String label)
          Called by validation button in UI when triggering a job manually
 NodeEligibility getDefaultNodeEligibility()
          provides the default node eligibility for the UI
 String getDisplayName()
           
 String getHelpFile()
           
 
Methods inherited from class hudson.model.ParameterDefinition.ParameterDescriptor
getValuePage
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelParameterDefinition.DescriptorImpl

public LabelParameterDefinition.DescriptorImpl()
Method Detail

getDisplayName

public String getDisplayName()
Overrides:
getDisplayName in class hudson.model.ParameterDefinition.ParameterDescriptor

getHelpFile

public String getHelpFile()
Overrides:
getHelpFile in class hudson.model.Descriptor<hudson.model.ParameterDefinition>

doAutoCompleteDefaultValue

public hudson.model.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:

doCheckDefaultValue

public hudson.util.FormValidation doCheckDefaultValue(@QueryParameter
                                                      String value)
Called by UI - Checks whether the given label is valid

Parameters:
value - the label to be checked
Returns:

doListNodesForLabel

public hudson.util.FormValidation doListNodesForLabel(@QueryParameter(value="label")
                                                      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

getDefaultNodeEligibility

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



Copyright © 2004-2014. All Rights Reserved.