public class PermissionGrantedNotificationListener extends Object implements PostCommitFilteringEventListener
This listener checks only if the ACE is granted. It assumes that other checks (such as the ACE becomes effective) have been done before.
| Modifier and Type | Field and Description | 
|---|---|
static String | 
LABEL_SUBJECT_NEW_PERMISSION  | 
static String | 
SUBJECT_FORMAT  | 
| Constructor and Description | 
|---|
PermissionGrantedNotificationListener()  | 
| 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). | 
protected StringList | 
getRecipients(String username)  | 
protected void | 
handleEvent(Event event)  | 
void | 
handleEvent(EventBundle events)
Handles the set of events that were raised during the life of an user operation. 
 | 
static String | 
principalFullName(NuxeoPrincipal principal)  | 
static String | 
userDisplayName(String id,
               String first,
               String last)  | 
public static final String LABEL_SUBJECT_NEW_PERMISSION
public static final String SUBJECT_FORMAT
public PermissionGrantedNotificationListener()
public void handleEvent(EventBundle events)
PostCommitEventListener
 The events are fired as a BundleEvent after the transaction is committed.
handleEvent in interface PostCommitEventListenerevents - the events to handleprotected void handleEvent(Event event)
public static String principalFullName(NuxeoPrincipal principal)
public static String userDisplayName(String id, String first, String last)
protected StringList getRecipients(String username)
public boolean acceptEvent(Event event)
PostCommitFilteringEventListenerPostCommitEventListener.handleEvent(org.nuxeo.ecm.core.event.EventBundle).
 
 Note that the event's documents are usually disconnected into
 ShallowDocumentModel instances, 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.
acceptEvent in interface PostCommitFilteringEventListenerevent - the eventtrue to accept it, or false to ignore itCopyright © 2019 Nuxeo. All rights reserved.