Class BackupRestoreJob

java.lang.Object
com.atlassian.confluence.backuprestore.BackupRestoreJob
All Implemented Interfaces:
NotExportable, Serializable

public class BackupRestoreJob extends Object implements Serializable, NotExportable
Contains information about the backup/restore job. TODO has to be moved to impl package. We can do this later because it will touch 63 files
Since:
7.17.0
See Also:
  • Constructor Details

    • BackupRestoreJob

      public BackupRestoreJob()
  • Method Details

    • getId

      public Long getId()
    • setId

      public void setId(Long id)
    • getJobOperation

      public JobOperation getJobOperation()
    • setJobOperation

      public void setJobOperation(JobOperation jobOperation)
    • getJobScope

      public JobScope getJobScope()
    • setJobScope

      public void setJobScope(JobScope jobScope)
    • getJobState

      public JobState getJobState()
    • setJobState

      public void setJobState(JobState jobState)
    • getCreateTime

      public Instant getCreateTime()
    • setCreateTime

      public void setCreateTime(Instant createTime)
    • getStartProcessingTime

      public Instant getStartProcessingTime()
    • setStartProcessingTime

      public void setStartProcessingTime(Instant startProcessingTime)
    • getFinishProcessingTime

      public Instant getFinishProcessingTime()
    • setFinishProcessingTime

      public void setFinishProcessingTime(Instant finishProcessingTime)
    • getCancelTime

      public Instant getCancelTime()
    • setCancelTime

      public void setCancelTime(Instant cancelTime)
    • getOwner

      public String getOwner()
    • setOwner

      public void setOwner(String owner)
    • getWhoCancelledTheJob

      public String getWhoCancelledTheJob()
    • setWhoCancelledTheJob

      public void setWhoCancelledTheJob(String whoCancelledTheJob)
    • getErrorMessage

      public String getErrorMessage()
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
    • getBackupRestoreSettings

      public BackupRestoreSettings getBackupRestoreSettings()
    • setBackupRestoreSettings

      public void setBackupRestoreSettings(BackupRestoreSettings backupRestoreSettings)
    • getFileDeleteTime

      public Instant getFileDeleteTime()
    • setFileDeleteTime

      public void setFileDeleteTime(Instant fileDeleteTime)
    • isFileExists

      public Boolean isFileExists()
    • setFileExists

      public void setFileExists(Boolean fileExists)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getBackupRestoreJobResult

      public BackupRestoreJobResult getBackupRestoreJobResult()
    • setBackupRestoreJobResult

      public void setBackupRestoreJobResult(BackupRestoreJobResult backupRestoreJobResult)
    • getConfiguration

      public int getConfiguration()
    • hasFlag

      public boolean hasFlag(BackupRestoreJob.ConfigurationFlag flag)
      Returns:
      true if the particular flag is set in the job configuration. Otherwise false.
    • setFlag

      public void setFlag(BackupRestoreJob.ConfigurationFlag flag)
      Sets the particular flag in the job configuration.
    • resetFlag

      public void resetFlag(BackupRestoreJob.ConfigurationFlag flag)
      Reset the particular flag in the job configuration.
    • getFileName

      public String getFileName()
    • setFileName

      public void setFileName(String fileName)
    • getSingleSpaceKey

      public String getSingleSpaceKey()
    • setSingleSpaceKey

      public void setSingleSpaceKey(String singleSpaceKey)
    • getSpaceKeys

      public String getSpaceKeys()
    • setSpaceKeys

      public void setSpaceKeys(String spaceKeys)
    • addSpaceKeys

      public void addSpaceKeys(Collection<String> spaceKeys)
    • getTotalTimeElapsed

      public Long getTotalTimeElapsed(Instant finishTime) throws BadRequestException
      Throws:
      BadRequestException
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object