public class

ConfigurationAction

extends GlobalAdminAction
implements GlobalAdminSecurityAware
java.lang.Object
   ↳ com.opensymphony.xwork.ActionSupport
     ↳ com.atlassian.bamboo.ww2.BambooActionSupport
       ↳ com.atlassian.bamboo.configuration.GlobalAdminAction
         ↳ com.atlassian.bamboo.configuration.ConfigurationAction

Class Overview

This class handles configuration updates from am web form

Summary

[Expand]
Inherited Constants
From class com.atlassian.bamboo.configuration.GlobalAdminAction
From class com.atlassian.bamboo.ww2.BambooActionSupport
From interface com.opensymphony.xwork.Action
[Expand]
Inherited Fields
From class com.atlassian.bamboo.ww2.BambooActionSupport
From class com.opensymphony.xwork.ActionSupport
Public Constructors
ConfigurationAction()
Public Methods
String doDefault()
Default action just sends to the input@return
String doExecute()
Update the system with the administration configuration.
boolean getAcceptRemoteApiCalls()
Informs the UI if the Remote API option is enabled.
String getActualBaseUrl()
String getBaseUrl()
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.
String getInstanceName()
Get and Set the name of the Bamboo Instance
boolean isEnableGravatar()
void setAcceptRemoteApiCalls(boolean enabled)
The user has enabled the remote API (via a checkbox)
void setBaseUrl(String url)
void setEnableGravatar(boolean enableGravatar)
void setGravatarService(GravatarService gravatarService)
void setGzipCompression(boolean enabled)
The user has selected the GZip webpages (via a checkbox)
void setInstanceName(String instanceName)
void validate()
[Expand]
Inherited Methods
From class com.atlassian.bamboo.configuration.GlobalAdminAction
From class com.atlassian.bamboo.ww2.BambooActionSupport
From class com.opensymphony.xwork.ActionSupport
From class java.lang.Object
From interface com.atlassian.bamboo.utils.error.ErrorCollection
From interface com.atlassian.bamboo.ww2.aware.BambooSessionAware
From interface com.atlassian.bamboo.ww2.aware.NavigationAware
From interface com.atlassian.bamboo.ww2.aware.ReturnUrlAware
From interface com.atlassian.bamboo.ww2.aware.permissions.DomainObjectSecurityAware
From interface com.atlassian.core.i18n.I18nTextProvider
From interface com.opensymphony.xwork.Action
From interface com.opensymphony.xwork.LocaleProvider
From interface com.opensymphony.xwork.TextProvider
From interface com.opensymphony.xwork.Validateable
From interface com.opensymphony.xwork.ValidationAware
From interface com.uwyn.rife.continuations.ContinuableObject

Public Constructors

public ConfigurationAction ()

Public Methods

public String doDefault ()

Default action just sends to the input@return

Throws
Exception

public String doExecute ()

Update the system with the administration configuration.

Returns
  • WebWork status
Throws
Exception

public boolean getAcceptRemoteApiCalls ()

Informs the UI if the Remote API option is enabled.

Returns
  • true if the API is enabled, false if not.

public String getActualBaseUrl ()

public String getBaseUrl ()

public String getDefaultBaseUrl ()

See if we can determine the default base url from the servlet request... otherwise use a preset default one

Returns
  • The url

public boolean getGzipCompression ()

Informs the UI if the Gzip option is enabled.

Returns
  • true if the pages should be compressed, false if not.

public String getInstanceName ()

Get and Set the name of the Bamboo Instance

public boolean isEnableGravatar ()

public void setAcceptRemoteApiCalls (boolean enabled)

The user has enabled the remote API (via a checkbox)

Parameters
enabled set to "on" by the webwork framework

public void setBaseUrl (String url)

public void setEnableGravatar (boolean enableGravatar)

public void setGravatarService (GravatarService gravatarService)

public void setGzipCompression (boolean enabled)

The user has selected the GZip webpages (via a checkbox)

Parameters
enabled set to "on" by the webwork framework

public void setInstanceName (String instanceName)

public void validate ()