Class DefaultSpacePermissionQueryManager
- java.lang.Object
-
- com.atlassian.confluence.impl.security.query.DefaultSpacePermissionQueryManager
-
- All Implemented Interfaces:
SpacePermissionQueryManager
public class DefaultSpacePermissionQueryManager extends Object implements SpacePermissionQueryManager
-
-
Constructor Summary
Constructors Constructor Description DefaultSpacePermissionQueryManager(ConfluenceAccessManager confluenceAccessManager, SpacePermissionAccessMapper spacePermissionAccessMapper, com.atlassian.crowd.embedded.api.CrowdService crowdService, SchemaInformationService schemaInformationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.fugue.Either<AccessDenied,SpacePermissionQueryBuilder>
createSpacePermissionQueryBuilder(@Nullable ConfluenceUser user, @NonNull String permissionType)
Constructs aSpacePermissionQueryBuilder
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.
-
-
-
Constructor Detail
-
DefaultSpacePermissionQueryManager
public DefaultSpacePermissionQueryManager(ConfluenceAccessManager confluenceAccessManager, SpacePermissionAccessMapper spacePermissionAccessMapper, com.atlassian.crowd.embedded.api.CrowdService crowdService, SchemaInformationService schemaInformationService)
-
-
Method Detail
-
createSpacePermissionQueryBuilder
public com.atlassian.fugue.Either<AccessDenied,SpacePermissionQueryBuilder> createSpacePermissionQueryBuilder(@Nullable ConfluenceUser user, @NonNull String permissionType)
Description copied from interface:SpacePermissionQueryManager
Constructs aSpacePermissionQueryBuilder
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. SeeSpacePermissionAccessMapper
andSpacePermissionSubjectType
.- Specified by:
createSpacePermissionQueryBuilder
in interfaceSpacePermissionQueryManager
- Parameters:
user
- the user being checked for permissions, or null for anonymouspermissionType
- theSpacePermission
permission type- Returns:
- a
SpacePermissionQueryBuilder
for the user / anonymous ORAccessDenied
if the user does not have access to Confluence, or the permissionType is not valid for the user (depends on theirAccessStatus
).
-
-