public class NotificationEventListener extends Object implements PostCommitEventListener
Constructor and Description |
---|
NotificationEventListener() |
Modifier and Type | Method and Description |
---|---|
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 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 © 2011 Nuxeo SA. All Rights Reserved.