- All Implemented Interfaces:
public class OrphanVersionRemoverListener extends Object implements PostCommitEventListenerAsync listener that is in charge to delete the versions. Before running the delete operation on the versions passed as argument of the event, it will call the registred
OrphanVersionRemovalFilterto allow them to mark some of the orphan versions to be kept.
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
handleEvent(EventBundle events)Handles the set of events that were raised during the life of an user operation.
removeIfPossible(CoreSession session, ShallowDocumentModel deletedLiveDoc, List<String> versionUUIDs)
public void handleEvent(EventBundle events)Description copied from interface:
PostCommitEventListenerHandles the set of events that were raised during the life of an user operation.
The events are fired as a
BundleEventafter the transaction is committed.