public class NotificationEventListener extends Object implements PostCommitFilteringEventListener
Constructor and Description |
---|
NotificationEventListener() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptEvent(Event event)
Checks if this event is worth passing to the asynchronous
PostCommitEventListener.handleEvent(org.nuxeo.ecm.core.event.EventBundle) . |
DocumentViewCodecManager |
getDocLocator() |
EmailHelper |
getEmailHelper() |
void |
handleEvent(EventBundle events)
Handles the set of events that were raised during the life of an user
operation.
|
boolean |
isInterestedInNotification(Notification notif) |
void |
sendNotification(Event event,
DocumentEventContext ctx) |
void |
setEmailHelper(EmailHelper emailHelper) |
public boolean acceptEvent(Event event)
PostCommitFilteringEventListener
PostCommitEventListener.handleEvent(org.nuxeo.ecm.core.event.EventBundle)
.acceptEvent
in interface PostCommitFilteringEventListener
event
- the eventtrue
to accept it, or false
to ignore itpublic void handleEvent(EventBundle events) throws ClientException
PostCommitEventListener
The events are fired as a BundleEvent
after the transaction is
committed.
handleEvent
in interface PostCommitEventListener
events
- the events to handleClientException
public void sendNotification(Event event, DocumentEventContext ctx) throws ClientException
ClientException
public boolean isInterestedInNotification(Notification notif)
public DocumentViewCodecManager getDocLocator()
public EmailHelper getEmailHelper()
public void setEmailHelper(EmailHelper emailHelper)
Copyright © 2012 Nuxeo SA. All Rights Reserved.