public class ProjectRolesApi extends Object
| Constructor and Description |
|---|
ProjectRolesApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<ProjectRole> |
createProjectRole(CreateUpdateRoleRequestBean createUpdateRoleRequestBean,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Create project role
Creates a new project role with no [default actors](#api-rest-api-2-resolution-get).
|
io.reactivex.Completable |
deleteProjectRole(Long id,
Optional<Long> swap,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete project role
Deletes a project role.
|
io.reactivex.Single<ProjectRole> |
fullyUpdateProjectRole(Long id,
CreateUpdateRoleRequestBean createUpdateRoleRequestBean,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Fully update project role
Updates the project role's name and description.
|
io.reactivex.Single<List<ProjectRole>> |
getAllProjectRoles(Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get all project roles
Gets a list of all project roles, complete with project role details and default actors. ### About project roles ### [Project roles](https://confluence.atlassian.com/x/3odKLg) are a flexible way to to associate users and groups with projects.
|
io.reactivex.Single<ProjectRole> |
getProjectRole(String projectIdOrKey,
Long id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get project role for project
Returns a project role's details and actors associated with the project.
|
io.reactivex.Single<ProjectRole> |
getProjectRoleById(Long id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get project role by ID
Gets the project role details and the default actors associated with the role.
|
io.reactivex.Single<List<ProjectRole>> |
getProjectRoleDetails(String projectIdOrKey,
Optional<Boolean> currentMember,
Optional<Boolean> excludeConnectAddons,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get project role details
Returns all [project roles](https://confluence.atlassian.com/x/3odKLg) and the details for each role.
|
io.reactivex.Single<Map<String,URI>> |
getProjectRoles(String projectIdOrKey,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get project roles for project
Returns a list of [project roles](https://confluence.atlassian.com/x/3odKLg) for the project returning the name and self URL for each role.
|
io.reactivex.Single<ProjectRole> |
partialUpdateProjectRole(Long id,
CreateUpdateRoleRequestBean createUpdateRoleRequestBean,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Partial update project role
Updates either the project role's name or its description.
|
public ProjectRolesApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<ProjectRole> createProjectRole(CreateUpdateRoleRequestBean createUpdateRoleRequestBean, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
createUpdateRoleRequestBean - (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.Completable deleteProjectRole(Long id, Optional<Long> swap, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the project role to delete. Use [Get all project roles](#api-rest-api-2-role-get) to get a list of project role IDs. (required)swap - The ID of the project role that will replace the one being deleted. (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<ProjectRole> fullyUpdateProjectRole(Long id, CreateUpdateRoleRequestBean createUpdateRoleRequestBean, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the project role. Use [Get all project roles](#api-rest-api-2-role-get) to get a list of project role IDs. (required)createUpdateRoleRequestBean - (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<List<ProjectRole>> getAllProjectRoles(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<ProjectRole> getProjectRole(String projectIdOrKey, Long id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
projectIdOrKey - The project ID or project key (case sensitive). (required)id - The ID of the project role. Use [Get all project roles](#api-rest-api-2-role-get) to get a list of project role IDs. (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<ProjectRole> getProjectRoleById(Long id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the project role. Use [Get all project roles](#api-rest-api-2-role-get) to get a list of project role IDs. (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<List<ProjectRole>> getProjectRoleDetails(String projectIdOrKey, Optional<Boolean> currentMember, Optional<Boolean> excludeConnectAddons, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
projectIdOrKey - The project ID or project key (case sensitive). (required)currentMember - Whether the roles should be filtered to include only those the user is assigned to. (optional, default to false)excludeConnectAddons - (optional, default to false)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<Map<String,URI>> getProjectRoles(String projectIdOrKey, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
projectIdOrKey - The project ID or project key (case sensitive). (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<ProjectRole> partialUpdateProjectRole(Long id, CreateUpdateRoleRequestBean createUpdateRoleRequestBean, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the project role. Use [Get all project roles](#api-rest-api-2-role-get) to get a list of project role IDs. (required)createUpdateRoleRequestBean - (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.