Package org.nuxeo.ecm.permissions
Class PermissionListener
java.lang.Object
org.nuxeo.ecm.permissions.PermissionListener
- All Implemented Interfaces:
EventListener
Listener filling the 'aceinfo' directory when an ACP is updated.
- Since:
- 7.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected List<org.nuxeo.ecm.permissions.PermissionListener.ACLDiff>extractACLDiffs(ACP oldACP, ACP newACP) protected voidfirePermissionNotificationEvent(DocumentEventContext docCtx, String aclName, ACE ace) voidhandleEvent(Event event) Handle the given event.protected voidhandleUpdateACP(DocumentEventContext docCtx, ACP oldACP, ACP newACP) protected voidremoveToken(DocumentModel doc, ACE deletedAce) toACLNames(ACP acp) protected voidupdateDirectory(DocumentEventContext docCtx)
-
Constructor Details
-
PermissionListener
public PermissionListener()
-
-
Method Details
-
handleEvent
Description copied from interface:EventListenerHandle the given event. The listener can cancel the event by callingEvent.cancel()- Specified by:
handleEventin interfaceEventListener- Parameters:
event- the event
-
updateDirectory
-
handleUpdateACP
-
extractACLDiffs
-
toACLNames
-
firePermissionNotificationEvent
protected void firePermissionNotificationEvent(DocumentEventContext docCtx, String aclName, ACE ace) -
addToken
-
removeToken
-