java.lang.Object
org.apache.struts2.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, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.Validateable

public class Backup extends AbstractMigrationAction
See Also:
  • Field Details

  • Constructor Details

    • Backup

      public Backup()
  • Method Details

    • doDefault

      public String doDefault()
      Description copied from class: BambooActionSupport
      Default action just sends to the input
      Overrides:
      doDefault in class BambooActionSupport
    • edit

      public String edit()
    • save

      public String save()
    • determineBackupPath

      @VisibleForTesting protected void determineBackupPath(ScheduleBackupConfiguration backupConfig)
      Sets the backup path in the given ScheduleBackupConfiguration

      If backupPath is blank or path manipulation is disabled, the method retrieves the path from the existing configuration. Defaults to the system's backup directory if no path is set The path is updated in backupConfig only if it differs from the default

      Parameters:
      backupConfig - the configuration object to update with the resolved backup path
    • validate

      public void validate()
      Specified by:
      validate in interface org.apache.struts2.Validateable
      Overrides:
      validate in class org.apache.struts2.ActionSupport
    • getNextFireTime

      public Date getNextFireTime()
    • getDefaultMigrationLocation

      public String getDefaultMigrationLocation()
      Specified by:
      getDefaultMigrationLocation in class AbstractMigrationAction
    • getBackupPath

      public String getBackupPath()
    • setBackupPath

      public void setBackupPath(String backupPath)
    • getFileDateFormat

      public String getFileDateFormat()
    • setFileDateFormat

      public void setFileDateFormat(String fileDateFormat)
    • getFilePrefix

      public String getFilePrefix()
    • setFilePrefix

      public void setFilePrefix(String filePrefix)
    • getBackupDisabled

      public String getBackupDisabled()
    • setBackupDisabled

      public void setBackupDisabled(String backupDisabled)
    • getBackupCronExpression

      public String getBackupCronExpression()
    • setBackupCronExpression

      public void setBackupCronExpression(String backupCronExpression)
    • getFileExample

      public String getFileExample()
    • setFileExample

      public void setFileExample(String fileExample)
    • setBootstrapManager

      public void setBootstrapManager(BootstrapManager bootstrapManager)
    • getScheduleBackupBean

      public ScheduleBackupBeanImpl getScheduleBackupBean()
    • setScheduleBackupBean

      public void setScheduleBackupBean(ScheduleBackupBeanImpl scheduleBackupBeanImpl)
    • getExportArtifacts

      public String getExportArtifacts()
    • setExportArtifacts

      public void setExportArtifacts(String exportArtifacts)
    • getAwaitJobCompletion

      public String getAwaitJobCompletion()
    • setAwaitJobCompletion

      public void setAwaitJobCompletion(String awaitJobCompletion)
    • getBackupConfigured

      public String getBackupConfigured()
    • setBackupConfigured

      public void setBackupConfigured(String backupConfigured)
    • getBuildExpiryTime

      @Nullable public @Nullable String getBuildExpiryTime()
    • getBranchExpiryTime

      public String getBranchExpiryTime()