@Extension
public class KanboardGlobalConfiguration
extends jenkins.model.GlobalConfiguration
| Modifier and Type | Field and Description |
|---|---|
String |
apiToken |
String |
apiTokenCredentialId |
boolean |
debugMode |
String |
endpoint |
| Constructor and Description |
|---|
KanboardGlobalConfiguration()
In order to load the persisted global configuration, you have to call
load() in the constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
hudson.util.FormValidation |
doCheckApiToken(String apiToken) |
hudson.util.FormValidation |
doCheckEndpoint(String endpoint) |
hudson.util.ListBoxModel |
doFillApiTokenCredentialIdItems(String endpoint) |
hudson.util.FormValidation |
doTestConnection(String endpoint,
String apiToken,
String apiTokenCredentialId) |
static KanboardGlobalConfiguration |
get() |
String |
getApiToken() |
String |
getApiTokenCredentialId() |
String |
getDisplayName()
This human readable name is used in the configuration screen.
|
String |
getEndpoint() |
boolean |
isDebugMode() |
all, getCategory, getDescriptor, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic String endpoint
public String apiToken
public String apiTokenCredentialId
public boolean debugMode
public KanboardGlobalConfiguration()
public static KanboardGlobalConfiguration get()
public String getEndpoint()
public String getApiToken()
public String getApiTokenCredentialId()
public boolean isDebugMode()
public String getDisplayName()
getDisplayName in class jenkins.model.GlobalConfigurationpublic hudson.util.FormValidation doCheckEndpoint(@QueryParameter
String endpoint)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic hudson.util.FormValidation doCheckApiToken(@QueryParameter
String apiToken)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic hudson.util.FormValidation doTestConnection(@QueryParameter(value="endpoint")
String endpoint,
@QueryParameter(value="apiToken")
String apiToken,
@QueryParameter(value="apiTokenCredentialId")
String apiTokenCredentialId)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>hudson.model.Descriptor.FormExceptionpublic hudson.util.ListBoxModel doFillApiTokenCredentialIdItems(@QueryParameter
String endpoint)
Copyright © 2016. All rights reserved.