public class GroupApiRestClient extends GroupApi.NotImplemented implements GroupApi
GroupApi.NotImplemented| Constructor and Description |
|---|
GroupApiRestClient(GerritRestClient gerritRestClient,
GroupsParser groupsParser,
String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroups(String... groups)
Adds subgroups to this group.
|
void |
addMembers(String... members)
Add members to a group.
|
String |
description() |
void |
description(String description)
Set group decsription.
|
GroupInfo |
detail() |
GroupInfo |
get() |
static String |
getBaseRequestPath() |
protected String |
getRequestPath() |
static String |
getRequestPath(String id) |
List<GroupInfo> |
includedGroups()
Lists the subgroups of this group.
|
List<AccountInfo> |
members()
List group members, non-recursively.
|
List<AccountInfo> |
members(boolean recursive)
List group members.
|
String |
name() |
void |
name(String name)
Set group name.
|
GroupInfo |
owner() |
void |
owner(String owner)
Set group owner.
|
void |
removeGroups(String... groups)
Removes subgroups from this group.
|
void |
removeMembers(String... members)
Remove members from a group.
|
auditLog, index, options, optionspublic GroupApiRestClient(GerritRestClient gerritRestClient, GroupsParser groupsParser, String id)
public static String getBaseRequestPath()
protected String getRequestPath()
public GroupInfo get() throws RestApiException
get in interface GroupApiget in class GroupApi.NotImplementedListGroupsOptions set.RestApiExceptionpublic GroupInfo detail() throws RestApiException
detail in interface GroupApidetail in class GroupApi.NotImplementedListGroupsOptions set.RestApiExceptionpublic String name() throws RestApiException
name in interface GroupApiname in class GroupApi.NotImplementedRestApiExceptionpublic void name(String name) throws RestApiException
GroupApiname in interface GroupApiname in class GroupApi.NotImplementedname - new name.RestApiExceptionpublic GroupInfo owner() throws RestApiException
owner in interface GroupApiowner in class GroupApi.NotImplementedRestApiExceptionpublic void owner(String owner) throws RestApiException
GroupApiowner in interface GroupApiowner in class GroupApi.NotImplementedowner - identifier of new group owner.RestApiExceptionpublic String description() throws RestApiException
description in interface GroupApidescription in class GroupApi.NotImplementedRestApiExceptionpublic void description(String description) throws RestApiException
GroupApidescription in interface GroupApidescription in class GroupApi.NotImplementeddescription - new description.RestApiExceptionpublic List<AccountInfo> members() throws RestApiException
GroupApimembers in interface GroupApimembers in class GroupApi.NotImplementedRestApiExceptionpublic List<AccountInfo> members(boolean recursive) throws RestApiException
GroupApimembers in interface GroupApimembers in class GroupApi.NotImplementedrecursive - whether to recursively included groups.RestApiExceptionpublic void addMembers(String... members) throws RestApiException
GroupApiaddMembers in interface GroupApiaddMembers in class GroupApi.NotImplementedmembers - list of member identifiers, in any format accepted by Accounts.id(String)RestApiExceptionpublic List<GroupInfo> includedGroups() throws RestApiException
GroupApiincludedGroups in interface GroupApiincludedGroups in class GroupApi.NotImplementedRestApiExceptionpublic void addGroups(String... groups) throws RestApiException
GroupApiaddGroups in interface GroupApiaddGroups in class GroupApi.NotImplementedgroups - list of group identifiers, in any format accepted by Groups.id(String)RestApiExceptionpublic void removeGroups(String... groups) throws RestApiException
GroupApiremoveGroups in interface GroupApiremoveGroups in class GroupApi.NotImplementedgroups - list of group identifiers, in any format accepted by Groups.id(String)RestApiExceptionpublic void removeMembers(String... members) throws RestApiException
GroupApiremoveMembers in interface GroupApiremoveMembers in class GroupApi.NotImplementedmembers - list of member identifiers, in any format accepted by Accounts.id(String)RestApiExceptionCopyright © 2018. All rights reserved.