Package org.nuxeo.ecm.permissions
Class PermissionListener
- java.lang.Object
-
- org.nuxeo.ecm.permissions.PermissionListener
-
- All Implemented Interfaces:
EventListener
public class PermissionListener extends Object implements EventListener
Listener filling the 'aceinfo' directory when an ACP is updated.- Since:
- 7.4
-
-
Constructor Summary
Constructors Constructor Description PermissionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddToken(ACE ace)protected 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 voidhandleReplaceACE(DocumentEventContext docCtx, String changedACLName, ACE oldACE, ACE newACE)Deprecated.since 8.1.protected voidhandleUpdateACP(DocumentEventContext docCtx, ACP oldACP, ACP newACP)protected voidremoveToken(DocumentModel doc, ACE deletedAce)protected List<String>toACLNames(ACP acp)protected voidupdateDirectory(DocumentEventContext docCtx)
-
-
-
Method Detail
-
handleEvent
public void handleEvent(Event event)
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
protected void updateDirectory(DocumentEventContext docCtx)
-
handleUpdateACP
protected void handleUpdateACP(DocumentEventContext docCtx, ACP oldACP, ACP newACP)
-
handleReplaceACE
@Deprecated protected void handleReplaceACE(DocumentEventContext docCtx, String changedACLName, ACE oldACE, ACE newACE)
Deprecated.since 8.1. Not used anymore.
-
extractACLDiffs
protected List<org.nuxeo.ecm.permissions.PermissionListener.ACLDiff> extractACLDiffs(ACP oldACP, ACP newACP)
-
firePermissionNotificationEvent
protected void firePermissionNotificationEvent(DocumentEventContext docCtx, String aclName, ACE ace)
-
addToken
protected void addToken(ACE ace)
-
removeToken
protected void removeToken(DocumentModel doc, ACE deletedAce)
-
-