Class GerritRestCheckout.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<hudson.plugins.git.extensions.GitSCMExtension>
hudson.plugins.git.extensions.GitSCMExtensionDescriptor
io.jenkins.plugins.gerritlightweight.GerritRestCheckout.DescriptorImpl
- Enclosing class:
GerritRestCheckout
@Extension
@Symbol("gerritRestCheckout")
public static class GerritRestCheckout.DescriptorImpl
extends hudson.plugins.git.extensions.GitSCMExtensionDescriptor
Registers the Git behavior and supplies its configuration UI.
-
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 TypeMethodDescriptiondoCheckServerUrl(String serverUrl) doFillCredentialsIdItems(Item item, String serverUrl, String credentialsId) Populates the credential selector with username/password credentials matching the server URL.Methods inherited from class hudson.plugins.git.extensions.GitSCMExtensionDescriptor
all, isApplicableMethods 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
- Overrides:
getDisplayNamein classDescriptor<hudson.plugins.git.extensions.GitSCMExtension>
-
doFillCredentialsIdItems
@POST public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item item, @QueryParameter String serverUrl, @QueryParameter String credentialsId) Populates the credential selector with username/password credentials matching the server URL. Callers without job configuration permission (or administrator permission outside a job) receive only the current selection, without enumerating other credentials.- Parameters:
item- owning job, ornulloutside a job contextserverUrl- Gerrit URL used to restrict credential domainscredentialsId- currently selected credential ID- Returns:
- available credential choices, including the current selection
-
doCheckServerUrl
-