Interface PermissionCheck
public interface PermissionCheck
The permission to check and optionally the resource on which to check it.
Note: The resource could be an ID referencing the resource, or the resource itself.
- Since:
- 5.5
-
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.bitbucket.permission.Permission
The resource that the permission check applies to.
-
Method Details
-
getPermission
@Nonnull com.atlassian.bitbucket.permission.Permission getPermission()- Returns:
- The permission to check
-
getResource
The resource that the permission check applies to. This could be empty if the requested permission is global if the check is for permission on any resource.- Returns:
- an optional resource representing the resource that the permission check is applied to
-
getResult
- Returns:
- the (intermediate) result based on the
voters
that have been consulted so far
-