Package com.codebarrel.jira.permissions
Interface PermissionsClient
- All Known Implementing Classes:
NativePermissionsClient
public interface PermissionsClient
Client that can retrieve permissions using Jira's /rest/api/2/mypermissions resource
-
Method Summary
Modifier and TypeMethodDescriptiongetBulkPermissions(BulkPermissionRequest bulkPermissionRequest) Performs a bulk permission check and returns all granted permissions.getMyIssuePermissions(Long issueId, Set<String> permissionKeys) Retrieves the current user's permissions for a particular issuegetMyPermissions(Set<String> permissionKeys) Retrieves the current user's global permissions.getMyProjectPermissions(Long projectId, Set<String> permissionKeys) Retrieves the current user's permissions for a particular project
-
Method Details
-
getMyPermissions
Retrieves the current user's global permissions.- Returns:
- the current user's global permissions.
-
getMyProjectPermissions
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
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
Performs a bulk permission check and returns all granted permissions.- Parameters:
bulkPermissionRequest- the permissions to check- Returns:
- Granted permissions
-