Class BuildExpiryAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.build.expiry.BuildExpiryAction
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalAdminSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.Preparable, 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.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

public class BuildExpiryAction extends BambooActionSupport implements GlobalAdminSecurityAware, com.atlassian.struts.Preparable
Action class to configure and run build and deployment expiry.
See Also:
  • Constructor Details

    • BuildExpiryAction

      public BuildExpiryAction()
  • Method Details

    • prepare

      public void prepare() throws Exception
      Specified by:
      prepare in interface com.opensymphony.xwork2.Preparable
      Throws:
      Exception
    • validate

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

      public String read() throws Exception
      Throws:
      Exception
    • run

      public String run() throws Exception
      Throws:
      Exception
    • confirmDeploymentExpiry

      public String confirmDeploymentExpiry()
    • approveDeploymentExpiry

      public String approveDeploymentExpiry() throws Exception
      Throws:
      Exception
    • edit

      public String edit()
    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.ActionSupport
      Throws:
      Exception
    • getSecuredDomainObject

      public Object getSecuredDomainObject()
      Specified by:
      getSecuredDomainObject in interface DomainObjectSecurityAware
      Overrides:
      getSecuredDomainObject in class BambooActionSupport
    • getPrettyCronExpression

      public String getPrettyCronExpression(String cronExpression)
    • getSelectedExpiryTypesLabel

      public String getSelectedExpiryTypesLabel()
    • getTrigger

      @Nullable public @Nullable org.quartz.Trigger getTrigger()
    • getBuildExpiryTypes

      public List<BuildExpiryType> getBuildExpiryTypes()
    • getDefaultCronExpression

      public String getDefaultCronExpression()
    • setBuildExpiryBean

      public void setBuildExpiryBean(BuildExpiryBean buildExpiryBean)
    • setExpiryScheduler

      public void setExpiryScheduler(ExpiryScheduler expiryScheduler)
    • setDeploymentExpiryService

      public void setDeploymentExpiryService(DeploymentExpiryService deploymentExpiryService)
    • isDeploymentExpiryEnabled

      public boolean isDeploymentExpiryEnabled()
    • getExpiryConfig

      public CombinedExpiryConfig getExpiryConfig()
    • setExpiryConfig

      public void setExpiryConfig(CombinedExpiryConfig expiryConfig)
    • getMaxIgnoredLogSizeFormatted

      public String getMaxIgnoredLogSizeFormatted()