public class PermissionGrantedNotificationListener extends Object implements PostCommitFilteringEventListenerListener sending an email notification for a granted ACE.
This listener checks only if the ACE is granted. It assumes that other checks (such as the ACE becomes effective) have been done before.
Constructors Constructor Description
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description
acceptEvent(Event event)Checks if this event is worth passing to the asynchronous
handleEvent(EventBundle events)Handles the set of events that were raised during the life of an user operation.
userDisplayName(String id, String first, String last)
public void handleEvent(EventBundle events)Description copied from interface:
PostCommitEventListenerHandles the set of events that were raised during the life of an user operation.
The events are fired as a
BundleEventafter the transaction is committed.
public boolean acceptEvent(Event event)Description copied from interface:
PostCommitFilteringEventListenerChecks if this event is worth passing to the asynchronous
Note that the event's documents are usually disconnected into
ShallowDocumentModelinstances, which means that this method may not be able to get to all the information it would get from a standard DocumentModel implementation. If there is not enough information in the ShallowDocumentModel to decide whether this event is of interest, then this method should accept it an let the actual logic done in
PostCommitEventListener.handleEvent(org.nuxeo.ecm.core.event.EventBundle)do the final filtering.