public class ListMembers extends java.lang.Object implements RestReadView<GroupResource>
Modifier | Constructor and Description |
---|---|
protected |
ListMembers(GroupCache groupCache,
GroupControl.Factory groupControlFactory,
AccountLoader.Factory accountLoaderFactory) |
Modifier and Type | Method and Description |
---|---|
java.util.List<AccountInfo> |
apply(GroupResource resource)
Process the view operation by reading from the resource.
|
java.util.List<AccountInfo> |
getDirectMembers(GroupDescription.Internal group,
GroupControl groupControl) |
java.util.List<AccountInfo> |
getDirectMembers(InternalGroup group) |
java.util.List<AccountInfo> |
getTransitiveMembers(AccountGroup.UUID groupUuid) |
ListMembers |
setRecursive(boolean recursive) |
@Inject protected ListMembers(GroupCache groupCache, GroupControl.Factory groupControlFactory, AccountLoader.Factory accountLoaderFactory)
public ListMembers setRecursive(boolean recursive)
public java.util.List<AccountInfo> apply(GroupResource resource) throws com.google.gerrit.server.restapi.group.NotInternalGroupException, PermissionBackendException
RestReadView
apply
in interface RestReadView<GroupResource>
resource
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.com.google.gerrit.server.restapi.group.NotInternalGroupException
PermissionBackendException
public java.util.List<AccountInfo> getTransitiveMembers(AccountGroup.UUID groupUuid) throws PermissionBackendException
PermissionBackendException
public java.util.List<AccountInfo> getDirectMembers(InternalGroup group) throws PermissionBackendException
PermissionBackendException
public java.util.List<AccountInfo> getDirectMembers(GroupDescription.Internal group, GroupControl groupControl) throws PermissionBackendException
PermissionBackendException