public class DefaultSpacePermissionAccessMapper extends Object implements SpacePermissionAccessMapper
| Constructor and Description | 
|---|
DefaultSpacePermissionAccessMapper()  | 
| Modifier and Type | Method and Description | 
|---|---|
com.atlassian.fugue.Either<AccessDenied,Set<SpacePermissionSubjectType>> | 
getPermissionCheckSubjectTypes(@NonNull AccessStatus accessStatus,
                              @NonNull String permissionType)
 Determines the permission subject types that apply for a given user's  
AccessStatus and the space
 permission type being checked. | 
public com.atlassian.fugue.Either<AccessDenied,Set<SpacePermissionSubjectType>> getPermissionCheckSubjectTypes(@NonNull AccessStatus accessStatus, @NonNull String permissionType)
SpacePermissionAccessMapper
 Determines the permission subject types that apply for a given user's AccessStatus and the space
 permission type being checked.
 
Examples:
SpacePermission.ADMINISTER_SPACE_PERMISSION, so will be denied
 A result of AccessDenied will be returned if either: the user (may be anonymous) does not have access
 to Confluence OR the given permission type is invalid for the user's AccessStatus.
 
getPermissionCheckSubjectTypes in interface SpacePermissionAccessMapperaccessStatus - access status for the userpermissionType - the type of SpacePermission being checkedEither.Right containing a NON-EMPTY set of permission subject types that apply for the
 given access status and permission type, or Either.Left if there are no permission subject types that applyCopyright © 2003–2022 Atlassian. All rights reserved.