public class ActivityStreamListener extends Object implements PostCommitEventListener
ActivityStreamService
.Constructor and Description |
---|
ActivityStreamListener() |
Modifier and Type | Method and Description |
---|---|
protected List<Event> |
filterDuplicateEvents(EventBundle events) |
protected String |
getDocumentTitle(CoreSession session,
DocumentRef docRef) |
protected List<String> |
getHandledEventsName() |
protected List<DocumentRef> |
getParentSuperSpaceRefs(CoreSession session,
DocumentModel doc) |
protected void |
handleEvent(Event event) |
void |
handleEvent(EventBundle events)
Handles the set of events that were raised during the life of an user operation.
|
protected boolean |
isEventBundleHandled(EventBundle events) |
protected boolean |
isEventHandled(Event event) |
protected boolean |
isSkippedDocument(DocumentModel doc) |
protected List<Event> |
removeEventIfExist(List<Event> events,
Event event) |
protected Activity |
toActivity(DocumentEventContext docEventContext,
Event event) |
protected Activity |
toActivity(DocumentEventContext docEventContext,
Event event,
String context) |
public ActivityStreamListener()
public void handleEvent(EventBundle events)
PostCommitEventListener
The events are fired as a BundleEvent
after the transaction is committed.
handleEvent
in interface PostCommitEventListener
events
- the events to handleprotected List<Event> filterDuplicateEvents(EventBundle events)
protected void handleEvent(Event event)
protected boolean isSkippedDocument(DocumentModel doc)
protected boolean isEventHandled(Event event)
protected boolean isEventBundleHandled(EventBundle events)
protected List<String> getHandledEventsName()
protected Activity toActivity(DocumentEventContext docEventContext, Event event)
protected Activity toActivity(DocumentEventContext docEventContext, Event event, String context)
protected String getDocumentTitle(CoreSession session, DocumentRef docRef)
protected List<DocumentRef> getParentSuperSpaceRefs(CoreSession session, DocumentModel doc)
Copyright © 2017 Nuxeo. All rights reserved.