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