public class QueryGroups extends Object implements RestReadView<TopLevelResource>
| Modifier | Constructor and Description |
|---|---|
protected |
QueryGroups(GroupIndexCollection indexes,
GroupQueryBuilder queryBuilder,
GroupQueryProcessor queryProcessor,
GroupJson json) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(ListGroupsOption o) |
List<GroupInfo> |
apply(TopLevelResource resource)
Process the view operation by reading from the resource.
|
void |
setLimit(int limit) |
void |
setOptionFlagsHex(String hex) |
void |
setQuery(String query)
--query (-q) is already used by
ListGroups |
void |
setStart(int start) |
@Inject protected QueryGroups(GroupIndexCollection indexes, GroupQueryBuilder queryBuilder, GroupQueryProcessor queryProcessor, GroupJson json)
public void setQuery(String query)
ListGroupspublic void setLimit(int limit)
public void setStart(int start)
public void addOption(ListGroupsOption o)
public void setOptionFlagsHex(String hex)
public List<GroupInfo> apply(TopLevelResource resource) throws BadRequestException, MethodNotAllowedException, com.google.gwtorm.server.OrmException
RestReadViewapply 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.MethodNotAllowedExceptioncom.google.gwtorm.server.OrmException