Package org.imixs.archive.service.ui
Class RestoreController
java.lang.Object
org.imixs.archive.service.ui.RestoreController
- All Implemented Interfaces:
Serializable
CID Bean for the resync service.
The syncpoint is managed as a string in the format 2019-12-31T06:00
- Author:
- rsoika
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new filter optionList<org.imixs.workflow.ItemCollection>This methd returns a ItemCollection for each option Example:#{restoreController.options}longlongreturns the syncpoint of the current configurationlongreturns the syncpoint of the current configurationreturns the syncpoint of the current configurationbooleanReturns true if a restore is running.voidremoveOption(String optionName) Removes an option by namevoidreset()This method initializes the default sync datevoidsetOptions(List<org.imixs.workflow.ItemCollection> options) voidsetRestoreFrom(String restorePoint) voidsetRestoreTo(String restorePoint) voidThis method starts a restore processvoidThis method cancels a current running sny process
-
Field Details
-
ISO_DATETIME_FORMAT
- See Also:
-
options
-
-
Constructor Details
-
RestoreController
public RestoreController()
-
-
Method Details
-
reset
public void reset()This method initializes the default sync date -
getRestoreFrom
-
setRestoreFrom
- Throws:
ParseException
-
getRestoreTo
-
setRestoreTo
-
getRestoreSyncPoint
returns the syncpoint of the current configuration- Returns:
-
getRestoreCount
public long getRestoreCount() -
getRestoreErrors
public long getRestoreErrors() -
getRestoreSize
-
getRestoreSizeUnit
-
getSyncPoint
public long getSyncPoint()returns the syncpoint of the current configuration- Returns:
-
getSyncPointISO
returns the syncpoint of the current configuration- Returns:
-
startRestore
public void startRestore()This method starts a restore process -
stopRestore
public void stopRestore()This method cancels a current running sny process- Throws:
ArchiveException
-
isRunning
public boolean isRunning()Returns true if a restore is running.- Returns:
-
getMessages
-
getOptions
This methd returns a ItemCollection for each option Example:#{restoreController.options}- Returns:
-
setOptions
-
addOption
public void addOption()Adds a new filter option -
removeOption
Removes an option by name- Parameters:
optionName-
-