public class ListSubgroups extends Object implements RestReadView<GroupResource>
Modifier and Type | Method and Description |
---|---|
List<GroupInfo> |
apply(GroupResource rsrc)
Process the view operation by reading from the resource.
|
List<GroupInfo> |
getDirectSubgroups(GroupDescription.Internal group,
GroupControl groupControl) |
public List<GroupInfo> apply(GroupResource rsrc) throws com.google.gerrit.server.restapi.group.NotInternalGroupException, PermissionBackendException
RestReadView
apply
in interface RestReadView<GroupResource>
rsrc
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.com.google.gerrit.server.restapi.group.NotInternalGroupException
PermissionBackendException
public List<GroupInfo> getDirectSubgroups(GroupDescription.Internal group, GroupControl groupControl) throws PermissionBackendException
PermissionBackendException