public interface GroupApi
Modifier and Type | Interface and Description |
---|---|
static class |
GroupApi.NotImplemented
A default implementation which allows source compatibility when adding new methods to the
interface.
|
Modifier and Type | Method and Description |
---|---|
void |
addGroups(java.lang.String... groups)
Add groups to be included in this one.
|
void |
addMembers(java.lang.String... members)
Add members to a group.
|
java.util.List<? extends GroupAuditEventInfo> |
auditLog()
Returns the audit log of the group.
|
java.lang.String |
description() |
void |
description(java.lang.String description)
Set group decsription.
|
GroupInfo |
detail() |
GroupInfo |
get() |
java.util.List<GroupInfo> |
includedGroups()
List included groups.
|
void |
index()
Reindexes the group.
|
java.util.List<AccountInfo> |
members()
List group members, non-recursively.
|
java.util.List<AccountInfo> |
members(boolean recursive)
List group members.
|
java.lang.String |
name() |
void |
name(java.lang.String name)
Set group name.
|
GroupOptionsInfo |
options() |
void |
options(GroupOptionsInfo options)
Set group options.
|
GroupInfo |
owner() |
void |
owner(java.lang.String owner)
Set group owner.
|
void |
removeGroups(java.lang.String... groups)
Remove included groups from this one.
|
void |
removeMembers(java.lang.String... members)
Remove members from a group.
|
GroupInfo get() throws RestApiException
ListGroupsOption
s set.RestApiException
GroupInfo detail() throws RestApiException
ListGroupsOption
s set.RestApiException
java.lang.String name() throws RestApiException
RestApiException
void name(java.lang.String name) throws RestApiException
name
- new name.RestApiException
GroupInfo owner() throws RestApiException
RestApiException
void owner(java.lang.String owner) throws RestApiException
owner
- identifier of new group owner.RestApiException
java.lang.String description() throws RestApiException
RestApiException
void description(java.lang.String description) throws RestApiException
description
- new description.RestApiException
GroupOptionsInfo options() throws RestApiException
RestApiException
void options(GroupOptionsInfo options) throws RestApiException
options
- new options.RestApiException
java.util.List<AccountInfo> members() throws RestApiException
RestApiException
java.util.List<AccountInfo> members(boolean recursive) throws RestApiException
recursive
- whether to recursively included groups.RestApiException
void addMembers(java.lang.String... members) throws RestApiException
members
- list of member identifiers, in any format accepted by Accounts.id(String)
RestApiException
void removeMembers(java.lang.String... members) throws RestApiException
members
- list of member identifiers, in any format accepted by Accounts.id(String)
RestApiException
java.util.List<GroupInfo> includedGroups() throws RestApiException
RestApiException
void addGroups(java.lang.String... groups) throws RestApiException
groups
- list of group identifiers, in any format accepted by Groups.id(String)
RestApiException
void removeGroups(java.lang.String... groups) throws RestApiException
groups
- list of group identifiers, in any format accepted by Groups.id(String)
RestApiException
java.util.List<? extends GroupAuditEventInfo> auditLog() throws RestApiException
RestApiException
void index() throws RestApiException
Only supported for internal groups.
RestApiException