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
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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.ListBoxModel
doFillCredentialsIdItems(String serverUrl, String credentialsId)
Stapler form completion.ListBoxModel
doFillWebhookSecretCredentialsIdItems(String serverUrl, String webhookSecretCredentialsId)
Stapler form completion.FormValidation
doTestConnection(String serverUrl, String credentialsId)
String
getDisplayName()
-
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
-
-
-
-
Method Detail
-
doCheckServerUrl
@POST public static FormValidation doCheckServerUrl(@QueryParameter String serverUrl)
Checks that the supplied URL is valid.- Parameters:
serverUrl
- the URL to check.- Returns:
- the validation results.
-
doCheckHooksRootUrl
public static FormValidation doCheckHooksRootUrl(@QueryParameter String hooksRootUrl)
Checks that the supplied URL looks like a valid Jenkins root URL.- Parameters:
hooksRootUrl
- the URL to check.- Returns:
- the validation results.
-
doCheckHookTriggerDelay
public static FormValidation doCheckHookTriggerDelay(@QueryParameter String hookTriggerDelay)
Checks that the supplied hook trigger delay is valid.- Parameters:
hookTriggerDelay
- the delay to be checked.- Returns:
- the validation results.
-
getDisplayName
@NonNull public String 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.
-
-