Interface AclCrudDAO
-
- All Known Implementing Classes:
AbstractAclCrudDAOImpl,AclCrudDAOImpl
public interface AclCrudDAOThis provides basic services such as caching, but defers to the underlying implementation for CRUD operations. alf_access_control_list alf_acl_member alf_acl_change_set alf_access_control_entry alf_ace_context alf_permission alf_authority alf_authority_alias- Since:
- 3.4
- Author:
- janv
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAclMembersToAcl(long aclId, List<Long> aceIds, int depth)voidaddAclMembersToAcl(long aclId, List<org.alfresco.util.Pair<Long,Integer>> aceIdsWithDepths)AcecreateAce(Permission permission, Authority authority, ACEType type, org.alfresco.service.cmr.security.AccessStatus accessStatus)AclcreateAcl(AclEntity entity)LongcreateAclChangeSet()PermissioncreatePermission(PermissionReference permissionReference)intdeleteAces(List<Long> aceEntityIds)voiddeleteAcl(long aclEntityId)voiddeleteAclChangeSet(Long aclChangeSetEntityId)intdeleteAclMembers(List<Long> aclMemberIds)intdeleteAclMembersByAcl(long aclEntityId)voiddeleteAuthority(long authorityEntityId)voiddeletePermission(long permissionEntityId)AcegetAce(long aceEntityId)AcegetAce(Permission permission, Authority authority, ACEType type, org.alfresco.service.cmr.security.AccessStatus accessStatus)List<Map<String,Object>>getAcesAndAuthoritiesByAcl(long aclEntityId)List<Ace>getAcesByAuthority(long authorityEntityId)AclgetAcl(Long aclEntityId)AclChangeSetgetAclChangeSet(Long aclChangeSetEntityId)AclUpdateEntitygetAclForUpdate(long aclEntityId)List<AclMember>getAclMembersByAcl(long aclEntityId)List<AclMemberEntity>getAclMembersByAclForUpdate(long aclEntityId)List<AclMember>getAclMembersByAuthority(String authorityName)List<Long>getAclsThatInheritFromAcl(long aclEntityId)List<Long>getADMNodesByAcl(long aclEntityId, int maxResults)AuthoritygetAuthority(long authorityEntityId)AuthoritygetAuthority(String authorityName)LonggetLatestAclByGuid(String aclGuid)LonggetMaxChangeSetCommitTime()LonggetMaxChangeSetIdByCommitTime(long maxCommitTime)AcegetOrCreateAce(Permission permission, Authority authority, ACEType type, org.alfresco.service.cmr.security.AccessStatus accessStatus)AuthoritygetOrCreateAuthority(String authorityName)PermissiongetOrCreatePermission(PermissionReference permissionReference)PermissiongetPermission(long permissionEntityId)PermissiongetPermission(PermissionReference permissionReference)voidrenameAuthority(String authorityNameBefore, String authorityAfter)voidrenamePermission(org.alfresco.service.namespace.QName oldTypeQName, String oldName, org.alfresco.service.namespace.QName newTypeQName, String newName)voidsetCheckAclConsistency()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.voidupdateAcl(AclUpdateEntity entity)voidupdateAclChangeSet(Long aclChangeSetEntityId, long commitTimeMs)voidupdateAclMember(AclMemberEntity entity)
-
-
-
Method Detail
-
setCheckAclConsistency
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.
-
getAclForUpdate
AclUpdateEntity getAclForUpdate(long aclEntityId)
-
updateAcl
void updateAcl(AclUpdateEntity entity)
-
deleteAcl
void deleteAcl(long aclEntityId)
-
createAce
Ace createAce(Permission permission, Authority authority, ACEType type, org.alfresco.service.cmr.security.AccessStatus accessStatus)
-
getAce
Ace getAce(Permission permission, Authority authority, ACEType type, org.alfresco.service.cmr.security.AccessStatus accessStatus)
-
getAce
Ace getAce(long aceEntityId)
-
getOrCreateAce
Ace getOrCreateAce(Permission permission, Authority authority, ACEType type, org.alfresco.service.cmr.security.AccessStatus accessStatus)
-
createAclChangeSet
Long createAclChangeSet()
-
updateAclChangeSet
void updateAclChangeSet(Long aclChangeSetEntityId, long commitTimeMs)
-
getAclChangeSet
AclChangeSet getAclChangeSet(Long aclChangeSetEntityId)
-
deleteAclChangeSet
void deleteAclChangeSet(Long aclChangeSetEntityId)
-
addAclMembersToAcl
void addAclMembersToAcl(long aclId, List<org.alfresco.util.Pair<Long,Integer>> aceIdsWithDepths)
-
getAclMembersByAclForUpdate
List<AclMemberEntity> getAclMembersByAclForUpdate(long aclEntityId)
-
updateAclMember
void updateAclMember(AclMemberEntity entity)
-
deleteAclMembersByAcl
int deleteAclMembersByAcl(long aclEntityId)
-
createPermission
Permission createPermission(PermissionReference permissionReference)
-
getPermission
Permission getPermission(long permissionEntityId)
-
getPermission
Permission getPermission(PermissionReference permissionReference)
-
getOrCreatePermission
Permission getOrCreatePermission(PermissionReference permissionReference)
-
renamePermission
void renamePermission(org.alfresco.service.namespace.QName oldTypeQName, String oldName, org.alfresco.service.namespace.QName newTypeQName, String newName)
-
deletePermission
void deletePermission(long permissionEntityId)
-
getAuthority
Authority getAuthority(long authorityEntityId)
-
deleteAuthority
void deleteAuthority(long authorityEntityId)
-
getMaxChangeSetCommitTime
Long getMaxChangeSetCommitTime()
- Returns:
- Long
-
getMaxChangeSetIdByCommitTime
Long getMaxChangeSetIdByCommitTime(long maxCommitTime)
- Parameters:
maxCommitTime- long- Returns:
- Long
-
-