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:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkflowBackupModelempty()List<WorkflowVersionBackup>getAvailableBackups()Map<Long,Integer>getIndexMap()intgetMaxBackupCount()WorkflowVersionBackupgetSelectedBackup()voidsetAvailableBackups(List<WorkflowVersionBackup> availableBackups)voidsetIndexMap(Map<Long,Integer> indexMap)voidsetMaxBackupCount(int maxBackupCount)voidsetSelectedBackup(WorkflowVersionBackup selectedBackup)
-
-
-
Method Detail
-
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 thegetAvailableBackups().
-
getMaxBackupCount
public int getMaxBackupCount()
- Returns:
- Maximum number of automatic backups that will be stored.
-
getSelectedBackup
@Nullable public WorkflowVersionBackup getSelectedBackup()
- Returns:
- The currently selected backup.
nullwhen 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 theWorkflowVersionBackup.getId()and its index in thegetAvailableBackups().
-
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.nullwhen 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.
-
-