public class SnapshotRemovalPolicy extends Object implements OrphanVersionRemovalFilter
Constructor and Description |
---|
SnapshotRemovalPolicy() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canRemoveVersions(CoreSession session,
DocumentModel doc,
List<String> uuids) |
List<String> |
getRemovableVersionIds(CoreSession session,
ShallowDocumentModel deletedLiveDoc,
List<String> versionUUIDs)
This method will be called by the
OrphanVersionRemoverListener . |
public SnapshotRemovalPolicy()
protected boolean canRemoveVersions(CoreSession session, DocumentModel doc, List<String> uuids)
public List<String> getRemovableVersionIds(CoreSession session, ShallowDocumentModel deletedLiveDoc, List<String> versionUUIDs)
OrphanVersionRemovalFilter
OrphanVersionRemoverListener
. The method should return the ListA "dummy" implementation will return the same list as the one received as parameter.
getRemovableVersionIds
in interface OrphanVersionRemovalFilter
session
- the CoreSessiondeletedLiveDoc
- the Shallow DocumentModel that was deletedversionUUIDs
- the UUIDs of the versions associated to the deleted documentCopyright © 2018 Nuxeo. All rights reserved.