Constructor and Description |
---|
AclDAOImpl() |
Modifier and Type | Method and Description |
---|---|
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,
List<AccessControlEntry> aces,
Long inherited) |
Acl |
createLayeredAcl(Long indirectedAcl) |
List<AclChange> |
deleteAccessControlEntries(Long id,
AccessControlEntry pattern)
Delete some locally set ACLs according to the pattern
|
List<AclChange> |
deleteAccessControlEntries(String authority)
Delete all ACEs that reference this authority as no longer valid.
|
List<AclChange> |
deleteAccessControlList(Long id)
Delete an ACL
|
void |
deleteAclForNode(long aclId) |
List<AclChange> |
deleteInheritedAccessControlEntries(Long id)
Delete the ACEs in position > 0 (those not set directly on the ACL but inherited) No affect on any other acl
|
List<AclChange> |
deleteLocalAccessControlEntries(Long id)
Delete the ACEs in position 0 (those set directly on the ACL and not inherited) Cleans up existing acls
|
List<AclChange> |
disableInheritance(Long id,
boolean setInheritedOnAcl)
Disable inheritance
|
List<AclChange> |
enableInheritance(Long id,
Long parent)
Enable inheritance
|
void |
fixSharedAcl(Long shared,
Long defining) |
AccessControlList |
getAccessControlList(Long id)
Get an ACL (including entries)
|
AccessControlListProperties |
getAccessControlListProperties(Long id)
Get the ACL properties
|
Acl |
getAcl(Long id)
Get an ACL
|
Acl |
getAclCopy(Long toCopy,
Long toInheritFrom,
ACLCopyMode mode) |
List<Long> |
getADMNodesByAcl(long aclEntityId,
int maxResults) |
AccessControlListProperties |
getDefaultProperties()
Get the default ACL properties
|
Long |
getInheritedAccessControlList(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
|
Long |
getMaxChangeSetCommitTime() |
Long |
getMaxChangeSetIdByCommitTime(long maxCommitTime) |
List<AclChange> |
mergeInheritedAccessControlList(Long inherited,
Long target)
Merge inherited ACEs in to target - the merged ACEs will go in at their current position +1
|
void |
renameAuthority(String before,
String after) |
List<AclChange> |
setAccessControlEntry(Long id,
AccessControlEntry ace)
Add an access control entry
|
void |
setAclCache(org.alfresco.repo.cache.SimpleCache<Serializable,AccessControlList> aclCache)
Set the ACL cache
|
void |
setAclCrudDAO(AclCrudDAO aclCrudDAO) |
void |
setCheckAclConsistency()
Transaction-scope setting to make the DAO guarantee the validity of all caches: some cache data will be reloaded;
some cache data will be considered safe.
|
void |
setNodeDAO(NodeDAO nodeDAO) |
void |
setQnameDAO(QNameDAO qnameDAO) |
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<Serializable,AccessControlList> aclCache)
public 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, List<AccessControlEntry> aces, Long inherited)
createAccessControlList
in interface AclDAO
AclDAO.createAccessControlList(AccessControlListProperties)
public List<AclChange> deleteAccessControlEntries(String authority)
deleteAccessControlEntries
in interface AclDAO
public void deleteAclForNode(long aclId)
deleteAclForNode
in interface AclDAO
public List<AclChange> deleteAccessControlList(Long id)
deleteAccessControlList
in interface AclDAO
public List<AclChange> deleteLocalAccessControlEntries(Long id)
deleteLocalAccessControlEntries
in interface AclDAO
public List<AclChange> deleteInheritedAccessControlEntries(Long id)
deleteInheritedAccessControlEntries
in interface AclDAO
public List<AclChange> deleteAccessControlEntries(Long id, AccessControlEntry pattern)
deleteAccessControlEntries
in interface AclDAO
pattern
- -
non null elements are used for the matchpublic AccessControlListProperties getAccessControlListProperties(Long id)
getAccessControlListProperties
in interface AclDAO
public void setCheckAclConsistency()
AclDAO
setCheckAclConsistency
in interface AclDAO
public AccessControlList getAccessControlList(Long id)
getAccessControlList
in interface AclDAO
public Long getInheritedAccessControlList(Long id)
getInheritedAccessControlList
in interface AclDAO
public List<AclChange> mergeInheritedAccessControlList(Long inherited, Long target)
mergeInheritedAccessControlList
in interface AclDAO
public List<AclChange> setAccessControlEntry(Long id, AccessControlEntry ace)
setAccessControlEntry
in interface AclDAO
public List<AclChange> enableInheritance(Long id, Long parent)
enableInheritance
in interface AclDAO
public List<AclChange> disableInheritance(Long id, boolean setInheritedOnAcl)
disableInheritance
in interface AclDAO
public Acl getAclCopy(Long toCopy, Long toInheritFrom, ACLCopyMode mode)
getAclCopy
in interface AclDAO
public List<Long> getADMNodesByAcl(long aclEntityId, int maxResults)
getADMNodesByAcl
in interface AclDAO
public Acl createLayeredAcl(Long indirectedAcl)
createLayeredAcl
in interface AclDAO
public void renameAuthority(String before, String after)
renameAuthority
in interface AclDAO
public void fixSharedAcl(Long shared, Long defining)
fixSharedAcl
in interface AclDAO
shared
- Longdefining
- Longpublic Long getMaxChangeSetCommitTime()
getMaxChangeSetCommitTime
in interface AclDAO
public Long getMaxChangeSetIdByCommitTime(long maxCommitTime)
getMaxChangeSetIdByCommitTime
in interface AclDAO
maxCommitTime
- longCopyright © 2005–2017 Alfresco Software. All rights reserved.