public class NuxeoDriveFileSystemDeletionListener extends Object implements EventListener
Constructor and Description |
---|
NuxeoDriveFileSystemDeletionListener() |
Modifier and Type | Method and Description |
---|---|
protected LogEntry |
computeLogEntry(String eventName,
Date eventDate,
String docId,
String docPath,
String principal,
String docType,
String repositoryName,
String currentLifeCycleState,
String impactedUserName,
FileSystemItem fsItem) |
protected void |
fireVirtualEventLogEntries(DocumentModel doc,
String eventName,
Principal principal,
String impactedUserName,
CoreSession session) |
protected List<DocumentModel> |
getChildSyncRoots(DocumentModel doc,
CoreSession session) |
protected FileSystemItem |
getFileSystemItem(DocumentModel doc,
String eventName) |
protected boolean |
handleAboutToRemove(DocumentModel doc) |
protected DocumentModel |
handleBeforeDocUpdate(DocumentEventContext ctx,
DocumentModel doc) |
void |
handleEvent(Event event)
Handle the given event.
|
protected boolean |
handleLifeCycleTransition(DocumentEventContext ctx) |
public NuxeoDriveFileSystemDeletionListener()
public void handleEvent(Event event)
EventListener
Event.cancel()
handleEvent
in interface EventListener
event
- the eventprotected DocumentModel handleBeforeDocUpdate(DocumentEventContext ctx, DocumentModel doc)
protected boolean handleLifeCycleTransition(DocumentEventContext ctx)
protected boolean handleAboutToRemove(DocumentModel doc)
protected void fireVirtualEventLogEntries(DocumentModel doc, String eventName, Principal principal, String impactedUserName, CoreSession session)
protected FileSystemItem getFileSystemItem(DocumentModel doc, String eventName)
protected List<DocumentModel> getChildSyncRoots(DocumentModel doc, CoreSession session)
Copyright © 2017 Nuxeo. All rights reserved.