Class ExtendedChoiceParameterDefinition
- java.lang.Object
-
- hudson.model.ParameterDefinition
-
- com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ParameterDefinition>
,Serializable
public class ExtendedChoiceParameterDefinition extends ParameterDefinition
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExtendedChoiceParameterDefinition.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.model.ParameterDefinition
ParameterDefinition.ParameterDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
PARAMETER_TYPE_CHECK_BOX
static String
PARAMETER_TYPE_HIDDEN
static String
PARAMETER_TYPE_JSON
static String
PARAMETER_TYPE_MULTI_LEVEL_MULTI_SELECT
static String
PARAMETER_TYPE_MULTI_LEVEL_SINGLE_SELECT
static String
PARAMETER_TYPE_MULTI_SELECT
static String
PARAMETER_TYPE_RADIO
static String
PARAMETER_TYPE_SINGLE_SELECT
static String
PARAMETER_TYPE_TEXT_BOX
-
Fields inherited from class hudson.model.ParameterDefinition
LIST
-
-
Constructor Summary
Constructors Constructor Description ExtendedChoiceParameterDefinition(String name, String type, String value, String projectName, String propertyFile, String groovyScript, String groovyScriptFile, String bindings, String groovyClasspath, String propertyKey, String defaultValue, String defaultPropertyFile, String defaultGroovyScript, String defaultGroovyScriptFile, String defaultBindings, String defaultGroovyClasspath, String defaultPropertyKey, String descriptionPropertyValue, String descriptionPropertyFile, String descriptionGroovyScript, String descriptionGroovyScriptFile, String descriptionBindings, String descriptionGroovyClasspath, String descriptionPropertyKey, String javascriptFile, String javascript, boolean saveJSONParameterToFile, boolean quoteValue, int visibleItemCount, String description, String multiSelectDelimiter)
-
Method Summary
-
Methods inherited from class hudson.model.ParameterDefinition
all, copyWithDefaultValue, equals, getDescription, getDescriptor, getFormattedDescription, getName, hashCode, isValid, setDescription
-
-
-
-
Field Detail
-
PARAMETER_TYPE_SINGLE_SELECT
public static final String PARAMETER_TYPE_SINGLE_SELECT
- See Also:
- Constant Field Values
-
PARAMETER_TYPE_MULTI_SELECT
public static final String PARAMETER_TYPE_MULTI_SELECT
- See Also:
- Constant Field Values
-
PARAMETER_TYPE_CHECK_BOX
public static final String PARAMETER_TYPE_CHECK_BOX
- See Also:
- Constant Field Values
-
PARAMETER_TYPE_RADIO
public static final String PARAMETER_TYPE_RADIO
- See Also:
- Constant Field Values
-
PARAMETER_TYPE_TEXT_BOX
public static final String PARAMETER_TYPE_TEXT_BOX
- See Also:
- Constant Field Values
-
PARAMETER_TYPE_HIDDEN
public static final String PARAMETER_TYPE_HIDDEN
- See Also:
- Constant Field Values
-
PARAMETER_TYPE_MULTI_LEVEL_SINGLE_SELECT
public static final String PARAMETER_TYPE_MULTI_LEVEL_SINGLE_SELECT
- See Also:
- Constant Field Values
-
PARAMETER_TYPE_MULTI_LEVEL_MULTI_SELECT
public static final String PARAMETER_TYPE_MULTI_LEVEL_MULTI_SELECT
- See Also:
- Constant Field Values
-
PARAMETER_TYPE_JSON
public static final String PARAMETER_TYPE_JSON
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExtendedChoiceParameterDefinition
@DataBoundConstructor public ExtendedChoiceParameterDefinition(String name, String type, String value, String projectName, String propertyFile, String groovyScript, String groovyScriptFile, String bindings, String groovyClasspath, String propertyKey, String defaultValue, String defaultPropertyFile, String defaultGroovyScript, String defaultGroovyScriptFile, String defaultBindings, String defaultGroovyClasspath, String defaultPropertyKey, String descriptionPropertyValue, String descriptionPropertyFile, String descriptionGroovyScript, String descriptionGroovyScriptFile, String descriptionBindings, String descriptionGroovyClasspath, String descriptionPropertyKey, String javascriptFile, String javascript, boolean saveJSONParameterToFile, boolean quoteValue, int visibleItemCount, String description, String multiSelectDelimiter)
-
-
Method Detail
-
createValue
public ParameterValue createValue(org.kohsuke.stapler.StaplerRequest request)
- Specified by:
createValue
in classParameterDefinition
-
createValue
public ParameterValue createValue(CLICommand command, String value)
- Overrides:
createValue
in classParameterDefinition
-
createValue
public ParameterValue createValue(org.kohsuke.stapler.StaplerRequest request, net.sf.json.JSONObject jO)
- Specified by:
createValue
in classParameterDefinition
-
getDefaultParameterValue
public ParameterValue getDefaultParameterValue()
- Overrides:
getDefaultParameterValue
in classParameterDefinition
-
getType
public String getType()
- Overrides:
getType
in classParameterDefinition
-
setType
public void setType(String type)
-
getDefaultValue
public String getDefaultValue()
-
setDefaultValue
public void setDefaultValue(String defaultValue)
-
getPropertyFile
public String getPropertyFile()
-
setPropertyFile
public void setPropertyFile(String propertyFile)
-
getGroovyScript
public String getGroovyScript()
-
setGroovyScript
public void setGroovyScript(String groovyScript)
-
getGroovyScriptFile
public String getGroovyScriptFile()
-
setGroovyScriptFile
public void setGroovyScriptFile(String groovyScriptFile)
-
getBindings
public String getBindings()
-
setBindings
public void setBindings(String bindings)
-
getDefaultPropertyKey
public String getDefaultPropertyKey()
-
setDefaultPropertyKey
public void setDefaultPropertyKey(String defaultPropertyKey)
-
getMultiLevelDropdownIds
public String getMultiLevelDropdownIds() throws Exception
- Throws:
Exception
-
getChoicesByDropdownId
public Map<String,String> getChoicesByDropdownId() throws Exception
- Throws:
Exception
-
getValue
public String getValue()
-
setValue
public void setValue(String value)
-
getPropertyKey
public String getPropertyKey()
-
setPropertyKey
public void setPropertyKey(String propertyKey)
-
getDefaultPropertyFile
public String getDefaultPropertyFile()
-
getDefaultGroovyScript
public String getDefaultGroovyScript()
-
setDefaultGroovyScript
public void setDefaultGroovyScript(String defaultGroovyScript)
-
getDefaultGroovyScriptFile
public String getDefaultGroovyScriptFile()
-
setDefaultGroovyScriptFile
public void setDefaultGroovyScriptFile(String defaultGroovyScriptFile)
-
getDefaultBindings
public String getDefaultBindings()
-
setDefaultBindings
public void setDefaultBindings(String defaultBindings)
-
getGroovyClasspath
public String getGroovyClasspath()
-
setGroovyClasspath
public void setGroovyClasspath(String groovyClasspath)
-
getDefaultGroovyClasspath
public String getDefaultGroovyClasspath()
-
setDefaultGroovyClasspath
public void setDefaultGroovyClasspath(String defaultGroovyClasspath)
-
getDescriptionPropertyValue
public String getDescriptionPropertyValue()
-
setDescriptionPropertyValue
public void setDescriptionPropertyValue(String descriptionPropertyValue)
-
getDescriptionPropertyFile
public String getDescriptionPropertyFile()
-
setDescriptionPropertyFile
public void setDescriptionPropertyFile(String descriptionPropertyFile)
-
getDescriptionGroovyScript
public String getDescriptionGroovyScript()
-
setDescriptionGroovyScript
public void setDescriptionGroovyScript(String descriptionGroovyScript)
-
getDescriptionGroovyScriptFile
public String getDescriptionGroovyScriptFile()
-
setDescriptionGroovyScriptFile
public void setDescriptionGroovyScriptFile(String descriptionGroovyScriptFile)
-
getDescriptionBindings
public String getDescriptionBindings()
-
setDescriptionBindings
public void setDescriptionBindings(String descriptionBindings)
-
getDescriptionGroovyClasspath
public String getDescriptionGroovyClasspath()
-
setDescriptionGroovyClasspath
public void setDescriptionGroovyClasspath(String descriptionGroovyClasspath)
-
getDescriptionPropertyKey
public String getDescriptionPropertyKey()
-
setDescriptionPropertyKey
public void setDescriptionPropertyKey(String descriptionPropertyKey)
-
getJavascriptFile
public String getJavascriptFile()
-
setJavascriptFile
public void setJavascriptFile(String javascriptFile)
-
getJavascript
public String getJavascript()
-
setJavascript
public void setJavascript(String javascript)
-
isSaveJSONParameterToFile
public boolean isSaveJSONParameterToFile()
-
setSaveJSONParameterToFile
public void setSaveJSONParameterToFile(boolean saveJSONParameterToFile)
-
isQuoteValue
public boolean isQuoteValue()
-
setQuoteValue
public void setQuoteValue(boolean quoteValue)
-
getVisibleItemCount
public int getVisibleItemCount()
-
setVisibleItemCount
public void setVisibleItemCount(int visibleItemCount)
-
getMultiSelectDelimiter
public String getMultiSelectDelimiter()
-
setMultiSelectDelimiter
public void setMultiSelectDelimiter(String multiSelectDelimiter)
-
setDefaultPropertyFile
public void setDefaultPropertyFile(String defaultPropertyFile)
-
getProjectName
public String getProjectName()
-
setProjectName
public void setProjectName(String projectName)
-
hasUnapprovedScripts
public boolean hasUnapprovedScripts()
-
getParameterDefinitionInfo
public ParameterDefinitionInfo getParameterDefinitionInfo()
-
getEffectiveDefaultValue
public String getEffectiveDefaultValue()
-
getJSONEditorScript
public String getJSONEditorScript()
-
getJSONEditorOptions
public Object getJSONEditorOptions()
-
-