|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.domain.hibernate.AVMAccessControlListDAO
public class AVMAccessControlListDAO
The AVM implementation for getting and setting ACLs.
| Nested Class Summary | |
|---|---|
static class |
AVMAccessControlListDAO.Counter
Simple counter |
static class |
AVMAccessControlListDAO.CounterSet
Counter for each type of ACL change |
| Constructor Summary | |
|---|---|
AVMAccessControlListDAO()
Default constructory. |
|
| 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 component |
void |
setAvmRepository(AVMRepository repository)
Set the AVM repository |
void |
setAvmService(AVMService avmService)
Set the AVM service |
void |
setAvmSnapShotTriggeredIndexingMethodInterceptor(AVMSnapShotTriggeredIndexingMethodInterceptor avmSnapShotTriggeredIndexingMethodInterceptor)
|
void |
setFixedAcls(AVMNodeDescriptor descriptor,
java.lang.Long inheritFrom,
java.lang.Long mergeFrom,
java.util.List changes,
org.alfresco.repo.domain.hibernate.AVMAccessControlListDAO.SetMode mode,
boolean set,
java.util.Map indirections)
Support to set a shared ACL on a node and all of its children. |
void |
setHibernateSessionHelper(HibernateSessionHelper hibernateSessionHelper)
|
java.util.List |
setInheritanceForChildren(NodeRef parent,
java.lang.Long inheritFrom)
Update inheritance |
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 AVMAccessControlListDAO()
| Method Detail |
|---|
public void setAvmRepository(AVMRepository repository)
repository - public void setAvmService(AVMService avmService)
avmService - public void setAclDaoComponent(AclDaoComponent aclDaoComponent)
aclDaoComponent - public void setAvmSnapShotTriggeredIndexingMethodInterceptor(AVMSnapShotTriggeredIndexingMethodInterceptor avmSnapShotTriggeredIndexingMethodInterceptor)
avmSnapShotTriggeredIndexingMethodInterceptor - public void setHibernateSessionHelper(HibernateSessionHelper hibernateSessionHelper)
hibernateSessionHelper - public java.lang.Long getIndirectAcl(NodeRef nodeRef)
getIndirectAcl in interface AccessControlListDAOpublic java.lang.Long getInheritedAcl(NodeRef nodeRef)
getInheritedAcl in interface AccessControlListDAOpublic DbAccessControlList getAccessControlList(NodeRef nodeRef)
getAccessControlList in interface AccessControlListDAOnodeRef - The reference to the node.
InvalidNodeRefException
public void setAccessControlList(NodeRef nodeRef,
DbAccessControlList acl)
setAccessControlList in interface AccessControlListDAOnodeRef - The reference to the node.acl - The ACL.
InvalidNodeRefException
public void setAccessControlList(NodeRef nodeRef,
java.lang.Long aclId)
AccessControlListDAO
setAccessControlList in interface AccessControlListDAOnodeRef - The reference to the node.aclId - The ID of the ACL entity.
public void updateChangedAcls(NodeRef startingPoint,
java.util.List changes)
AccessControlListDAO
updateChangedAcls in interface AccessControlListDAOpublic void forceCopy(NodeRef nodeRef)
forceCopy in interface AccessControlListDAO
public java.util.List setInheritanceForChildren(NodeRef parent,
java.lang.Long inheritFrom)
AccessControlListDAO
setInheritanceForChildren in interface AccessControlListDAO
public void setFixedAcls(AVMNodeDescriptor descriptor,
java.lang.Long inheritFrom,
java.lang.Long mergeFrom,
java.util.List changes,
org.alfresco.repo.domain.hibernate.AVMAccessControlListDAO.SetMode mode,
boolean set,
java.util.Map indirections)
descriptor - the descriptorinheritFrom - the parent node's ACLmergeFrom - the shared ACL, if already known. If null, will be retrieved / created lazilychanges - the list in which to record changesmode - the modeset - set the shared ACL on the parent ?indirections - the indirectionspublic java.util.Map patchAcls()
patchAcls in interface AccessControlListDAOpublic DbAccessControlList getAccessControlList(StoreRef storeRef)
getAccessControlList in interface AccessControlListDAO
public void setAccessControlList(StoreRef storeRef,
DbAccessControlList acl)
setAccessControlList in interface AccessControlListDAO
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||