com.atlassian.bamboo.configuration
Class ConfigurationAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.configuration.GlobalAdminAction
              extended by com.atlassian.bamboo.configuration.ConfigurationAction
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalAdminSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, java.io.Serializable

public class ConfigurationAction
extends GlobalAdminAction
implements GlobalAdminSecurityAware

This class handles configuration updates from am web form

See Also:
Serialized 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
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, dashboardCachingManager, deploymentProjectService, environmentService, featureManager, PLAN_KEY_CONTEXT, planExecutionManager, planManager, projectManager, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.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.
 java.lang.String getActualBaseUrl()
           
 java.lang.String getBaseUrl()
           
 java.lang.String getBrokerClientUrl()
           
 java.lang.String getBrokerUrl()
           
 int getDashboardPageSize()
           
 java.lang.String getDefaultBaseUrl()
          See if we can determine the default base url from the servlet request...
 java.lang.String getGravatarServerUrl()
           
 boolean getGzipCompression()
          Informs the UI if the Gzip option is enabled.
 java.lang.String getInstanceName()
          Get and Set the name of the Bamboo Instance
 boolean isEnableGravatar()
           
 void setBaseUrl(java.lang.String url)
           
 void setBootstrapManager(BootstrapManager bootstrapManager)
           
 void setBrokerClientUrl(java.lang.String url)
           
 void setBrokerUrl(java.lang.String url)
           
 void setDashboardPageSize(int dashboardPageSize)
           
 void setEnableGravatar(boolean enableGravatar)
           
 void setGravatarServerUrl(java.lang.String gravatarServerUrl)
           
 void setGravatarService(GravatarService gravatarService)
           
 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.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doInput, execute, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDeploymentProject, getDescriptionFromLabelKey, getElasticConfig, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedActionWarnings, getFormattedErrorMessages, getHelpPanels, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getServerLifecycleState, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, getTextWithArgs, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebPanelContext, getWebSectionsForLocation, hasActionWarnings, hasAdminPermission, hasAnyErrors, hasBuilds, hasEntityPermission, hasGlobalAdminPermission, hasGlobalPermission, hasGlobalPermission, hasKey, hasLinkedDeployments, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, input, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setDeploymentProjectService, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLinkedDeploymentProjectCacheService, setNavigationContext, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, toJson, toJson
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFormatted, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, setContainer, 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
 
Methods inherited from interface com.opensymphony.xwork2.ValidationAware
addActionMessage, addFieldError, getActionErrors, getActionMessages, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
 

Constructor Detail

ConfigurationAction

public ConfigurationAction()
Method Detail

validate

public void validate()
Specified by:
validate in interface com.opensymphony.xwork2.Validateable
Overrides:
validate in class com.opensymphony.xwork2.ActionSupport

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
Update the system with the administration configuration.

Overrides:
doExecute in class BambooActionSupport
Returns:
WebWork status
Throws:
java.lang.Exception - something nasty went wrong

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Description copied from class: BambooActionSupport
Default action just sends to the input

Overrides:
doDefault in class BambooActionSupport
Throws:
java.lang.Exception

getDefaultBaseUrl

public java.lang.String getDefaultBaseUrl()
See if we can determine the default base url from the servlet request... otherwise use a preset default one

Returns:
The url

getActualBaseUrl

public java.lang.String getActualBaseUrl()

getBaseUrl

public java.lang.String getBaseUrl()
Overrides:
getBaseUrl in class BambooActionSupport

setBaseUrl

public void setBaseUrl(java.lang.String url)

setGzipCompression

public void setGzipCompression(boolean enabled)
The user has selected the GZip webpages (via a checkbox)

Parameters:
enabled - set to "on" by the webwork framework

getGzipCompression

public boolean getGzipCompression()
Informs the UI if the Gzip option is enabled.

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

getInstanceName

public java.lang.String getInstanceName()
Get and Set the name of the Bamboo Instance

Overrides:
getInstanceName in class BambooActionSupport

setInstanceName

public void setInstanceName(java.lang.String instanceName)

isEnableGravatar

public boolean isEnableGravatar()

setEnableGravatar

public void setEnableGravatar(boolean enableGravatar)

setGravatarService

public void setGravatarService(GravatarService gravatarService)

setBootstrapManager

public void setBootstrapManager(BootstrapManager bootstrapManager)

getDashboardPageSize

public int getDashboardPageSize()

setDashboardPageSize

public void setDashboardPageSize(int dashboardPageSize)

getGravatarServerUrl

public java.lang.String getGravatarServerUrl()

setGravatarServerUrl

public void setGravatarServerUrl(java.lang.String gravatarServerUrl)

getBrokerUrl

public java.lang.String getBrokerUrl()

setBrokerUrl

public void setBrokerUrl(java.lang.String url)

getBrokerClientUrl

public java.lang.String getBrokerClientUrl()

setBrokerClientUrl

public void setBrokerClientUrl(java.lang.String url)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.