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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected List<org.nuxeo.ecm.permissions.PermissionListener.ACLDiff>
extractACLDiffs
(ACP oldACP, ACP newACP) protected void
firePermissionNotificationEvent
(DocumentEventContext docCtx, String aclName, ACE ace) void
handleEvent
(Event event) Handle the given event.protected void
handleUpdateACP
(DocumentEventContext docCtx, ACP oldACP, ACP newACP) protected void
removeToken
(DocumentModel doc, ACE deletedAce) toACLNames
(ACP acp) protected void
updateDirectory
(DocumentEventContext docCtx)
-
Constructor Details
-
PermissionListener
public PermissionListener()
-
-
Method Details
-
handleEvent
Description copied from interface:EventListener
Handle the given event. The listener can cancel the event by callingEvent.cancel()
- Specified by:
handleEvent
in interfaceEventListener
- Parameters:
event
- the event
-
updateDirectory
-
handleUpdateACP
-
extractACLDiffs
-
toACLNames
-
firePermissionNotificationEvent
protected void firePermissionNotificationEvent(DocumentEventContext docCtx, String aclName, ACE ace) -
addToken
-
removeToken
-