Package org.opencms.db.generic
Class CmsPublishHistoryCleanupFilter
java.lang.Object
org.opencms.db.generic.CmsPublishHistoryCleanupFilter
Filter object that describes what to clean up in a publish history cleanup operation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Mode of operation for publish history cleanup. -
Method Summary
Modifier and TypeMethodDescriptionallUnreferencedExcept
(List<CmsUUID> exceptions) Creates a new filter for removing all unreferenced publish history entries, except the ones with the given history ids.forHistoryId
(CmsUUID publishJobId) Creates a filter for removing the publish history entries for a single history id.Gets the list of history ids for which entries should not be deleted.Gets the history id.getMode()
Gets the mode.
-
Method Details
-
allUnreferencedExcept
Creates a new filter for removing all unreferenced publish history entries, except the ones with the given history ids.- Parameters:
exceptions
- the history ids for which entries should not be deleted- Returns:
- the filter
-
forHistoryId
Creates a filter for removing the publish history entries for a single history id.- Parameters:
publishJobId
- the history id- Returns:
- the filter
-
getExceptions
Gets the list of history ids for which entries should not be deleted.- Returns:
- the list of history ids for which entries should not be deleted
-
getHistoryId
Gets the history id.- Returns:
- the history id
-
getMode
Gets the mode.- Returns:
- the mode
-