@Extension
public static final class ProGetConfiguration.DescriptorImpl
extends hudson.model.Descriptor<jenkins.model.GlobalConfiguration>
| Constructor and Description |
|---|
DescriptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
hudson.util.FormValidation |
doCheckUrl(java.lang.String value)
Performs on-the-fly validation of the form field 'url'.
|
hudson.util.FormValidation |
doTestConnection(java.lang.String url,
java.lang.String apiKey,
java.lang.String user,
hudson.util.Secret password,
boolean trustAllCertificates)
ProGet connection test
|
java.lang.String |
getApiKey() |
java.lang.String |
getDisplayName() |
boolean |
getLogApiRequests() |
hudson.util.Secret |
getPassword() |
ProGetConfig |
getProGetConfig() |
boolean |
getTrustAllCertificates() |
java.lang.String |
getUrl()
Field getters
|
java.lang.String |
getUser() |
boolean |
isApiKeyConfigured() |
boolean |
isRequiredFieldsConfigured() |
boolean |
isUserNameConfigured() |
void |
setApiKey(java.lang.String value) |
void |
setLogApiRequests(boolean logApiRequests) |
void |
setPassword(hudson.util.Secret value) |
void |
setTrustAllCertificates(boolean value) |
void |
setUrl(java.lang.String value)
Field setters
|
void |
setUser(java.lang.String value) |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic 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 java.lang.String getDisplayName()
getDisplayName in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>public void setUrl(java.lang.String value)
public void setApiKey(java.lang.String value)
public void setUser(java.lang.String value)
public void setPassword(hudson.util.Secret value)
public void setLogApiRequests(boolean logApiRequests)
public void setTrustAllCertificates(boolean value)
public java.lang.String getUrl()
public java.lang.String getApiKey()
public java.lang.String getUser()
public hudson.util.Secret getPassword()
public boolean getLogApiRequests()
public boolean getTrustAllCertificates()
public boolean isRequiredFieldsConfigured()
public boolean isUserNameConfigured()
public boolean isApiKeyConfigured()
public hudson.util.FormValidation doCheckUrl(@QueryParameter
java.lang.String value)
throws java.io.IOException,
javax.servlet.ServletException
value - This parameter receives the value that the user has typed.
Note that returning FormValidation.error(String) does not
prevent the form from being saved. It just means that a message
will be displayed to the user.
java.io.IOExceptionjavax.servlet.ServletExceptionpublic hudson.util.FormValidation doTestConnection(@QueryParameter(value="url")
java.lang.String url,
@QueryParameter(value="apiKey")
java.lang.String apiKey,
@QueryParameter(value="user")
java.lang.String user,
@QueryParameter(value="password")
hudson.util.Secret password,
@QueryParameter(value="trustAllCertificates")
boolean trustAllCertificates)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOExceptionjavax.servlet.ServletExceptionpublic ProGetConfig getProGetConfig()