public class DefaultSpacePermissionQueryManager extends Object implements SpacePermissionQueryManager
Constructor and Description |
---|
DefaultSpacePermissionQueryManager(ConfluenceAccessManager confluenceAccessManager,
SpacePermissionAccessMapper spacePermissionAccessMapper,
com.atlassian.crowd.embedded.api.CrowdService crowdService) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Either<AccessDenied,SpacePermissionQueryBuilder> |
createSpacePermissionQueryBuilder(ConfluenceUser user,
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. |
public DefaultSpacePermissionQueryManager(ConfluenceAccessManager confluenceAccessManager, SpacePermissionAccessMapper spacePermissionAccessMapper, com.atlassian.crowd.embedded.api.CrowdService crowdService)
public com.atlassian.fugue.Either<AccessDenied,SpacePermissionQueryBuilder> createSpacePermissionQueryBuilder(@Nullable ConfluenceUser user, @Nonnull String permissionType)
SpacePermissionQueryManager
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
.createSpacePermissionQueryBuilder
in interface SpacePermissionQueryManager
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–2016 Atlassian. All rights reserved.