Class WorkflowBackupModel
java.lang.Object
de.xima.fc.workflow.designer.model.WorkflowBackupModel
- All Implemented Interfaces:
Serializable
Model for the selected and available automatic backup versions of the workflow.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic WorkflowBackupModel
empty()
int
void
setAvailableBackups
(List<WorkflowVersionBackup> availableBackups) void
setIndexMap
(Map<Long, Integer> indexMap) void
setMaxBackupCount
(int maxBackupCount) void
setSelectedBackup
(WorkflowVersionBackup selectedBackup)
-
Method Details
-
getAvailableBackups
- Returns:
- All available backups the user can choose between.
-
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
- Returns:
- The currently selected backup.
null
when no backup is selected and the current workflow version should be used.
-
setAvailableBackups
- Parameters:
availableBackups
- All available backups the user can choose between.
-
setIndexMap
- 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
- Parameters:
selectedBackup
- The currently selected backup.null
when no backup is selected and the current workflow version should be used.
-
empty
- Returns:
- A new backup model with no backup selected.
-