Class RemoteSource.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<JsonSource>
com.github.cyanbaz.jenkins.plugins.jsonparameter.RemoteSource.DescriptorImpl
- Enclosing class:
- RemoteSource
Descriptor for the
RemoteSource
, used to display this option in the Jenkins UI dropdown.-
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 TypeMethodDescriptiondoFillCredentialsIdItems
(Item context) Populates the credentials dropdown in the UI with available username/password credentials.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
-
doFillCredentialsIdItems
Populates the credentials dropdown in the UI with available username/password credentials.Includes:
- Global credentials
- Folder credentials
- Only credentials matching the URI scope
- Parameters:
context
- the current item context (job, folder, etc.)- Returns:
- a
ListBoxModel
of available credentials
-