Class ConfigurationAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalAdminSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.TextProvider, com.atlassian.struts.ValidationAware, com.opensymphony.xwork.ValidationAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

public class ConfigurationAction extends GlobalAdminAction implements GlobalAdminSecurityAware
This class handles configuration updates from am web form
See Also:
  • Constructor Details

    • ConfigurationAction

      public ConfigurationAction()
  • Method Details

    • validate

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

      public String execute() throws Exception
      Update the system with the administration configuration.
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.ActionSupport
      Returns:
      WebWork status
      Throws:
      Exception
    • input

      public String input() throws Exception
      Overrides:
      input in class com.opensymphony.xwork2.ActionSupport
      Throws:
      Exception
    • getDefaultBaseUrl

      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
    • getActualBaseUrl

      public String getActualBaseUrl()
    • getBaseUrl

      public String getBaseUrl()
      Overrides:
      getBaseUrl in class BambooActionSupport
    • setBaseUrl

      public void setBaseUrl(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 String getInstanceName()
      Get and Set the name of the Bamboo Instance
      Overrides:
      getInstanceName in class BambooActionSupport
    • setInstanceName

      public void setInstanceName(String instanceName)
    • isEnableGravatar

      public boolean isEnableGravatar()
    • setEnableGravatar

      public void setEnableGravatar(boolean enableGravatar)
    • setGravatarService

      public void setGravatarService(GravatarService gravatarService)
    • setBootstrapManager

      public void setBootstrapManager(BootstrapManager bootstrapManager)
    • setBranchAndTagDetectionJobScheduler

      public void setBranchAndTagDetectionJobScheduler(BranchAndTagDetectionJobScheduler branchAndTagDetectionJobScheduler)
    • setPullRequestDetectionJobScheduler

      public void setPullRequestDetectionJobScheduler(PullRequestDetectionJobScheduler pullRequestDetectionJobScheduler)
    • getDashboardPageSize

      public int getDashboardPageSize()
    • setDashboardPageSize

      public void setDashboardPageSize(int dashboardPageSize)
    • getGravatarServerUrl

      public String getGravatarServerUrl()
    • setGravatarServerUrl

      public void setGravatarServerUrl(String gravatarServerUrl)
    • getBrokerUrl

      public String getBrokerUrl()
    • setBrokerUrl

      public void setBrokerUrl(String url)
    • getBrokerClientUrl

      public String getBrokerClientUrl()
    • setBrokerClientUrl

      public void setBrokerClientUrl(String url)
    • getBranchDetectionInterval

      public int getBranchDetectionInterval()
    • setBranchDetectionInterval

      public void setBranchDetectionInterval(int branchDetectionInterval)
    • isEnableRssPolling

      public boolean isEnableRssPolling()
    • setEnableRssPolling

      public void setEnableRssPolling(boolean enableRssPolling)
    • getRssPollingCron

      public String getRssPollingCron()
    • setRssPollingCron

      public void setRssPollingCron(String rssPollingCron)
    • isQuietPeriodGloballyDisabled

      public Boolean isQuietPeriodGloballyDisabled()
    • setQuietPeriodGloballyDisabled

      public void setQuietPeriodGloballyDisabled(Boolean quietPeriodGloballyDisabled)
    • isQuietPeriodGloballyEnabled

      public boolean isQuietPeriodGloballyEnabled()
    • setQuietPeriodGloballyEnabled

      public void setQuietPeriodGloballyEnabled(boolean enabled)