Package com.gitee.jenkins.connection
Class GiteeConnectionConfig
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- com.gitee.jenkins.connection.GiteeConnectionConfig
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension public class GiteeConnectionConfig extends GlobalConfiguration
- Author:
- Robin Müller
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description GiteeConnectionConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConnection(GiteeConnection connection)
boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
FormValidation
doCheckApiTokenId(String value)
FormValidation
doCheckConnectionTimeout(Integer value)
FormValidation
doCheckName(String id, String value)
FormValidation
doCheckReadTimeout(Integer value)
FormValidation
doCheckUrl(String value)
ListBoxModel
doFillApiTokenIdItems(String name, String url)
ListBoxModel
doFillClientBuilderIdItems()
FormValidation
doTestConnection(String url, String apiTokenId, String clientBuilderId, boolean ignoreCertificateErrors, int connectionTimeout, int readTimeout)
GiteeClient
getClient(String connectionName)
List<GiteeConnection>
getConnections()
boolean
isUseAuthenticatedEndpoint()
protected GiteeConnectionConfig
readResolve()
void
setConnections(List<GiteeConnection> newConnections)
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, 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
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
- Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
isUseAuthenticatedEndpoint
public boolean isUseAuthenticatedEndpoint()
-
getConnections
public List<GiteeConnection> getConnections()
-
addConnection
public void addConnection(GiteeConnection connection)
-
setConnections
public void setConnections(List<GiteeConnection> newConnections)
-
getClient
public GiteeClient getClient(String connectionName)
-
doCheckName
public FormValidation doCheckName(@QueryParameter String id, @QueryParameter String value)
-
doCheckUrl
public FormValidation doCheckUrl(@QueryParameter String value)
-
doCheckApiTokenId
public FormValidation doCheckApiTokenId(@QueryParameter String value)
-
doCheckConnectionTimeout
public FormValidation doCheckConnectionTimeout(@QueryParameter Integer value)
-
doCheckReadTimeout
public FormValidation doCheckReadTimeout(@QueryParameter Integer value)
-
doTestConnection
public FormValidation doTestConnection(@QueryParameter String url, @QueryParameter String apiTokenId, @QueryParameter String clientBuilderId, @QueryParameter boolean ignoreCertificateErrors, @QueryParameter int connectionTimeout, @QueryParameter int readTimeout)
-
doFillApiTokenIdItems
public ListBoxModel doFillApiTokenIdItems(@QueryParameter String name, @QueryParameter String url)
-
doFillClientBuilderIdItems
public ListBoxModel doFillClientBuilderIdItems()
-
readResolve
protected GiteeConnectionConfig readResolve()
-
-