Interface AccessControlListDAO
- All Known Implementing Classes:
ADMAccessControlListDAO
public interface AccessControlListDAO
This abstracts the reading and writing of ACLs on nodes from particular node implementations.
- Author:
- andyh, janv
-
Method Summary
Modifier and TypeMethodDescriptionvoidgetAccessControlList(NodeRef nodeRef) Get the ACL from a node.getAccessControlList(StoreRef storeRef) getIndirectAcl(NodeRef nodeRef) getInheritedAcl(NodeRef nodeRef) voidremovePendingAclAspect(Long nodeId) voidsetAccessControlList(NodeRef nodeRef, Long aclId) Set the ACL on a node.voidsetAccessControlList(NodeRef nodeRef, Acl acl) Set the ACL on a node.voidsetAccessControlList(StoreRef storeRef, Acl acl) voidsetFixedAcls(Long nodeId, Long inheritFrom, Long mergeFrom, Long sharedAclToReplace, List<AclChange> changes, boolean set) setInheritanceForChildren(NodeRef parent, Long inheritFrom, Long sharedAclToReplace) Update inheritancesetInheritanceForChildren(NodeRef parent, Long inheritFrom, Long sharedAclToReplace, boolean asyncCall) Set the inheritance on a given node and it's children.setInheritanceForChildren(NodeRef parent, Long inheritFrom, Long sharedAclToReplace, boolean asyncCall, boolean forceSharedACL) Set the inheritance on a given node and it's children.voidupdateChangedAcls(NodeRef startingPoint, List<AclChange> changes) Update any associated ACLsvoidupdateInheritance(Long childNodeId, Long oldParentAclId, Long newParentAclId)
-
Method Details
-
getAccessControlList
Get the ACL from a node.- Parameters:
nodeRef- The reference to the node.- Returns:
- The ACL.
- Throws:
InvalidNodeRefException
-
setAccessControlList
Set the ACL on a node.- Parameters:
nodeRef- The reference to the node.acl- The ACL.- Throws:
InvalidNodeRefException
-
setAccessControlList
Set the ACL on a node.- Parameters:
nodeRef- The reference to the node.aclId- The ID of the ACL entity.- Throws:
InvalidNodeRefException- if the noderef is invalid
-
updateChangedAcls
Update any associated ACLs -
setInheritanceForChildren
List<AclChange> setInheritanceForChildren(NodeRef parent, Long inheritFrom, Long sharedAclToReplace) Update inheritance -
setInheritanceForChildren
List<AclChange> setInheritanceForChildren(NodeRef parent, Long inheritFrom, Long sharedAclToReplace, boolean asyncCall) Set the inheritance on a given node and it's children. If the operation takes too long and asyncCall parameter set accordingly, fixed ACLs method will be synchronously called. -
setInheritanceForChildren
List<AclChange> setInheritanceForChildren(NodeRef parent, Long inheritFrom, Long sharedAclToReplace, boolean asyncCall, boolean forceSharedACL) Set the inheritance on a given node and it's children. If an unexpected ACL occurs in a child, it can be overriden by setting forceSharedACL -
getIndirectAcl
-
getInheritedAcl
-
forceCopy
-
patchAcls
-
getAccessControlList
-
setAccessControlList
-
updateInheritance
-
setFixedAcls
-
removePendingAclAspect
-