Package org.nuxeo.ecm.core.versioning
Interface OrphanVersionRemovalFilter
- All Known Implementing Classes:
SnapshotRemovalPolicy
public interface OrphanVersionRemovalFilter
Interface to be implemented by contributions to the orphanVersionRemovalFilter extension point.
- Author:
- Tiry
-
Method Summary
Modifier and TypeMethodDescriptiongetRemovableVersionIds
(CoreSession session, ShallowDocumentModel deletedLiveDoc, List<String> versionUUIDs) This method will be called by theOrphanVersionRemoverListener
.
-
Method Details
-
getRemovableVersionIds
List<String> getRemovableVersionIds(CoreSession session, ShallowDocumentModel deletedLiveDoc, List<String> versionUUIDs) This method will be called by theOrphanVersionRemoverListener
. 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 CoreSessiondeletedLiveDoc
- the Shallow DocumentModel that was deletedversionUUIDs
- the UUIDs of the versions associated to the deleted document- Returns:
- the "filtered" list of versions that can be removed
-