|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.domain.hibernate.DMAccessControlListDAO
public class DMAccessControlListDAO
DAO layer for the improved ACL implemtentation. This layer is responsible for setting ACLs and any cascade behaviour required. It also implements the migration from the old implementation to the new.
Constructor Summary | |
---|---|
DMAccessControlListDAO()
|
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)
|
void |
setAclDaoComponent(AclDaoComponent aclDaoComponent)
Set the ACL DAO components |
void |
setFixedAcls(NodeRef nodeRef,
java.lang.Long inheritFrom,
java.lang.Long mergeFrom,
java.util.List changes,
boolean set)
Support to set a shared ACL on a node and all of its children |
void |
setHibernateSessionHelper(HibernateSessionHelper hibernateSessionHelper)
Set the hibernate session helper for session size management |
java.util.List |
setInheritanceForChildren(NodeRef parent,
java.lang.Long inheritFrom)
Update inheritance |
void |
setNodeDaoService(NodeDaoService nodeDaoService)
Set the node dao service |
void |
setNodeService(NodeService nodeService)
Set the node service. |
void |
updateChangedAcls(NodeRef startingPoint,
java.util.List changes)
Update any associated ACLs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DMAccessControlListDAO()
Method Detail |
---|
public void setNodeDaoService(NodeDaoService nodeDaoService)
nodeDaoService
- public void setAclDaoComponent(AclDaoComponent aclDaoComponent)
aclDaoComponent
- public void setHibernateSessionHelper(HibernateSessionHelper hibernateSessionHelper)
hibernateSessionHelper
- public void setNodeService(NodeService nodeService)
nodeService
- public void forceCopy(NodeRef nodeRef)
forceCopy
in interface AccessControlListDAO
public DbAccessControlList getAccessControlList(NodeRef nodeRef)
AccessControlListDAO
getAccessControlList
in interface AccessControlListDAO
nodeRef
- The reference to the node.
public DbAccessControlList getAccessControlList(StoreRef storeRef)
getAccessControlList
in interface AccessControlListDAO
public java.lang.Long getIndirectAcl(NodeRef nodeRef)
getIndirectAcl
in interface AccessControlListDAO
public java.lang.Long getInheritedAcl(NodeRef nodeRef)
getInheritedAcl
in interface AccessControlListDAO
public java.util.Map patchAcls()
patchAcls
in interface AccessControlListDAO
public void setAccessControlList(NodeRef nodeRef, java.lang.Long aclId)
AccessControlListDAO
setAccessControlList
in interface AccessControlListDAO
nodeRef
- The reference to the node.aclId
- The ID of the ACL entity.public void setAccessControlList(NodeRef nodeRef, DbAccessControlList acl)
AccessControlListDAO
setAccessControlList
in interface AccessControlListDAO
nodeRef
- The reference to the node.acl
- The ACL.public void setAccessControlList(StoreRef storeRef, DbAccessControlList acl)
setAccessControlList
in interface AccessControlListDAO
public java.util.List setInheritanceForChildren(NodeRef parent, java.lang.Long inheritFrom)
AccessControlListDAO
setInheritanceForChildren
in interface AccessControlListDAO
public void updateChangedAcls(NodeRef startingPoint, java.util.List changes)
AccessControlListDAO
updateChangedAcls
in interface AccessControlListDAO
public void setFixedAcls(NodeRef nodeRef, java.lang.Long inheritFrom, java.lang.Long mergeFrom, java.util.List changes, boolean set)
nodeRef
- the parent nodeinheritFrom
- the parent node's ACLmergeFrom
- the shared ACL, if already known. If null
, will be retrieved / created lazilychanges
- the list in which to record changesset
- set the shared ACL on the parent ?
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |