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 a 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)
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)
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)
projectKey - The key of project. Ignored if `projectId` is provided. (optional)projectId - The ID of project. (optional)issueKey - The key of the issue. Ignored if `issueId` is provided. (optional)issueId - The ID of the issue. (optional)permissions - A list of permission keys. (Required) This parameter accepts a comma-separated list. To get the list of available permissions, use [Get all permissions](#api-rest-api-3-permissions-get). (optional)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)
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–2021 Everit Kft.. All rights reserved.