Interface PermissionsDaoComponent

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deletePermission​(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority, PermissionReference permission)
      Delete as single permission entry, if a match is found.
      void deletePermission​(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String authority, PermissionReference perm)
      Remove part of a permission mask from a store
      void deletePermissions​(java.lang.String authority)
      Remove all permissions for the specified authority
      void deletePermissions​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
      Delete the access control list and all access control entries for the node.
      void deletePermissions​(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority)
      Delete permission entries for the given node and authority
      void deletePermissions​(org.alfresco.service.cmr.repository.StoreRef storeRef)
      Remove all permission masks from a store
      void deletePermissions​(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String authority)
      Delete entries from a permission mask on a store by authority
      AccessControlListProperties getAccessControlListProperties​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
      Get the properties for the access control list
      boolean getInheritParentPermissions​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
      Return the inheritance behaviour for permissions on a given node.
      NodePermissionEntry getPermissions​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
      Get the permissions that have been set on a given node.
      NodePermissionEntry getPermissions​(org.alfresco.service.cmr.repository.StoreRef storeRef)
      Get permission masks set on a store
      void setInheritParentPermissions​(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean inheritParentPermissions)
      Set the inheritance behaviour for permissions on a given node.
      void setPermission​(NodePermissionEntry nodePermissionEntry)
      Create a persisted node permission entry given a template object from which to copy.
      void setPermission​(PermissionEntry permissionEntry)
      Create a persisted permission entry given and other representation of a permission entry.
      void setPermission​(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority, PermissionReference perm, boolean allow)
      Set a permission on a node.
      void setPermission​(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String authority, PermissionReference permission, boolean allow)
      Set part of a permission mask on a store.
    • Method Detail

      • getPermissions

        NodePermissionEntry getPermissions​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Get the permissions that have been set on a given node.
        Returns:
        the node permission entry
      • deletePermissions

        void deletePermissions​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Delete the access control list and all access control entries for the node.
        Parameters:
        nodeRef - the node for which to delete permission
      • deletePermissions

        void deletePermissions​(java.lang.String authority)
        Remove all permissions for the specified authority
      • deletePermissions

        void deletePermissions​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                               java.lang.String authority)
        Delete permission entries for the given node and authority
        Parameters:
        nodeRef - the node to query against
        authority - the specific authority to query against
      • deletePermission

        void deletePermission​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                              java.lang.String authority,
                              PermissionReference permission)
        Delete as single permission entry, if a match is found. This deleted one permission on the node. It does not affect the persistence of any other permissions.
        Parameters:
        nodeRef - the node with the access control list
        authority - the specific authority to look for
        permission - the permission to look for
      • setPermission

        void setPermission​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                           java.lang.String authority,
                           PermissionReference perm,
                           boolean allow)
        Set a permission on a node. If the node has no permissions set then a default node permission (allowing inheritance) will be created to contain the permission entry.
      • setPermission

        void setPermission​(PermissionEntry permissionEntry)
        Create a persisted permission entry given and other representation of a permission entry.
      • setPermission

        void setPermission​(NodePermissionEntry nodePermissionEntry)
        Create a persisted node permission entry given a template object from which to copy.
      • setInheritParentPermissions

        void setInheritParentPermissions​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                         boolean inheritParentPermissions)
        Set the inheritance behaviour for permissions on a given node.
      • getInheritParentPermissions

        boolean getInheritParentPermissions​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Return the inheritance behaviour for permissions on a given node.
        Returns:
        inheritParentPermissions
      • deletePermissions

        void deletePermissions​(org.alfresco.service.cmr.repository.StoreRef storeRef,
                               java.lang.String authority)
        Delete entries from a permission mask on a store by authority
      • deletePermission

        void deletePermission​(org.alfresco.service.cmr.repository.StoreRef storeRef,
                              java.lang.String authority,
                              PermissionReference perm)
        Remove part of a permission mask from a store
      • deletePermissions

        void deletePermissions​(org.alfresco.service.cmr.repository.StoreRef storeRef)
        Remove all permission masks from a store
      • setPermission

        void setPermission​(org.alfresco.service.cmr.repository.StoreRef storeRef,
                           java.lang.String authority,
                           PermissionReference permission,
                           boolean allow)
        Set part of a permission mask on a store.
      • getPermissions

        NodePermissionEntry getPermissions​(org.alfresco.service.cmr.repository.StoreRef storeRef)
        Get permission masks set on a store
        Returns:
        the node permission entry
      • getAccessControlListProperties

        AccessControlListProperties getAccessControlListProperties​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Get the properties for the access control list
        Returns:
        the properties for the access control list