Class GroupApi.NotImplemented
- java.lang.Object
-
- com.google.gerrit.extensions.api.groups.GroupApi.NotImplemented
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.api.groups.GroupApi
GroupApi.NotImplemented
-
-
Constructor Summary
Constructors Constructor Description NotImplemented()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGroups(List<String> groups)
Adds subgroups to this group.void
addMembers(List<String> members)
Add members to a group.List<? extends GroupAuditEventInfo>
auditLog()
Returns the audit log of the group.String
description()
void
description(String description)
Set group decsription.GroupInfo
detail()
GroupInfo
get()
List<GroupInfo>
includedGroups()
Lists the subgroups of this group.void
index()
Reindexes the group.List<AccountInfo>
members()
List group members, non-recursively.List<AccountInfo>
members(boolean recursive)
List group members.String
name()
void
name(String name)
Set group name.GroupOptionsInfo
options()
void
options(GroupOptionsInfo options)
Set group options.GroupInfo
owner()
void
owner(String owner)
Set group owner.void
removeGroups(List<String> groups)
Removes subgroups from this group.void
removeMembers(List<String> members)
Remove members from a group.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.gerrit.extensions.api.groups.GroupApi
addGroups, addMembers, removeGroups, removeMembers
-
-
-
-
Method Detail
-
get
public GroupInfo get() throws RestApiException
- Specified by:
get
in interfaceGroupApi
- Returns:
- group info with no
ListGroupsOption
s set. - Throws:
RestApiException
-
detail
public GroupInfo detail() throws RestApiException
- Specified by:
detail
in interfaceGroupApi
- Returns:
- group info with all
ListGroupsOption
s set. - Throws:
RestApiException
-
name
public String name() throws RestApiException
- Specified by:
name
in interfaceGroupApi
- Returns:
- group name.
- Throws:
RestApiException
-
name
public void name(String name) throws RestApiException
Description copied from interface:GroupApi
Set group name.- Specified by:
name
in interfaceGroupApi
- Parameters:
name
- new name.- Throws:
RestApiException
-
owner
public GroupInfo owner() throws RestApiException
- Specified by:
owner
in interfaceGroupApi
- Returns:
- owning group info.
- Throws:
RestApiException
-
owner
public void owner(String owner) throws RestApiException
Description copied from interface:GroupApi
Set group owner.- Specified by:
owner
in interfaceGroupApi
- Parameters:
owner
- identifier of new group owner.- Throws:
RestApiException
-
description
public String description() throws RestApiException
- Specified by:
description
in interfaceGroupApi
- Returns:
- group description.
- Throws:
RestApiException
-
description
public void description(String description) throws RestApiException
Description copied from interface:GroupApi
Set group decsription.- Specified by:
description
in interfaceGroupApi
- Parameters:
description
- new description.- Throws:
RestApiException
-
options
public GroupOptionsInfo options() throws RestApiException
- Specified by:
options
in interfaceGroupApi
- Returns:
- group options.
- Throws:
RestApiException
-
options
public void options(GroupOptionsInfo options) throws RestApiException
Description copied from interface:GroupApi
Set group options.- Specified by:
options
in interfaceGroupApi
- Parameters:
options
- new options.- Throws:
RestApiException
-
members
public List<AccountInfo> members() throws RestApiException
Description copied from interface:GroupApi
List group members, non-recursively.- Specified by:
members
in interfaceGroupApi
- Returns:
- group members.
- Throws:
RestApiException
-
members
public List<AccountInfo> members(boolean recursive) throws RestApiException
Description copied from interface:GroupApi
List group members.- Specified by:
members
in interfaceGroupApi
- Parameters:
recursive
- whether to recursively included groups.- Returns:
- group members.
- Throws:
RestApiException
-
addMembers
public void addMembers(List<String> members) throws RestApiException
Description copied from interface:GroupApi
Add members to a group.- Specified by:
addMembers
in interfaceGroupApi
- Parameters:
members
- list of member identifiers, in any format accepted byAccounts.id(String)
- Throws:
RestApiException
-
removeMembers
public void removeMembers(List<String> members) throws RestApiException
Description copied from interface:GroupApi
Remove members from a group.- Specified by:
removeMembers
in interfaceGroupApi
- Parameters:
members
- list of member identifiers, in any format accepted byAccounts.id(String)
- Throws:
RestApiException
-
includedGroups
public List<GroupInfo> includedGroups() throws RestApiException
Description copied from interface:GroupApi
Lists the subgroups of this group.- Specified by:
includedGroups
in interfaceGroupApi
- Returns:
- the found subgroups
- Throws:
RestApiException
-
addGroups
public void addGroups(List<String> groups) throws RestApiException
Description copied from interface:GroupApi
Adds subgroups to this group.- Specified by:
addGroups
in interfaceGroupApi
- Parameters:
groups
- list of group identifiers, in any format accepted byGroups.id(String)
- Throws:
RestApiException
-
removeGroups
public void removeGroups(List<String> groups) throws RestApiException
Description copied from interface:GroupApi
Removes subgroups from this group.- Specified by:
removeGroups
in interfaceGroupApi
- Parameters:
groups
- list of group identifiers, in any format accepted byGroups.id(String)
- Throws:
RestApiException
-
auditLog
public List<? extends GroupAuditEventInfo> auditLog() throws RestApiException
Description copied from interface:GroupApi
Returns the audit log of the group.- Specified by:
auditLog
in interfaceGroupApi
- Returns:
- list of audit events of the group.
- Throws:
RestApiException
-
index
public void index() throws RestApiException
Description copied from interface:GroupApi
Reindexes the group.Only supported for internal groups.
- Specified by:
index
in interfaceGroupApi
- Throws:
RestApiException
-
-