Class PrivilegeRegistry

    • Method Detail

      • setEventChannel

        public void setEventChannel​(PrivilegeEventChannel eventChannel)
        Set a clustering event channel to inform about changes.
        Parameters:
        eventChannel - event channel
      • calculatePermissions

        public static int calculatePermissions​(PrivilegeBits privs,
                                               PrivilegeBits parentPrivs,
                                               boolean isAllow,
                                               boolean protectsPolicy)
        Build the permissions granted by evaluating the given privileges. Note, that only built-in privileges can be mapped to permissions. Any other privileges will be ignored.
        Parameters:
        privs - The privileges granted on the Node itself (for properties the ACL of the direct ancestor).
        parentPrivs - The privileges granted on the parent of the Node. Not relevant for properties since it only is used to determine permissions on a Node (add_child_nodes, remove_child_nodes).
        isAllow - true if the privileges are granted; false otherwise.
        protectsPolicy - If true the affected item itself defines access control related information.
        Returns:
        the permissions granted evaluating the given privileges.
      • calculatePermissions

        public static int calculatePermissions​(int privs,
                                               int parentPrivs,
                                               boolean isAllow,
                                               boolean protectsPolicy)
        Build the permissions granted by evaluating the given privileges. Note, that only built-in privileges can be mapped to permissions. Any other privileges will be ignored.
        Parameters:
        privs - The privileges granted on the Node itself (for properties the ACL of the direct ancestor).
        parentPrivs - The privileges granted on the parent of the Node. Not relevant for properties since it only is used to determine permissions on a Node (add_child_nodes, remove_child_nodes).
        isAllow - true if the privileges are granted; false otherwise.
        protectsPolicy - If true the affected item itself defines access control related information.
        Returns:
        the permissions granted evaluating the given privileges.
      • removeListener

        public void removeListener​(org.apache.jackrabbit.core.security.authorization.PrivilegeRegistry.Listener listener)
        Removes a privilege registration listener.
        Parameters:
        listener -