Class ConfigFileSource.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<JsonSource>
com.github.cyanbaz.jenkins.plugins.jsonparameter.ConfigFileSource.DescriptorImpl
- Enclosing class:
- ConfigFileSource
@Extension
@Symbol("configFileSource")
public static class ConfigFileSource.DescriptorImpl
extends Descriptor<JsonSource>
Descriptor for
ConfigFileSource
, shown as an option in the dropdown selector.-
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 TypeMethodDescriptiondoFillConfigIdItems
(Item item) Provides a list of available config file IDs for selection in the UI.Returns the display name shown in the dropdown for this source type.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, 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, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
Returns the display name shown in the dropdown for this source type.- Overrides:
getDisplayName
in classDescriptor<JsonSource>
- Returns:
- a human-readable label for the UI
-
doFillConfigIdItems
Provides a list of available config file IDs for selection in the UI.This uses
ConfigFiles.getConfigsInContext(hudson.model.ItemGroup, java.lang.Class<? extends hudson.model.Descriptor>)
to collect all configs visible to the given item, including folder-scoped and global definitions.
-