Class GitLabServer.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<GitLabServer>
io.jenkins.plugins.gitlabserverconfig.servers.GitLabServer.DescriptorImpl
- Enclosing class:
- GitLabServer
@Symbol("gitLabServer")
@Extension
public static class GitLabServer.DescriptorImpl
extends Descriptor<GitLabServer>
Our descriptor.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic FormValidation
doCheckHooksRootUrl
(String hooksRootUrl) Checks that the supplied URL looks like a valid Jenkins root URL.static FormValidation
doCheckHookTriggerDelay
(String hookTriggerDelay) Checks that the supplied hook trigger delay is valid.static FormValidation
doCheckServerUrl
(String serverUrl) Checks that the supplied URL is valid.doFillCredentialsIdItems
(String serverUrl, String credentialsId) Stapler form completion.doFillWebhookSecretCredentialsIdItems
(String serverUrl, String webhookSecretCredentialsId) Stapler form completion.doTestConnection
(String serverUrl, String credentialsId) Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
doCheckServerUrl
Checks that the supplied URL is valid.- Parameters:
serverUrl
- the URL to check.- Returns:
- the validation results.
-
doCheckHooksRootUrl
Checks that the supplied URL looks like a valid Jenkins root URL.- Parameters:
hooksRootUrl
- the URL to check.- Returns:
- the validation results.
-
doCheckHookTriggerDelay
Checks that the supplied hook trigger delay is valid.- Parameters:
hookTriggerDelay
- the delay to be checked.- Returns:
- the validation results.
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<GitLabServer>
-
doTestConnection
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public FormValidation doTestConnection(@QueryParameter String serverUrl, @QueryParameter String credentialsId) -
doFillCredentialsIdItems
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public ListBoxModel doFillCredentialsIdItems(@QueryParameter String serverUrl, @QueryParameter String credentialsId) Stapler form completion.- Parameters:
serverUrl
- the server URL.credentialsId
- the credentials Id- Returns:
- the available credentials.
-
doFillWebhookSecretCredentialsIdItems
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public ListBoxModel doFillWebhookSecretCredentialsIdItems(@QueryParameter String serverUrl, @QueryParameter String webhookSecretCredentialsId) Stapler form completion.- Parameters:
webhookSecretCredentialsId
- the webhook secret credentials Id- Returns:
- the available credentials.
-