Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.ec.notification
Class NotificationEventListener

java.lang.Object
  extended by org.nuxeo.ecm.platform.ec.notification.NotificationEventListener
All Implemented Interfaces:
PostCommitEventListener

public class NotificationEventListener
extends Object
implements PostCommitEventListener


Constructor Summary
NotificationEventListener()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationEventListener

public NotificationEventListener()
Method Detail

handleEvent

public void handleEvent(EventBundle events)
                 throws ClientException
Description copied from interface: PostCommitEventListener
Handles the set of events that were raised during the life of an user operation.

The events are fired as a BundleEvent after the transaction is committed.

Specified by:
handleEvent in interface PostCommitEventListener
Parameters:
events - the events to handle
Throws:
ClientException

sendNotification

public void sendNotification(Event event,
                             DocumentEventContext ctx)
                      throws ClientException
Throws:
ClientException

isInterestedInNotification

public boolean isInterestedInNotification(Notification notif)

getDocLocator

public DocumentViewCodecManager getDocLocator()

getEmailHelper

public EmailHelper getEmailHelper()

setEmailHelper

public void setEmailHelper(EmailHelper emailHelper)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.