public class GroupsApi extends Object
| Constructor and Description |
|---|
GroupsApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<Group> |
addUserToGroup(String groupname,
UpdateUserToGroupBean requestBody,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Add user to group
Adds a user to a group.
|
io.reactivex.Single<PageBeanGroupDetails> |
bulkGetGroups(List<String> groupId,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Bulk get groups
Returns a [paginated](#pagination) list of the groups specified by one or more group IDs.
|
io.reactivex.Single<Group> |
createGroup(AddGroupBean requestBody,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Create group
Creates a group.
|
io.reactivex.Single<FoundGroups> |
findGroups(Optional<String> accountId,
Optional<String> query,
Optional<List<String>> exclude,
Optional<Integer> maxResults,
Optional<String> userName,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Find groups
Returns a list of groups whose names contain a query string.
|
io.reactivex.Single<Group> |
getGroup(String groupname,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Deprecated.
|
io.reactivex.Single<PageBeanUserDetails> |
getUsersFromGroup(String groupname,
Optional<Boolean> includeInactiveUsers,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get users from group
Returns a [paginated](#pagination) list of all users in a group.
|
io.reactivex.Completable |
removeGroup(String groupname,
Optional<String> swapGroup,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Remove group
Deletes a group.
|
io.reactivex.Completable |
removeUserFromGroup(String groupname,
String accountId,
Optional<String> username,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Remove user from group
Removes a user from a group.
|
public io.reactivex.Single<Group> addUserToGroup(String groupname, UpdateUserToGroupBean requestBody, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
groupname - The name of the group (case sensitive). (required)requestBody - The user to add to the group. (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<PageBeanGroupDetails> bulkGetGroups(List<String> groupId, Optional<Long> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
groupId - The ID of a group. To specify multiple groups, pass multiple `groupId` parameters. For example, `groupId=5b10a2844c20165700ede21g&groupId=5b10ac8d82e05b22cc7d4ef5`. (required)startAt - The index of the first item to return in a page of results (page offset). (optional, default to 0l)maxResults - The maximum number of items to return per page. (optional, default to 10)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<Group> createGroup(AddGroupBean requestBody, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
requestBody - The name of the group. (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<FoundGroups> findGroups(Optional<String> accountId, Optional<String> query, Optional<List<String>> exclude, Optional<Integer> maxResults, Optional<String> userName, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
accountId - This parameter is deprecated, setting it does not affect the results. To find groups containing a particular user, use [Get user groups](#api-rest-api-3-user-groups-get). (optional)query - The string to find in group names. (optional)exclude - A group to exclude from the result. To exclude multiple groups, provide an ampersand-separated list. For example, `exclude=group1&exclude=group2`. (optional, default to new ArrayList<>())maxResults - The maximum number of groups to return. The maximum number of groups that can be returned is limited by the system property `jira.ajax.autocomplete.limit`. (optional)userName - This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
@Deprecated public io.reactivex.Single<Group> getGroup(String groupname, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
groupname - The name of the group. (required)expand - List of fields to expand. (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<PageBeanUserDetails> getUsersFromGroup(String groupname, Optional<Boolean> includeInactiveUsers, Optional<Long> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
groupname - The name of the group. (required)includeInactiveUsers - Include inactive users. (optional, default to false)startAt - The index of the first item to return in a page of results (page offset). (optional, default to 0l)maxResults - The maximum number of items to return per page. (optional, default to 50)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 removeGroup(String groupname, Optional<String> swapGroup, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
groupname - The name of the group. (required)swapGroup - The group to transfer restrictions to. Only comments and worklogs are transferred. If restrictions are not transferred, comments and worklogs are inaccessible after the deletion. (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.Completable removeUserFromGroup(String groupname, String accountId, Optional<String> username, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
groupname - The name of the group. (required)accountId - The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. (required)username - This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. (optional)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.