public interface AclDAO
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 |
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 setCheckAclConsistency()
AccessControlList getAccessControlList(Long id)
AccessControlListProperties getAccessControlListProperties(Long id)
List<AclChange> deleteAccessControlList(Long id)
List<AclChange> deleteLocalAccessControlEntries(Long id)
List<AclChange> deleteInheritedAccessControlEntries(Long id)
List<AclChange> deleteAccessControlEntries(String authority)
List<AclChange> deleteAccessControlEntries(Long id, AccessControlEntry pattern)
pattern
- -
non null elements are used for the matchList<AclChange> setAccessControlEntry(Long id, AccessControlEntry ace)
List<AclChange> disableInheritance(Long id, boolean setInheritedOnAcl)
Long createAccessControlList()
AccessControlListProperties getDefaultProperties()
Acl createAccessControlList(AccessControlListProperties properties)
Acl createAccessControlList(AccessControlListProperties properties, List<AccessControlEntry> aces, Long inherited)
createAccessControlList(AccessControlListProperties)
Long getInheritedAccessControlList(Long id)
List<AclChange> mergeInheritedAccessControlList(Long inherited, Long target)
Acl getAclCopy(Long toCopy, Long toInheritFrom, ACLCopyMode mode)
void deleteAclForNode(long aclId)
void fixSharedAcl(Long shared, Long defining)
shared
- Longdefining
- LongLong getMaxChangeSetCommitTime()
Long getMaxChangeSetIdByCommitTime(long maxCommitTime)
maxCommitTime
- longCopyright © 2005–2017 Alfresco Software. All rights reserved.