Class GiteaServer.DescriptorImpl
- Enclosing class:
GiteaServer
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic FormValidationdoCheckAliasUrl(String value) Checks that the supplied URL is valid.doCheckCredentialsId(String serverUrl, String value) static FormValidationdoCheckServerUrl(String value) Checks that the supplied URL is valid.doFillCredentialsIdItems(String serverUrl) Stapler form completion.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
-
doCheckServerUrl
Checks that the supplied URL is valid.- Parameters:
value- the URL to check.- Returns:
- the validation results.
-
doCheckAliasUrl
Checks that the supplied URL is valid.- Parameters:
value- the URL to check.- Returns:
- the validation results.
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<GiteaServer>
-
doFillCredentialsIdItems
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public ListBoxModel doFillCredentialsIdItems(@QueryParameter String serverUrl) Stapler form completion.- Parameters:
serverUrl- the server URL.- Returns:
- the available credentials.
-
doCheckCredentialsId
public FormValidation doCheckCredentialsId(@QueryParameter String serverUrl, @QueryParameter String value)
-