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:
  • Field Details

    • ISO_DATETIME_FORMAT

      public static final String ISO_DATETIME_FORMAT
      See Also:
    • options

      protected List<org.imixs.workflow.ItemCollection> options
  • Constructor Details

    • RestoreController

      public RestoreController()
  • Method Details

    • 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:
    • getMessages

      public List<String> getMessages()
    • 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 -