public interface Groups
Modifier and Type | Interface and Description |
---|---|
static class |
Groups.ListRequest |
static class |
Groups.NotImplemented
A default implementation which allows source compatibility when adding new methods to the
interface.
|
static class |
Groups.QueryRequest
API for setting parameters and getting result.
|
Modifier and Type | Method and Description |
---|---|
GroupApi |
create(GroupInput input)
Create a new group.
|
GroupApi |
create(java.lang.String name)
Create a new group with the given name and default options.
|
GroupApi |
id(java.lang.String id)
Look up a group by ID.
|
Groups.ListRequest |
list() |
Groups.QueryRequest |
query()
Query groups.
|
Groups.QueryRequest |
query(java.lang.String query)
Query groups.
|
GroupApi id(java.lang.String id) throws RestApiException
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.
id
- any identifier supported by the REST API, including group name or UUID.RestApiException
- if an error occurred.GroupApi create(java.lang.String name) throws RestApiException
RestApiException
GroupApi create(GroupInput input) throws RestApiException
RestApiException
Groups.ListRequest list()
Groups.QueryRequest query()
Example code: query().withQuery("inname:test").withLimit(10).get()
Groups.QueryRequest query(java.lang.String query)
Shortcut API for query().withQuery(String)
.
query()