@Internal
public interface SpacePermissionQueryManager
SpacePermission
s, without interpreting the logic of the spacepermissions
table in multiple DAO's.Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Either<AccessDenied,SpacePermissionQueryBuilder> |
createSpacePermissionQueryBuilder(@Nullable ConfluenceUser user,
@NonNull String permissionType)
Constructs a
SpacePermissionQueryBuilder for use by DAO's to construct database queries, without having
to reach out to the manager level to determine which categories of permission apply for the current user. |
com.atlassian.fugue.Either<AccessDenied,SpacePermissionQueryBuilder> createSpacePermissionQueryBuilder(@Nullable ConfluenceUser user, @NonNull String permissionType)
SpacePermissionQueryBuilder
for use by DAO's to construct database queries, without having
to reach out to the manager level to determine which categories of permission apply for the current user.
See SpacePermissionAccessMapper
and SpacePermissionSubjectType
.user
- the user being checked for permissions, or null for anonymouspermissionType
- the SpacePermission
permission typeSpacePermissionQueryBuilder
for the user / anonymous OR AccessDenied
if the user does
not have access to Confluence, or the permissionType is not valid for the user (depends on their
AccessStatus
).Copyright © 2003–2021 Atlassian. All rights reserved.