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() |
java.util.List<ProjectInfo> |
apply(TopLevelResource resource)
Process the view operation by reading from the resource.
|
QueryProjects |
withLimit(int limit) |
QueryProjects |
withQuery(java.lang.String query) |
QueryProjects |
withStart(int start) |
@Inject
protected QueryProjects(com.google.gerrit.index.project.ProjectIndexCollection indexes,
ProjectQueryBuilder queryBuilder,
ProjectQueryProcessor queryProcessor,
ProjectJson json)
public QueryProjects withQuery(java.lang.String query)
public QueryProjects withLimit(int limit)
public QueryProjects withStart(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.OrmExceptionpublic java.util.List<ProjectInfo> apply() throws BadRequestException, MethodNotAllowedException, com.google.gwtorm.server.OrmException
BadRequestExceptionMethodNotAllowedExceptioncom.google.gwtorm.server.OrmException