Interface OrphanVersionRemovalFilter

All Known Implementing Classes:
SnapshotRemovalPolicy

public interface OrphanVersionRemovalFilter
Interface to be implemented by contributions to the orphanVersionRemovalFilter extension point.
Author:
Tiry
  • Method Details

    • getRemovableVersionIds

      List<String> getRemovableVersionIds(CoreSession session, ShallowDocumentModel deletedLiveDoc, List<String> versionUUIDs)
      This method will be called by the OrphanVersionRemoverListener. The method should return the List<String> versionUUIDs that can be deleted.

      A "dummy" implementation will return the same list as the one received as parameter.

      Parameters:
      session - the CoreSession
      deletedLiveDoc - the Shallow DocumentModel that was deleted
      versionUUIDs - the UUIDs of the versions associated to the deleted document
      Returns:
      the "filtered" list of versions that can be removed