Interface AccessControlListDAO
-
- All Known Implementing Classes:
ADMAccessControlListDAO
public interface AccessControlListDAOThis abstracts the reading and writing of ACLs on nodes from particular node implementations.- Author:
- andyh, janv
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidforceCopy(NodeRef nodeRef)AclgetAccessControlList(NodeRef nodeRef)Get the ACL from a node.AclgetAccessControlList(StoreRef storeRef)LonggetIndirectAcl(NodeRef nodeRef)LonggetInheritedAcl(NodeRef nodeRef)Map<ACLType,Integer>patchAcls()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)List<AclChange>setInheritanceForChildren(NodeRef parent, Long inheritFrom, Long sharedAclToReplace)Update inheritanceList<AclChange>setInheritanceForChildren(NodeRef parent, Long inheritFrom, Long sharedAclToReplace, boolean asyncCall)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 Detail
-
getAccessControlList
Acl getAccessControlList(NodeRef nodeRef)
Get the ACL from a node.- Parameters:
nodeRef- The reference to the node.- Returns:
- The ACL.
- Throws:
InvalidNodeRefException
-
setAccessControlList
void setAccessControlList(NodeRef nodeRef, Acl acl)
Set the ACL on a node.- Parameters:
nodeRef- The reference to the node.acl- The ACL.- Throws:
InvalidNodeRefException
-
setAccessControlList
void setAccessControlList(NodeRef nodeRef, Long aclId)
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
void updateChangedAcls(NodeRef startingPoint, List<AclChange> changes)
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.
-
forceCopy
void forceCopy(NodeRef nodeRef)
-
updateInheritance
void updateInheritance(Long childNodeId, Long oldParentAclId, Long newParentAclId)
-
setFixedAcls
void setFixedAcls(Long nodeId, Long inheritFrom, Long mergeFrom, Long sharedAclToReplace, List<AclChange> changes, boolean set)
-
removePendingAclAspect
void removePendingAclAspect(Long nodeId)
-
-