Interface GroupApi
- All Known Implementing Classes:
GroupApi.NotImplemented
public interface GroupApi
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A default implementation which allows source compatibility when adding new methods to the interface. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
Adds subgroups to this group.void
Adds subgroups to this group.default void
addMembers
(String... members) Add members to a group.void
addMembers
(List<String> members) Add members to a group.List<? extends GroupAuditEventInfo>
auditLog()
Returns the audit log of the group.Returns group description.void
description
(String description) Set group decsription.detail()
Returns group info with allListGroupsOption
s set.get()
Returns group info with noListGroupsOption
s set.Lists the subgroups of this group.void
index()
Reindexes the group.members()
List group members, non-recursively.members
(boolean recursive) List group members.name()
Returns group name.void
Set group name.options()
Returns group options.void
options
(GroupOptionsInfo options) Set group options.owner()
Returns owning group info.void
Set group owner.default void
removeGroups
(String... groups) Removes subgroups from this group.void
removeGroups
(List<String> groups) Removes subgroups from this group.default void
removeMembers
(String... members) Remove members from a group.void
removeMembers
(List<String> members) Remove members from a group.
-
Method Details
-
get
Returns group info with noListGroupsOption
s set.- Throws:
RestApiException
-
detail
Returns group info with allListGroupsOption
s set.- Throws:
RestApiException
-
name
Returns group name.- Throws:
RestApiException
-
name
Set group name.- Parameters:
name
- new name.- Throws:
RestApiException
-
owner
Returns owning group info.- Throws:
RestApiException
-
owner
Set group owner.- Parameters:
owner
- identifier of new group owner.- Throws:
RestApiException
-
description
Returns group description.- Throws:
RestApiException
-
description
Set group decsription.- Parameters:
description
- new description.- Throws:
RestApiException
-
options
Returns group options.- Throws:
RestApiException
-
options
Set group options.- Parameters:
options
- new options.- Throws:
RestApiException
-
members
List group members, non-recursively.- Returns:
- group members.
- Throws:
RestApiException
-
members
List group members.- Parameters:
recursive
- whether to recursively included groups.- Returns:
- group members.
- Throws:
RestApiException
-
addMembers
Add members to a group.- Parameters:
members
- list of member identifiers, in any format accepted byAccounts.id(String)
- Throws:
RestApiException
-
addMembers
Add members to a group.- Parameters:
members
- list of member identifiers, in any format accepted byAccounts.id(String)
- Throws:
RestApiException
-
removeMembers
Remove members from a group.- Parameters:
members
- list of member identifiers, in any format accepted byAccounts.id(String)
- Throws:
RestApiException
-
removeMembers
Remove members from a group.- Parameters:
members
- list of member identifiers, in any format accepted byAccounts.id(String)
- Throws:
RestApiException
-
includedGroups
Lists the subgroups of this group.- Returns:
- the found subgroups
- Throws:
RestApiException
-
addGroups
Adds subgroups to this group.- Parameters:
groups
- list of group identifiers, in any format accepted byGroups.id(String)
- Throws:
RestApiException
-
addGroups
Adds subgroups to this group.- Parameters:
groups
- list of group identifiers, in any format accepted byGroups.id(String)
- Throws:
RestApiException
-
removeGroups
Removes subgroups from this group.- Parameters:
groups
- list of group identifiers, in any format accepted byGroups.id(String)
- Throws:
RestApiException
-
removeGroups
Removes subgroups from this group.- Parameters:
groups
- list of group identifiers, in any format accepted byGroups.id(String)
- Throws:
RestApiException
-
auditLog
Returns the audit log of the group.- Returns:
- list of audit events of the group.
- Throws:
RestApiException
-
index
Reindexes the group.Only supported for internal groups.
- Throws:
RestApiException
-