Class Groups.NotImplemented
- java.lang.Object
-
- com.google.gerrit.extensions.api.groups.Groups.NotImplemented
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.api.groups.Groups
Groups.ListRequest, Groups.NotImplemented, Groups.QueryRequest
-
-
Constructor Summary
Constructors Constructor Description NotImplemented()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.Groups.QueryRequest
query(String query)
Query groups.
-
-
-
Method Detail
-
id
public GroupApi id(String id) throws RestApiException
Description copied from interface:Groups
Look up a group by ID.Note: 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.- Specified by:
id
in interfaceGroups
- Parameters:
id
- any identifier supported by the REST API, including group name or UUID.- Returns:
- API for accessing the group.
- Throws:
RestApiException
- if an error occurred.
-
create
public GroupApi create(String name) throws RestApiException
Description copied from interface:Groups
Create a new group with the given name and default options.- Specified by:
create
in interfaceGroups
- Throws:
RestApiException
-
create
public GroupApi create(GroupInput input) throws RestApiException
Description copied from interface:Groups
Create a new group.- Specified by:
create
in interfaceGroups
- Throws:
RestApiException
-
list
public Groups.ListRequest list()
-
query
public Groups.QueryRequest query()
Description copied from interface:Groups
Query groups.Example code:
query().withQuery("inname:test").withLimit(10).get()
-
query
public Groups.QueryRequest query(String query)
Description copied from interface:Groups
Query groups.Shortcut API for
query().withQuery(String)
.- Specified by:
query
in interfaceGroups
- See Also:
Groups.query()
-
-