| Constructor and Description |
|---|
AclDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.lang.Long |
getMaxChangeSetCommitTime() |
java.lang.Long |
getMaxChangeSetIdByCommitTime(long maxCommitTime) |
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 |
setReadersDeniedCache(org.alfresco.repo.cache.SimpleCache readersDeniedCache) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
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 void setReadersDeniedCache(org.alfresco.repo.cache.SimpleCache readersDeniedCache)
readersDeniedCache - the readersDeniedCache to setpublic java.lang.Long createAccessControlList()
createAccessControlList in interface AclDAOAclDAO.getDefaultProperties(),
AclDAO.createAccessControlList(AccessControlListProperties)public AccessControlListProperties getDefaultProperties()
getDefaultProperties in interface AclDAOpublic Acl createAccessControlList(AccessControlListProperties properties)
createAccessControlList in interface AclDAOpublic Acl createAccessControlList(AccessControlListProperties properties, java.util.List aces, java.lang.Long inherited)
createAccessControlList in interface AclDAOAclDAO.createAccessControlList(AccessControlListProperties)public java.util.List deleteAccessControlEntries(java.lang.String authority)
deleteAccessControlEntries in interface AclDAOpublic void deleteAclForNode(long aclId,
boolean isAVMNode)
deleteAclForNode in interface AclDAOpublic java.util.List deleteAccessControlList(java.lang.Long id)
deleteAccessControlList in interface AclDAOpublic java.util.List deleteLocalAccessControlEntries(java.lang.Long id)
deleteLocalAccessControlEntries in interface AclDAOpublic java.util.List deleteInheritedAccessControlEntries(java.lang.Long id)
deleteInheritedAccessControlEntries in interface AclDAOpublic java.util.List deleteAccessControlEntries(java.lang.Long id,
AccessControlEntry pattern)
deleteAccessControlEntries in interface AclDAOpattern - -
non null elements are used for the matchpublic AccessControlListProperties getAccessControlListProperties(java.lang.Long id)
getAccessControlListProperties in interface AclDAOpublic AccessControlList getAccessControlList(java.lang.Long id)
getAccessControlList in interface AclDAOpublic java.lang.Long getInheritedAccessControlList(java.lang.Long id)
getInheritedAccessControlList in interface AclDAOpublic java.util.List mergeInheritedAccessControlList(java.lang.Long inherited,
java.lang.Long target)
mergeInheritedAccessControlList in interface AclDAOpublic java.util.List setAccessControlEntry(java.lang.Long id,
AccessControlEntry ace)
setAccessControlEntry in interface AclDAOpublic java.util.List enableInheritance(java.lang.Long id,
java.lang.Long parent)
enableInheritance in interface AclDAOpublic java.util.List disableInheritance(java.lang.Long id,
boolean setInheritedOnAcl)
disableInheritance in interface AclDAOpublic Acl getAclCopy(java.lang.Long toCopy, java.lang.Long toInheritFrom, ACLCopyMode mode)
getAclCopy in interface AclDAOpublic java.util.List getAVMNodesByAcl(long aclEntityId,
int maxResults)
getAVMNodesByAcl in interface AclDAOpublic java.util.List getADMNodesByAcl(long aclEntityId,
int maxResults)
getADMNodesByAcl in interface AclDAOpublic Acl createLayeredAcl(java.lang.Long indirectedAcl)
createLayeredAcl in interface AclDAOpublic void renameAuthority(java.lang.String before,
java.lang.String after)
renameAuthority in interface AclDAOpublic void fixSharedAcl(java.lang.Long shared,
java.lang.Long defining)
fixSharedAcl in interface AclDAOpublic java.lang.Long getMaxChangeSetCommitTime()
getMaxChangeSetCommitTime in interface AclDAOpublic java.lang.Long getMaxChangeSetIdByCommitTime(long maxCommitTime)
getMaxChangeSetIdByCommitTime in interface AclDAOCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.