|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.domain.permissions.AclDAOImpl
public class AclDAOImpl
DAO to manage ACL persistence Note: based on earlier AclDaoComponentImpl
Constructor Summary | |
---|---|
AclDAOImpl()
|
Method Summary | |
---|---|
java.lang.Long |
createAccessControlList()
Create a new ACL with default properties |
Acl |
createAccessControlList(AccessControlListProperties properties)
Create a new ACL with the given properties. |
Acl |
createAccessControlList(AccessControlListProperties properties,
java.util.List aces,
java.lang.Long inherited)
|
Acl |
createLayeredAcl(java.lang.Long indirectedAcl)
|
java.util.List |
deleteAccessControlEntries(java.lang.Long id,
AccessControlEntry pattern)
Delete some locally set ACLs according to the pattern |
java.util.List |
deleteAccessControlEntries(java.lang.String authority)
Delete all ACEs that reference this authority as no longer valid. |
java.util.List |
deleteAccessControlList(java.lang.Long id)
Delete an ACL |
void |
deleteAclForNode(long aclId,
boolean isAVMNode)
|
java.util.List |
deleteInheritedAccessControlEntries(java.lang.Long id)
Delete the ACEs in position > 0 (those not set directly on the ACL but inherited) No affect on any other acl |
java.util.List |
deleteLocalAccessControlEntries(java.lang.Long id)
Delete the ACEs in position 0 (those set directly on the ACL and not inherited) Cleans up existing acls |
java.util.List |
disableInheritance(java.lang.Long id,
boolean setInheritedOnAcl)
Disable inheritance |
java.util.List |
enableInheritance(java.lang.Long id,
java.lang.Long parent)
Enable inheritance |
void |
fixSharedAcl(java.lang.Long shared,
java.lang.Long defining)
|
AccessControlList |
getAccessControlList(java.lang.Long id)
Get an ACL (including entries) |
AccessControlListProperties |
getAccessControlListProperties(java.lang.Long id)
Get the ACL properties |
Acl |
getAcl(java.lang.Long id)
Get an ACL |
Acl |
getAclCopy(java.lang.Long toCopy,
java.lang.Long toInheritFrom,
ACLCopyMode mode)
|
java.util.List |
getADMNodesByAcl(long aclEntityId,
int maxResults)
|
java.util.List |
getAVMNodesByAcl(long aclEntityId,
int maxResults)
|
AccessControlListProperties |
getDefaultProperties()
Get the default ACL properties |
java.lang.Long |
getInheritedAccessControlList(java.lang.Long id)
Get the id of the ACL inherited from the one given May return null if there is nothing to inherit -> OLD world where nodes have their own ACL and we walk the parent chain |
java.util.List |
mergeInheritedAccessControlList(java.lang.Long inherited,
java.lang.Long target)
Merge inherited ACEs in to target - the merged ACEs will go in at their current position +1 |
void |
renameAuthority(java.lang.String before,
java.lang.String after)
|
java.util.List |
setAccessControlEntry(java.lang.Long id,
AccessControlEntry ace)
Add an access control entry |
void |
setAclCache(org.alfresco.repo.cache.SimpleCache aclCache)
Set the ACL cache |
void |
setAclCrudDAO(AclCrudDAO aclCrudDAO)
|
void |
setNodeDAO(NodeDAO nodeDAO)
|
void |
setQnameDAO(QNameDAO qnameDAO)
|
void |
setReadersCache(org.alfresco.repo.cache.SimpleCache readersCache)
|
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AclDAOImpl()
Method Detail |
---|
public void setQnameDAO(QNameDAO qnameDAO)
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setAclCrudDAO(AclCrudDAO aclCrudDAO)
public void setNodeDAO(NodeDAO nodeDAO)
public void setAclCache(org.alfresco.repo.cache.SimpleCache aclCache)
aclCache
- public void setReadersCache(org.alfresco.repo.cache.SimpleCache readersCache)
readersCache
- the readersCache to setpublic java.lang.Long createAccessControlList()
createAccessControlList
in interface AclDAO
AclDAO.getDefaultProperties()
,
AclDAO.createAccessControlList(AccessControlListProperties)
public AccessControlListProperties getDefaultProperties()
getDefaultProperties
in interface AclDAO
public Acl createAccessControlList(AccessControlListProperties properties)
createAccessControlList
in interface AclDAO
public Acl createAccessControlList(AccessControlListProperties properties, java.util.List aces, java.lang.Long inherited)
createAccessControlList
in interface AclDAO
AclDAO.createAccessControlList(AccessControlListProperties)
public java.util.List deleteAccessControlEntries(java.lang.String authority)
deleteAccessControlEntries
in interface AclDAO
public void deleteAclForNode(long aclId, boolean isAVMNode)
deleteAclForNode
in interface AclDAO
public java.util.List deleteAccessControlList(java.lang.Long id)
deleteAccessControlList
in interface AclDAO
public java.util.List deleteLocalAccessControlEntries(java.lang.Long id)
deleteLocalAccessControlEntries
in interface AclDAO
public java.util.List deleteInheritedAccessControlEntries(java.lang.Long id)
deleteInheritedAccessControlEntries
in interface AclDAO
public java.util.List deleteAccessControlEntries(java.lang.Long id, AccessControlEntry pattern)
deleteAccessControlEntries
in interface AclDAO
pattern
- -
non null elements are used for the match
public Acl getAcl(java.lang.Long id)
getAcl
in interface AclDAO
public AccessControlListProperties getAccessControlListProperties(java.lang.Long id)
getAccessControlListProperties
in interface AclDAO
public AccessControlList getAccessControlList(java.lang.Long id)
getAccessControlList
in interface AclDAO
public java.lang.Long getInheritedAccessControlList(java.lang.Long id)
getInheritedAccessControlList
in interface AclDAO
public java.util.List mergeInheritedAccessControlList(java.lang.Long inherited, java.lang.Long target)
mergeInheritedAccessControlList
in interface AclDAO
public java.util.List setAccessControlEntry(java.lang.Long id, AccessControlEntry ace)
setAccessControlEntry
in interface AclDAO
public java.util.List enableInheritance(java.lang.Long id, java.lang.Long parent)
enableInheritance
in interface AclDAO
public java.util.List disableInheritance(java.lang.Long id, boolean setInheritedOnAcl)
disableInheritance
in interface AclDAO
public Acl getAclCopy(java.lang.Long toCopy, java.lang.Long toInheritFrom, ACLCopyMode mode)
getAclCopy
in interface AclDAO
public java.util.List getAVMNodesByAcl(long aclEntityId, int maxResults)
getAVMNodesByAcl
in interface AclDAO
public java.util.List getADMNodesByAcl(long aclEntityId, int maxResults)
getADMNodesByAcl
in interface AclDAO
public Acl createLayeredAcl(java.lang.Long indirectedAcl)
createLayeredAcl
in interface AclDAO
public void renameAuthority(java.lang.String before, java.lang.String after)
renameAuthority
in interface AclDAO
public void fixSharedAcl(java.lang.Long shared, java.lang.Long defining)
fixSharedAcl
in interface AclDAO
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |