Search in sources :

Example 1 with IndexProjectInput

use of com.google.gerrit.extensions.api.projects.IndexProjectInput in project gerrit by GerritCodeReview.

the class ProjectApiImpl method index.

@Override
public void index(boolean indexChildren) throws RestApiException {
    try {
        IndexProjectInput input = new IndexProjectInput();
        input.indexChildren = indexChildren;
        index.apply(checkExists(), input);
    } catch (Exception e) {
        throw asRestApiException("Cannot index project", e);
    }
}
Also used : IndexProjectInput(com.google.gerrit.extensions.api.projects.IndexProjectInput) ResourceNotFoundException(com.google.gerrit.extensions.restapi.ResourceNotFoundException) ApiUtil.asRestApiException(com.google.gerrit.server.api.ApiUtil.asRestApiException) BadRequestException(com.google.gerrit.extensions.restapi.BadRequestException) NotImplementedException(com.google.gerrit.extensions.restapi.NotImplementedException) RestApiException(com.google.gerrit.extensions.restapi.RestApiException) ResourceConflictException(com.google.gerrit.extensions.restapi.ResourceConflictException)

Aggregations

IndexProjectInput (com.google.gerrit.extensions.api.projects.IndexProjectInput)1 BadRequestException (com.google.gerrit.extensions.restapi.BadRequestException)1 NotImplementedException (com.google.gerrit.extensions.restapi.NotImplementedException)1 ResourceConflictException (com.google.gerrit.extensions.restapi.ResourceConflictException)1 ResourceNotFoundException (com.google.gerrit.extensions.restapi.ResourceNotFoundException)1 RestApiException (com.google.gerrit.extensions.restapi.RestApiException)1 ApiUtil.asRestApiException (com.google.gerrit.server.api.ApiUtil.asRestApiException)1