org.alfresco.repo.domain
Interface AccessControlListDAO

All Known Implementing Classes:
AVMAccessControlListDAO, DMAccessControlListDAO, NodeAccessControlListDAO

public interface AccessControlListDAO

This abstracts the reading and writing of ACLs on nodes from particular node implementations.


Method Summary
 void forceCopy(NodeRef nodeRef)
           
 DbAccessControlList getAccessControlList(NodeRef nodeRef)
          Get the ACL from a node.
 DbAccessControlList getAccessControlList(StoreRef storeRef)
           
 java.lang.Long getIndirectAcl(NodeRef nodeRef)
           
 java.lang.Long getInheritedAcl(NodeRef nodeRef)
           
 java.util.Map patchAcls()
           
 void setAccessControlList(NodeRef nodeRef, DbAccessControlList acl)
          Set the ACL on a node.
 void setAccessControlList(NodeRef nodeRef, java.lang.Long aclId)
          Set the ACL on a node.
 void setAccessControlList(StoreRef storeRef, DbAccessControlList acl)
           
 java.util.List setInheritanceForChildren(NodeRef parent, java.lang.Long inheritFrom)
          Update inheritance
 void updateChangedAcls(NodeRef startingPoint, java.util.List changes)
          Update any associated ACLs
 

Method Detail

getAccessControlList

DbAccessControlList 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,
                          DbAccessControlList acl)
Set the ACL on a node.

Parameters:
nodeRef - The reference to the node.
acl - The ACL.
Throws:
InvalidNodeRefException

setAccessControlList

void setAccessControlList(NodeRef nodeRef,
                          java.lang.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,
                       java.util.List changes)
Update any associated ACLs

Parameters:
startingPoint -
chnages -

setInheritanceForChildren

java.util.List setInheritanceForChildren(NodeRef parent,
                                         java.lang.Long inheritFrom)
Update inheritance

Parameters:
parent -
inheritFrom -
previousId -
Returns:

getIndirectAcl

java.lang.Long getIndirectAcl(NodeRef nodeRef)

getInheritedAcl

java.lang.Long getInheritedAcl(NodeRef nodeRef)

forceCopy

void forceCopy(NodeRef nodeRef)

patchAcls

java.util.Map patchAcls()

getAccessControlList

DbAccessControlList getAccessControlList(StoreRef storeRef)

setAccessControlList

void setAccessControlList(StoreRef storeRef,
                          DbAccessControlList acl)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.