public class GroupsRestClient extends Groups.NotImplemented implements Groups
Groups.ListRequest, Groups.NotImplemented, Groups.QueryRequest| Constructor and Description |
|---|
GroupsRestClient(GerritRestClient gerritRestClient,
GroupsParser groupsParser) |
| Modifier and Type | Method and Description |
|---|---|
GroupApi |
create(GroupInput input)
Create a new group.
|
GroupApi |
create(String name)
Create a new group with the given name and default options.
|
GroupApi |
id(String id)
Look up a group by ID.
|
Groups.ListRequest |
list() |
Groups.QueryRequest |
query()
Query groups.
|
protected List<GroupInfo> |
query(Groups.QueryRequest queryRequest) |
Groups.QueryRequest |
query(String query)
Query groups.
|
public GroupsRestClient(GerritRestClient gerritRestClient, GroupsParser groupsParser)
public GroupApi id(String id) throws RestApiException
GroupsNote: This method eagerly reads the group. Methods that mutate the group do
not necessarily re-read the group. Therefore, calling a getter method on an instance after
calling a mutation method on that same instance is not guaranteed to reflect the mutation. It
is not recommended to store references to groupApi instances.
id in interface Groupsid in class Groups.NotImplementedid - any identifier supported by the REST API, including group name or UUID.RestApiException - if an error occurred.public GroupApi create(String name) throws RestApiException
Groupscreate in interface Groupscreate in class Groups.NotImplementedRestApiExceptionpublic GroupApi create(GroupInput input) throws RestApiException
Groupscreate in interface Groupscreate in class Groups.NotImplementedRestApiExceptionpublic Groups.ListRequest list()
list in interface Groupslist in class Groups.NotImplementedpublic Groups.QueryRequest query()
GroupsExample code: query().withQuery("inname:test").withLimit(10).get()
query in interface Groupsquery in class Groups.NotImplementedprotected List<GroupInfo> query(Groups.QueryRequest queryRequest) throws RestApiException
RestApiExceptionpublic Groups.QueryRequest query(String query)
GroupsShortcut API for query().withQuery(String).
query in interface Groupsquery in class Groups.NotImplementedGroups.query()Copyright © 2018. All rights reserved.