Interface PermissionsDaoComponent
-
- All Known Implementing Classes:
AbstractPermissionsDaoComponentImpl,ADMPermissionsDaoComponentImpl
public interface PermissionsDaoComponentThe API for accessing persisted Alfresco permissions.- Author:
- andyh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeletePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority, PermissionReference permission)Delete as single permission entry, if a match is found.voiddeletePermission(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String authority, PermissionReference perm)Remove part of a permission mask from a storevoiddeletePermissions(java.lang.String authority)Remove all permissions for the specified authorityvoiddeletePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)Delete the access control list and all access control entries for the node.voiddeletePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority)Delete permission entries for the given node and authorityvoiddeletePermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)Remove all permission masks from a storevoiddeletePermissions(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String authority)Delete entries from a permission mask on a store by authorityAccessControlListPropertiesgetAccessControlListProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef)Get the properties for the access control listbooleangetInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)Return the inheritance behaviour for permissions on a given node.NodePermissionEntrygetPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)Get the permissions that have been set on a given node.NodePermissionEntrygetPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)Get permission masks set on a storevoidsetInheritParentPermissions(org.alfresco.service.cmr.repository.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(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String authority, PermissionReference perm, boolean allow)Set a permission on a node.voidsetPermission(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 againstauthority- 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 listauthority- the specific authority to look forpermission- 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
-
-