Package backupmanager.filter
Class BackupFilter
java.lang.Object
backupmanager.filter.BackupFilter
- All Implemented Interfaces:
BackupFunction
- Direct Known Subclasses:
AlarmBackupFilter
,PassAllBackupFilter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract BackupFilterParams
Get filter params to save with the BackupAction parameters.getName()
void
passEverything
(List<StreamItem> streamItems) Flag all items as passedvoid
passEverything
(List<StreamItem> streamItems, String message) Flag all items as passedabstract boolean
runFilter
(BackupManager backupManager, List<StreamItem> streamItems) Filter all items in the list.abstract void
setFilterParams
(BackupFilterParams backupFilterParams) Set params called from parent BackupAction when it receives its paramsvoid
unPassEverything
(List<StreamItem> streamItems) Flag all items as not passedvoid
unPassEverything
(List<StreamItem> streamItems, String message) Flag all items as passedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface backupmanager.BackupFunction
getDialogPanel
-
Field Details
-
filterName
-
-
Constructor Details
-
BackupFilter
-
-
Method Details
-
getBackupAction
-
runFilter
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
- Specified by:
getName
in interfaceBackupFunction
- Returns:
- filter name
-
setFilterParams
Set params called from parent BackupAction when it receives its params- Parameters:
backupFilterParams
-
-
getFilterParams
Get filter params to save with the BackupAction parameters.- Returns:
-
passEverything
Flag all items as passed- Parameters:
streamItems
-
-
passEverything
Flag all items as passed- Parameters:
streamItems
- List of stream items.message
- message to write into all stream items
-
unPassEverything
Flag all items as not passed- Parameters:
streamItems
-
-
unPassEverything
Flag all items as passed- Parameters:
streamItems
- List of stream items.message
- message to write into all stream items
-