Class WorkflowBackupModel

java.lang.Object
de.xima.fc.workflow.designer.model.WorkflowBackupModel
All Implemented Interfaces:
Serializable

public final class WorkflowBackupModel extends Object implements Serializable
Model for the selected and available automatic backup versions of the workflow.
Since:
7.0.0
Author:
XIMA MEDIA GmbH
See Also:
  • Method Details

    • getAvailableBackups

      public List<WorkflowVersionBackup> getAvailableBackups()
      Returns:
      All available backups the user can choose between.
    • getIndexMap

      public Map<Long,Integer> getIndexMap()
      Returns:
      Map between the WorkflowVersionBackup.getId() and its index in the getAvailableBackups().
    • getMaxBackupCount

      public int getMaxBackupCount()
      Returns:
      Maximum number of automatic backups that will be stored.
    • getSelectedBackup

      @Nullable public WorkflowVersionBackup getSelectedBackup()
      Returns:
      The currently selected backup. null when no backup is selected and the current workflow version should be used.
    • setAvailableBackups

      public void setAvailableBackups(List<WorkflowVersionBackup> availableBackups)
      Parameters:
      availableBackups - All available backups the user can choose between.
    • setIndexMap

      public void setIndexMap(Map<Long,Integer> indexMap)
      Parameters:
      indexMap - Map between the WorkflowVersionBackup.getId() and its index in the getAvailableBackups().
    • setMaxBackupCount

      public void setMaxBackupCount(int maxBackupCount)
      Parameters:
      maxBackupCount - Maximum number of automatic backups that will be stored.
    • setSelectedBackup

      public void setSelectedBackup(@Nullable WorkflowVersionBackup selectedBackup)
      Parameters:
      selectedBackup - The currently selected backup. null when no backup is selected and the current workflow version should be used.
    • empty

      public static WorkflowBackupModel empty()
      Returns:
      A new backup model with no backup selected.