Interface ACLManagement


  • public interface ACLManagement
    AccessControlManagement...
    • Method Detail

      • isACLNodeType

        boolean isACLNodeType​(java.lang.String name)
        Checks if the given node type name is used for ACLs
        Parameters:
        name - the node type name
        Returns:
        true if used for ACLs
      • isAccessControllableMixin

        boolean isAccessControllableMixin​(java.lang.String name)
        Checks if the given node type name is use as access controllable mixin.
        Parameters:
        name - the node type name
        Returns:
        true if the name is the mixin name
      • isACLNode

        boolean isACLNode​(Node node)
                   throws RepositoryException
        Checks if the given node is an ACL node.
        Parameters:
        node - the node
        Returns:
        true if it's an ACL node.
        Throws:
        RepositoryException - if an error occurs
      • ensureAccessControllable

        boolean ensureAccessControllable​(Node node,
                                         java.lang.String policyPrimaryType)
                                  throws RepositoryException
        Checks if the given node is access controllable, i.e. has the respective mixin and adds it if missing.
        Parameters:
        node - the node to check
        policyPrimaryType - Primary node type of policy
        Returns:
        true if was made access controllable
        Throws:
        RepositoryException - if an error occurs