select
permission
from
org.alfresco.repo.domain.hibernate.DbPermissionImpl as permission
where
permission.typeQName = :permissionTypeQName and
permission.name = :permissionName
select
authority
from
org.alfresco.repo.domain.hibernate.DbAuthorityImpl as authority
where
authority.authority = :authority
select
ace
from
org.alfresco.repo.domain.hibernate.DbAccessControlEntryImpl as ace
where
ace.permission.id = :permissionId and
ace.authority.id = :authorityId and
ace.allowed = :allowed and
ace.applies = :applies and
ace.context is null
select
alias
from
org.alfresco.repo.domain.hibernate.DbAuthorityAliasImpl as alias
join alias.authority as authority
join alias.alias as authorityAlias
where
authority.authority = :authority and
authorityAlias.authority = :alias
select
authorityAlias.authority
from
org.alfresco.repo.domain.hibernate.DbAuthorityAliasImpl as alias
join alias.authority as authority
join alias.alias as authorityAlias
where
authority.authority = :authority
select
aclmem.id, acl.id, ace.id, authority.authority
from
org.alfresco.repo.domain.hibernate.DbAccessControlListMemberImpl as aclmem
join aclmem.accessControlList as acl
join aclmem.accessControlEntry as ace
join ace.authority as authority
where
authority.authority = :authority
select
aclmem
from
org.alfresco.repo.domain.hibernate.DbAccessControlListMemberImpl as aclmem
where
aclmem.accessControlList.id = :id
select
acl.id
from
org.alfresco.repo.domain.hibernate.DbAccessControlListImpl as acl
where acl.inheritsFrom = :id and acl.inherits = true
select
node.id
from
org.alfresco.repo.avm.AVMNodeImpl node
where node.acl.id = :acl
select
node.id
from
org.alfresco.repo.avm.LayeredDirectoryNodeImpl node
where node.primaryIndirection = true and node.indirection = :indirection
select
acl.id
from
org.alfresco.repo.domain.hibernate.DbAccessControlListImpl as acl
where acl.aclId = :aclId and latest = true
:above
]]>