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 Details

    • getPermission

      @Nonnull com.atlassian.bitbucket.permission.Permission getPermission()
      Returns:
      The permission to check
    • getResource

      @Nonnull Optional<Object> 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

      @Nonnull PermissionVote getResult()
      Returns:
      the (intermediate) result based on the voters that have been consulted so far