Interface PermissionsClient

All Known Implementing Classes:
NativePermissionsClient

public interface PermissionsClient
Client that can retrieve permissions using Jira's /rest/api/2/mypermissions resource
  • Method Details

    • getMyPermissions

      Optional<PermissionSet> getMyPermissions(Set<String> permissionKeys)
      Retrieves the current user's global permissions.
      Returns:
      the current user's global permissions.
    • getMyProjectPermissions

      Optional<PermissionSet> getMyProjectPermissions(Long projectId, Set<String> permissionKeys)
      Retrieves the current user's permissions for a particular project
      Parameters:
      projectId - the project to check permissions for
      Returns:
      the current user's permissions for a particular project
    • getMyIssuePermissions

      Optional<PermissionSet> getMyIssuePermissions(Long issueId, Set<String> permissionKeys)
      Retrieves the current user's permissions for a particular issue
      Parameters:
      issueId - the issue to check permissions for
      Returns:
      the current user's permissions for a particular issue
    • getBulkPermissions

      Optional<BulkPermissionGrants> getBulkPermissions(BulkPermissionRequest bulkPermissionRequest)
      Performs a bulk permission check and returns all granted permissions.
      Parameters:
      bulkPermissionRequest - the permissions to check
      Returns:
      Granted permissions