Interface PermissionsDaoComponent
- All Known Implementing Classes:
AbstractPermissionsDaoComponentImpl,ADMPermissionsDaoComponentImpl
public interface PermissionsDaoComponent
The API for accessing persisted Alfresco permissions.
- Author:
- andyh
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeletePermission(NodeRef nodeRef, String authority, PermissionReference permission) Delete as single permission entry, if a match is found.voiddeletePermission(StoreRef storeRef, String authority, PermissionReference perm) Remove part of a permission mask from a storevoiddeletePermissions(String authority) Remove all permissions for the specified authorityvoiddeletePermissions(NodeRef nodeRef) Delete the access control list and all access control entries for the node.voiddeletePermissions(NodeRef nodeRef, String authority) Delete permission entries for the given node and authorityvoiddeletePermissions(StoreRef storeRef) Remove all permission masks from a storevoiddeletePermissions(StoreRef storeRef, String authority) Delete entries from a permission mask on a store by authoritygetAccessControlListProperties(NodeRef nodeRef) Get the properties for the access control listbooleangetInheritParentPermissions(NodeRef nodeRef) Return the inheritance behaviour for permissions on a given node.getPermissions(NodeRef nodeRef) Get the permissions that have been set on a given node.getPermissions(StoreRef storeRef) Get permission masks set on a storevoidsetInheritParentPermissions(NodeRef nodeRef, boolean inheritParentPermissions) Set the inheritance behaviour for permissions on a given node.voidsetPermission(NodePermissionEntry nodePermissionEntry) Create a persisted node permission entry given a template object from which to copy.voidsetPermission(PermissionEntry permissionEntry) Create a persisted permission entry given and other representation of a permission entry.voidsetPermission(NodeRef nodeRef, String authority, PermissionReference perm, boolean allow) Set a permission on a node.voidsetPermission(StoreRef storeRef, String authority, PermissionReference permission, boolean allow) Set part of a permission mask on a store.
-
Method Details
-
getPermissions
Get the permissions that have been set on a given node.- Returns:
- the node permission entry
-
deletePermissions
Delete the access control list and all access control entries for the node.- Parameters:
nodeRef- the node for which to delete permission
-
deletePermissions
Remove all permissions for the specified authority -
deletePermissions
Delete permission entries for the given node and authority- Parameters:
nodeRef- the node to query againstauthority- the specific authority to query against
-
deletePermission
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 listauthority- the specific authority to look forpermission- the permission to look for
-
setPermission
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
Create a persisted permission entry given and other representation of a permission entry. -
setPermission
Create a persisted node permission entry given a template object from which to copy. -
setInheritParentPermissions
Set the inheritance behaviour for permissions on a given node. -
getInheritParentPermissions
Return the inheritance behaviour for permissions on a given node.- Returns:
- inheritParentPermissions
-
deletePermissions
Delete entries from a permission mask on a store by authority -
deletePermission
Remove part of a permission mask from a store -
deletePermissions
Remove all permission masks from a store -
setPermission
void setPermission(StoreRef storeRef, String authority, PermissionReference permission, boolean allow) Set part of a permission mask on a store. -
getPermissions
Get permission masks set on a store- Returns:
- the node permission entry
-
getAccessControlListProperties
Get the properties for the access control list- Returns:
- the properties for the access control list
-