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 Details

    • PermissionListener

      public PermissionListener()
  • Method Details

    • handleEvent

      public void handleEvent(Event event)
      Description copied from interface: EventListener
      Handle the given event. The listener can cancel the event by calling Event.cancel()
      Specified by:
      handleEvent in interface EventListener
      Parameters:
      event - the event
    • updateDirectory

      protected void updateDirectory(DocumentEventContext docCtx)
    • handleUpdateACP

      protected void handleUpdateACP(DocumentEventContext docCtx, ACP oldACP, ACP newACP)
    • extractACLDiffs

      protected List<org.nuxeo.ecm.permissions.PermissionListener.ACLDiff> extractACLDiffs(ACP oldACP, ACP newACP)
    • toACLNames

      protected List<String> toACLNames(ACP acp)
    • firePermissionNotificationEvent

      protected void firePermissionNotificationEvent(DocumentEventContext docCtx, String aclName, ACE ace)
    • addToken

      protected void addToken(ACE ace)
    • removeToken

      protected void removeToken(DocumentModel doc, ACE deletedAce)