public class QueryProjects extends 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 |
---|---|
List<ProjectInfo> |
apply() |
List<ProjectInfo> |
apply(TopLevelResource resource)
Process the view operation by reading from the resource.
|
QueryProjects |
withLimit(int limit) |
QueryProjects |
withQuery(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(String query)
public QueryProjects withLimit(int limit)
public QueryProjects withStart(int start)
public List<ProjectInfo> apply(TopLevelResource resource) throws BadRequestException, MethodNotAllowedException
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
public List<ProjectInfo> apply() throws BadRequestException, MethodNotAllowedException