Package hudson.plugins.git.browser
Class GitLab.GitLabDescriptor
- Enclosing class:
- GitLab
@Extension
@Symbol("gitLab")
public static class GitLab.GitLabDescriptor
extends Descriptor<RepositoryBrowser<?>>
-
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 TypeMethodDescriptiondoCheckVersion(String version) Validate the contents of the version field.newInstance(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject jsonObject) 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, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
GitLabDescriptor
public GitLabDescriptor()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<RepositoryBrowser<?>>
-
newInstance
public GitLab newInstance(@NonNull org.kohsuke.stapler.StaplerRequest2 req, @NonNull net.sf.json.JSONObject jsonObject) throws Descriptor.FormException - Overrides:
newInstancein classDescriptor<RepositoryBrowser<?>>- Throws:
Descriptor.FormException
-
doCheckVersion
public FormValidation doCheckVersion(@QueryParameter(fixEmpty=true) String version) throws IOException, jakarta.servlet.ServletException Validate the contents of the version field.- Parameters:
version- gitlab version value entered by the user- Returns:
- validation result, either ok() or error(msg)
- Throws:
IOException- on input or output errorjakarta.servlet.ServletException- on servlet error
-