@Extension
public class ZAdviserGlobalConfiguration
extends jenkins.model.GlobalConfiguration
Modifier and Type | Field and Description |
---|---|
protected boolean |
needsSaving |
Constructor and Description |
---|
ZAdviserGlobalConfiguration()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
hudson.util.FormValidation |
doCheckInitialDateRange(String value)
Validation for the initial date range text field.
|
static ZAdviserGlobalConfiguration |
get()
Returns the singleton instance.
|
hudson.util.Secret |
getAccessKey()
Returns the value of the accessKey attribute.
|
String |
getCustomerId()
Returns the value of the customerId attribute.
|
hudson.util.Secret |
getEncryptionKey()
Returns the value of the encryptionKey attribute.
|
String |
getInitialDateRange()
Returns the value of the initialDateRange attribute.
|
static void |
jobLoaded()
Perform initialization after all jobs have been loaded.
|
boolean |
needsSaving()
Return TRUE if the configuration needs saving.
|
void |
setAccessKey(hudson.util.Secret accessKey)
Sets the accesskey attribute.
|
void |
setCustomerId(String customerId)
Sets the customerId attribute.
|
void |
setEncryptionKey(hudson.util.Secret encryptionKey)
Sets the encryptionKey attribute.
|
void |
setInitialDateRange(String initialDateRange)
Sets the value of the initialDateRange attribute.
|
all, getDescriptor, getGlobalConfigPage
addHelpFileRedirect, 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
public ZAdviserGlobalConfiguration()
Clients should not call this - use get()
instead.
public static ZAdviserGlobalConfiguration get()
public boolean needsSaving()
@Initializer(after=JOB_LOADED) public static void jobLoaded()
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
configure
in class jenkins.model.GlobalConfiguration
public hudson.util.Secret getAccessKey()
public void setAccessKey(hudson.util.Secret accessKey)
accessKey
- the access keypublic String getCustomerId()
public void setCustomerId(String customerId)
customerId
- the customer idpublic hudson.util.Secret getEncryptionKey()
public void setEncryptionKey(hudson.util.Secret encryptionKey)
encryptionKey
- the Encryption keypublic String getInitialDateRange()
public void setInitialDateRange(String initialDateRange)
initialDateRange
- the initial date rangepublic hudson.util.FormValidation doCheckInitialDateRange(@QueryParameter String value)
value
- value passed from the config.jelly "Initial date range" fieldCopyright © 2016–2022. All rights reserved.