@Extension
public final class GlobalConfigurationImpl
extends jenkins.model.GlobalConfiguration
GlobalConfiguration configuration data for this
plugin, Injected into other Extensions.| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
DEFAULT_ALL_RESULTS
The default value for
allResults. |
protected static boolean |
DEFAULT_ENABLED
The default value for
enabled. |
protected static int |
DEFAULT_NOTIFICATION_TIMEOUT
The default value for
notificationTimeout, in milliseconds. |
protected static int |
DEFAULT_QUERY_TIMEOUT
The default value for
queryTimeout, in seconds. |
| Constructor and Description |
|---|
GlobalConfigurationImpl()
Create a default HTML5 web notification
PageDecorator. |
GlobalConfigurationImpl(boolean enabled,
int queryTimeout,
int notificationTimeout)
Deprecated.
1.1
|
GlobalConfigurationImpl(boolean enabled,
int queryTimeout,
int notificationTimeout,
boolean allResults)
Create a HTML5 web notification
PageDecorator with the specified
configuration. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest request,
net.sf.json.JSONObject json) |
String |
getDisplayName() |
int |
getNotificationTimeout() |
int |
getQueryTimeout() |
boolean |
isAllResults() |
boolean |
isEnabled() |
void |
setAllResults(boolean allResults) |
void |
setEnabled(boolean enabled) |
void |
setNotificationTimeout(int notificationTimeout) |
void |
setQueryTimeout(int queryTimeout) |
all, getDescriptor, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMapprotected static final boolean DEFAULT_ENABLED
enabled.protected static final int DEFAULT_QUERY_TIMEOUT
queryTimeout, in seconds.protected static final int DEFAULT_NOTIFICATION_TIMEOUT
notificationTimeout, in milliseconds.protected static final boolean DEFAULT_ALL_RESULTS
allResults.public GlobalConfigurationImpl()
PageDecorator.@Deprecated public GlobalConfigurationImpl(boolean enabled, int queryTimeout, int notificationTimeout)
enabled - enablednotificationTimeout - notificationTimeoutqueryTimeout - queryTimeout@DataBoundConstructor
public GlobalConfigurationImpl(boolean enabled,
int queryTimeout,
int notificationTimeout,
boolean allResults)
PageDecorator with the specified
configuration.enabled - enablednotificationTimeout - notificationTimeoutqueryTimeout - queryTimeoutallResults - allResultspublic String getDisplayName()
getDisplayName in class jenkins.model.GlobalConfigurationpublic boolean configure(org.kohsuke.stapler.StaplerRequest request,
net.sf.json.JSONObject json)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>hudson.model.Descriptor.FormExceptionpublic boolean isEnabled()
public void setEnabled(boolean enabled)
public int getQueryTimeout()
public void setQueryTimeout(int queryTimeout)
public int getNotificationTimeout()
public void setNotificationTimeout(int notificationTimeout)
public boolean isAllResults()
public void setAllResults(boolean allResults)
Copyright © 2004-2015. All Rights Reserved.