Package org.imixs.archive.service.ui
Class RestoreController
- java.lang.Object
-
- org.imixs.archive.service.ui.RestoreController
-
- All Implemented Interfaces:
Serializable
@Named @SessionScoped public class RestoreController extends Object implements 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringISO_DATETIME_FORMATprotected List<org.imixs.workflow.ItemCollection>options
-
Constructor Summary
Constructors Constructor Description RestoreController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOption()Adds a new filter optionList<String>getMessages()List<org.imixs.workflow.ItemCollection>getOptions()This methd returns a ItemCollection for each option Example:#{restoreController.options}longgetRestoreCount()longgetRestoreErrors()StringgetRestoreFrom()StringgetRestoreSize()StringgetRestoreSizeUnit()DategetRestoreSyncPoint()returns the syncpoint of the current configurationStringgetRestoreTo()longgetSyncPoint()returns the syncpoint of the current configurationStringgetSyncPointISO()returns the syncpoint of the current configurationbooleanisRunning()Returns 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)voidstartRestore()This method starts a restore processvoidstopRestore()This method cancels a current running sny process
-
-
-
Field Detail
-
ISO_DATETIME_FORMAT
public static final String ISO_DATETIME_FORMAT
- See Also:
- Constant Field Values
-
options
protected List<org.imixs.workflow.ItemCollection> options
-
-
Method Detail
-
reset
public void reset()
This method initializes the default sync date
-
getRestoreFrom
public String getRestoreFrom()
-
setRestoreFrom
public void setRestoreFrom(String restorePoint) throws ParseException
- Throws:
ParseException
-
getRestoreTo
public String getRestoreTo()
-
setRestoreTo
public void setRestoreTo(String restorePoint)
-
getRestoreSyncPoint
public Date getRestoreSyncPoint()
returns the syncpoint of the current configuration- Returns:
-
getRestoreCount
public long getRestoreCount()
-
getRestoreErrors
public long getRestoreErrors()
-
getRestoreSize
public String getRestoreSize()
-
getRestoreSizeUnit
public String getRestoreSizeUnit()
-
getSyncPoint
public long getSyncPoint()
returns the syncpoint of the current configuration- Returns:
-
getSyncPointISO
public String 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:
-
getOptions
public List<org.imixs.workflow.ItemCollection> getOptions()
This methd returns a ItemCollection for each option Example:#{restoreController.options}- Returns:
-
setOptions
public void setOptions(List<org.imixs.workflow.ItemCollection> options)
-
addOption
public void addOption()
Adds a new filter option
-
removeOption
public void removeOption(String optionName)
Removes an option by name- Parameters:
optionName-
-
-