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 void
addToken(ACE ace)
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
handleReplaceACE(DocumentEventContext docCtx, String changedACLName, ACE oldACE, ACE newACE)
Deprecated.since 8.1.protected void
handleUpdateACP(DocumentEventContext docCtx, ACP oldACP, ACP newACP)
protected void
removeToken(DocumentModel doc, ACE deletedAce)
protected List<String>
toACLNames(ACP acp)
protected void
updateDirectory(DocumentEventContext docCtx)
-
-
-
Method Detail
-
handleEvent
public void handleEvent(Event event)
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
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)
-
-