|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.opensymphony.xwork.ActionSupport com.atlassian.bamboo.ww2.BambooActionSupport com.atlassian.bamboo.configuration.GlobalAdminAction com.atlassian.bamboo.configuration.ConfigurationAction
public class ConfigurationAction
This class handles configuration updates from am web form
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport |
---|
BambooActionSupport.JSONStatus |
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.configuration.GlobalAdminAction |
---|
RESTRICTED_ADMIN_ACCESS_DENIED_ERROR |
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport |
---|
administrationConfigurationManager, bambooPermissionManager, buildDefinitionManager, buildManager, chainManager, CONFIRM, cookieCutter, dashboardCachingManager, planManager, projectManager |
Fields inherited from class com.opensymphony.xwork.ActionSupport |
---|
LOG |
Fields inherited from interface com.opensymphony.xwork.Action |
---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Constructor Summary | |
---|---|
ConfigurationAction()
|
Method Summary | |
---|---|
java.lang.String |
doDefault()
Default action just sends to the input |
java.lang.String |
doExecute()
Update the system with the administration configuration. |
boolean |
getAcceptRemoteApiCalls()
Informs the UI if the Remote API option is enabled. |
java.lang.String |
getActualBaseUrl()
|
java.lang.String |
getBaseUrl()
|
java.lang.String |
getDefaultBaseUrl()
See if we can determine the default base url from the servlet request... |
boolean |
getGzipCompression()
Informs the UI if the Gzip option is enabled. |
java.lang.String |
getInstanceName()
Get and Set the name of the Bamboo Instance |
void |
setAcceptRemoteApiCalls(boolean enabled)
The user has enabled the remote API (via a checkbox) |
void |
setBaseUrl(java.lang.String url)
|
void |
setGzipCompression(boolean enabled)
The user has selected the GZip webpages (via a checkbox) |
void |
setInstanceName(java.lang.String instanceName)
|
void |
validate()
|
Methods inherited from class com.atlassian.bamboo.configuration.GlobalAdminAction |
---|
getSecuredDomainObject |
Methods inherited from class com.opensymphony.xwork.ActionSupport |
---|
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setFieldErrors |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.ww2.aware.permissions.DomainObjectSecurityAware |
---|
getSecuredDomainObject |
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection |
---|
getErrorMessages, getErrors, getFieldErrors |
Methods inherited from interface com.atlassian.core.i18n.I18nTextProvider |
---|
getText |
Constructor Detail |
---|
public ConfigurationAction()
Method Detail |
---|
public void validate()
validate
in interface com.opensymphony.xwork.Validateable
validate
in class com.opensymphony.xwork.ActionSupport
public java.lang.String doExecute() throws java.lang.Exception
doExecute
in class BambooActionSupport
java.lang.Exception
- something nasty went wrongpublic java.lang.String doDefault() throws java.lang.Exception
BambooActionSupport
doDefault
in class BambooActionSupport
java.lang.Exception
public java.lang.String getDefaultBaseUrl()
public java.lang.String getActualBaseUrl()
public java.lang.String getBaseUrl()
getBaseUrl
in class BambooActionSupport
public void setBaseUrl(java.lang.String url)
public void setGzipCompression(boolean enabled)
enabled
- set to "on" by the webwork frameworkpublic boolean getGzipCompression()
public void setAcceptRemoteApiCalls(boolean enabled)
enabled
- set to "on" by the webwork frameworkpublic boolean getAcceptRemoteApiCalls()
public java.lang.String getInstanceName()
getInstanceName
in class BambooActionSupport
public void setInstanceName(java.lang.String instanceName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |