Class 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:
    Serialized Form
    • Method Detail

      • getAvailableBackups

        public List<WorkflowVersionBackup> getAvailableBackups()
        Returns:
        All available backups the user can choose between.
      • 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.
      • 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.