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 TypeMethodDescriptionbooleanconfigure(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.booleanisProviderEnabled(Descriptor<?> d) newInstance(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) Create a new instance ofSystemGroovyChoiceListProviderfrom user inputs.protected voidsetChoiceListEnabledMap(Map<String, Boolean> choiceListEnabledMap) Methods inherited from class hudson.model.ParameterDefinition.ParameterDescriptor
getValuePageMethods 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:
configurein 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 ofSystemGroovyChoiceListProviderfrom user inputs.- Overrides:
newInstancein 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:
getDisplayNamein 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
-