public class QueryProjects extends java.lang.Object implements RestReadView<TopLevelResource>
| Modifier | Constructor and Description |
|---|---|
protected |
QueryProjects(com.google.gerrit.index.project.ProjectIndexCollection indexes,
ProjectQueryBuilder queryBuilder,
ProjectQueryProcessor queryProcessor,
ProjectJson json) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ProjectInfo> |
apply(TopLevelResource resource)
Process the view operation by reading from the resource.
|
void |
setLimit(int limit) |
void |
setQuery(java.lang.String query) |
void |
setStart(int start) |
@Inject
protected QueryProjects(com.google.gerrit.index.project.ProjectIndexCollection indexes,
ProjectQueryBuilder queryBuilder,
ProjectQueryProcessor queryProcessor,
ProjectJson json)
public void setQuery(java.lang.String query)
public void setLimit(int limit)
public void setStart(int start)
public java.util.List<ProjectInfo> 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