Class BackupFilter

java.lang.Object
backupmanager.filter.BackupFilter
All Implemented Interfaces:
BackupFunction
Direct Known Subclasses:
AlarmBackupFilter, PassAllBackupFilter

public abstract class BackupFilter extends Object implements BackupFunction
  • Field Details

    • filterName

      public String filterName
  • Constructor Details

  • Method Details

    • getBackupAction

      public BackupAction getBackupAction()
    • runFilter

      public abstract boolean runFilter(BackupManager backupManager, List<StreamItem> streamItems)
      Filter all items in the list.
      Parameters:
      streamItems - list of stream items, will have been sorted.
      Returns:
      true if preparation went OK, e.g false if a database query failed, but true if it returned no records.
    • getName

      public String getName()
      Specified by:
      getName in interface BackupFunction
      Returns:
      filter name
    • setFilterParams

      public abstract void setFilterParams(BackupFilterParams backupFilterParams)
      Set params called from parent BackupAction when it receives its params
      Parameters:
      backupFilterParams -
    • getFilterParams

      public abstract BackupFilterParams getFilterParams()
      Get filter params to save with the BackupAction parameters.
      Returns:
    • passEverything

      public void passEverything(List<StreamItem> streamItems)
      Flag all items as passed
      Parameters:
      streamItems -
    • passEverything

      public void passEverything(List<StreamItem> streamItems, String message)
      Flag all items as passed
      Parameters:
      streamItems - List of stream items.
      message - message to write into all stream items
    • unPassEverything

      public void unPassEverything(List<StreamItem> streamItems)
      Flag all items as not passed
      Parameters:
      streamItems -
    • unPassEverything

      public void unPassEverything(List<StreamItem> streamItems, String message)
      Flag all items as passed
      Parameters:
      streamItems - List of stream items.
      message - message to write into all stream items