Class CmsPublishHistoryCleanupFilter


  • public class CmsPublishHistoryCleanupFilter
    extends java.lang.Object
    Filter object that describes what to clean up in a publish history cleanup operation.
    • Method Detail

      • allUnreferencedExcept

        public static CmsPublishHistoryCleanupFilter allUnreferencedExcept​(java.util.List<CmsUUID> exceptions)
        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

        public static CmsPublishHistoryCleanupFilter forHistoryId​(CmsUUID publishJobId)
        Creates a filter for removing the publish history entries for a single history id.
        Parameters:
        publishJobId - the history id
        Returns:
        the filter
      • getExceptions

        public java.util.List<CmsUUIDgetExceptions()
        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