public class QueryGroups extends java.lang.Object implements RestReadView<TopLevelResource>
Modifier | Constructor and Description |
---|---|
protected |
QueryGroups(GroupQueryBuilder queryBuilder,
com.google.inject.Provider<GroupQueryProcessor> queryProcessorProvider,
GroupJson json) |
Modifier and Type | Method and Description |
---|---|
void |
addOption(ListGroupsOption o) |
java.util.List<GroupInfo> |
apply(TopLevelResource resource)
Process the view operation by reading from the resource.
|
void |
setLimit(int limit) |
void |
setOptionFlagsHex(java.lang.String hex) |
void |
setQuery(java.lang.String query)
--query (-q) is already used by
ListGroups |
void |
setStart(int start) |
@Inject protected QueryGroups(GroupQueryBuilder queryBuilder, com.google.inject.Provider<GroupQueryProcessor> queryProcessorProvider, GroupJson json)
public void setQuery(java.lang.String query)
ListGroups
public void setLimit(int limit)
public void setStart(int start)
public void addOption(ListGroupsOption o)
public void setOptionFlagsHex(java.lang.String hex)
public java.util.List<GroupInfo> apply(TopLevelResource resource) throws BadRequestException, MethodNotAllowedException, PermissionBackendException
RestReadView
apply
in interface RestReadView<TopLevelResource>
resource
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.BadRequestException
- the request was incorrectly specified and cannot be handled by this
view.MethodNotAllowedException
PermissionBackendException