public class PermissionsApi extends Object
| Constructor and Description |
|---|
PermissionsApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<Permissions> |
getAllPermissions(Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get all permissions
Returns all permissions, including: global permissions.
|
io.reactivex.Single<BulkPermissionGrants> |
getBulkPermissions(BulkPermissionsRequestBean bulkPermissionsRequestBean,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get bulk permissions
Returns: for a list of global permissions, the global permissions granted to the user.
|
io.reactivex.Single<Permissions> |
getMyPermissions(Optional<String> projectKey,
Optional<String> projectId,
Optional<String> issueKey,
Optional<String> issueId,
Optional<String> permissions,
Optional<String> projectUuid,
Optional<String> projectConfigurationUuid,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get my permissions
Returns a list of permissions indicating which permissions the user has.
|
io.reactivex.Single<PermittedProjects> |
getPermittedProjects(PermissionsKeysBean permissionsKeysBean,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get permitted projects
Returns all the projects where the user is granted a list of project permissions.
|
public PermissionsApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<Permissions> getAllPermissions(Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns all permissions, including:
Permissions required: Administer Jira global permission.
restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<BulkPermissionGrants> getBulkPermissions(BulkPermissionsRequestBean bulkPermissionsRequestBean, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns:
Note that:
This operation can be accessed anonymously.
Permissions required: None.
bulkPermissionsRequestBean - Details of the permissions to check.
(required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Permissions> getMyPermissions(Optional<String> projectKey, Optional<String> projectId, Optional<String> issueKey, Optional<String> issueId, Optional<String> permissions, Optional<String> projectUuid, Optional<String> projectConfigurationUuid, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns a list of permissions indicating which permissions the user has. Details of the user's permissions can be obtained in a global, project, or issue context.
The user is reported as having a project permission:
This means that users may be shown as having an issue permission (such as EDIT_ISSUE) in the global context or a project context but may not have the permission for any or all issues. For example, if Reporters have the EDIT_ISSUE permission a user would be shown as having this permission in the global context or the context of a project, because any user can be a reporter. However, if they are not the user who reported the issue queried they would not have EDIT_ISSUE permission for that issue.
Global permissions are unaffected by context.
This operation can be accessed anonymously.
Permissions required: None.
projectKey - The key of project. Ignored if projectId is provided.
projectId - The ID of project.
(optional)issueKey - The key of the issue. Ignored if issueId is provided.
issueId - The ID of the issue.
(optional)permissions - A comma-separated list of permission keys. Omitting this parameter is deprecated. To get the list of available permissions, use Get all permissions. Note that deprecated keys cannot be used. Deprecated keys are not returned by Get all permissions but are returned by this operation if permissions is omitted.
projectUuid - (optional)projectConfigurationUuid - (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PermittedProjects> getPermittedProjects(PermissionsKeysBean permissionsKeysBean, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns all the projects where the user is granted a list of project permissions.
This operation can be accessed anonymously.
Permissions required: None.
permissionsKeysBean - (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2019 Everit Kft.. All rights reserved.