public class OrphanVersionRemoverListener extends Object implements PostCommitEventListener
OrphanVersionRemovalFilter to allow them to mark some of
the orphan versions to be kept.| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
OrphanVersionRemoverListener() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<OrphanVersionRemovalFilter> |
getFilters() |
void |
handleEvent(EventBundle events)
Handles the set of events that were raised during the life of an user operation.
|
protected void |
removeIfPossible(CoreSession session,
ShallowDocumentModel deletedLiveDoc,
List<String> versionUUIDs) |
protected static final org.apache.commons.logging.Log log
public OrphanVersionRemoverListener()
public void handleEvent(EventBundle events)
PostCommitEventListener
The events are fired as a BundleEvent after the transaction is committed.
handleEvent in interface PostCommitEventListenerevents - the events to handleprotected Collection<OrphanVersionRemovalFilter> getFilters()
protected void removeIfPossible(CoreSession session, ShallowDocumentModel deletedLiveDoc, List<String> versionUUIDs)
Copyright © 2018 Nuxeo. All rights reserved.