Class ExtensibleChoiceParameterDefinition.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<ParameterDefinition>
hudson.model.ParameterDefinition.ParameterDescriptor
jp.ikedam.jenkins.plugins.extensible_choice_parameter.ExtensibleChoiceParameterDefinition.DescriptorImpl
- Enclosing class:
- ExtensibleChoiceParameterDefinition
@Extension
public static class ExtensibleChoiceParameterDefinition.DescriptorImpl
extends ParameterDefinition.ParameterDescriptor
The internal class to work with views.
The following files are used (put in main/resource directory in the source tree).
- config.jelly
- shown as a part of a job configuration page.
- index.jelly
- shown when a user launches a build, and specifies parameters of the build.
-
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 TypeMethodDescriptionboolean
configure
(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) doCheckName
(String name) Returns all the available methods to provide choices.Returns the string to be shown in a job configuration page, in the dropdown of "Add Parameter".Returns all the available methods to provide choices that are enabled in the global configuration.boolean
isProviderEnabled
(Descriptor<?> d) newInstance
(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) Create a new instance ofSystemGroovyChoiceListProvider
from user inputs.protected void
setChoiceListEnabledMap
(Map<String, Boolean> choiceListEnabledMap) Methods inherited from class hudson.model.ParameterDefinition.ParameterDescriptor
getValuePage
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
setChoiceListEnabledMap
-
getChoiceListEnabledMap
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configure
in classDescriptor<ParameterDefinition>
- Throws:
Descriptor.FormException
-
isProviderEnabled
-
newInstance
public ExtensibleChoiceParameterDefinition newInstance(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) throws Descriptor.FormException Create a new instance ofSystemGroovyChoiceListProvider
from user inputs.- Overrides:
newInstance
in classDescriptor<ParameterDefinition>
- Parameters:
req
-formData
-- Returns:
- Throws:
Descriptor.FormException
- See Also:
-
getDisplayName
Returns the string to be shown in a job configuration page, in the dropdown of "Add Parameter".- Overrides:
getDisplayName
in classParameterDefinition.ParameterDescriptor
- Returns:
- a name of this parameter type.
- See Also:
-
getChoiceListProviderList
public DescriptorExtensionList<ChoiceListProvider,Descriptor<ChoiceListProvider>> getChoiceListProviderList()Returns all the available methods to provide choices.- Returns:
- DescriptorExtensionList of ChoiceListProvider subclasses.
-
getEnabledChoiceListProviderList
Returns all the available methods to provide choices that are enabled in the global configuration. Used for showing dropdown for users to select a choice provider.- Returns:
- DescriptorExtensionList of ChoiceListProvider subclasses.
-
doCheckName
-