Revision API: Add methods to get / set review status

File-path must be passed unencoded and will be handled in impl.

Change-Id: Ife5c2f21c2e916ed9cf73f4fa157b85a6dc4d485
This commit is contained in:
Urs Wolfer 2014-05-29 22:29:34 +02:00
parent 7af3ec348e
commit 3e740622b6

View File

@ -17,6 +17,8 @@ package com.google.gerrit.extensions.api.changes;
import com.google.gerrit.extensions.restapi.NotImplementedException;
import com.google.gerrit.extensions.restapi.RestApiException;
import java.util.Set;
public interface RevisionApi {
void delete() throws RestApiException;
void review(ReviewInput in) throws RestApiException;
@ -29,6 +31,9 @@ public interface RevisionApi {
ChangeApi rebase() throws RestApiException;
boolean canRebase();
void setReviewed(String path, boolean reviewed) throws RestApiException;
Set<String> reviewed() throws RestApiException;
/**
* A default implementation which allows source compatibility
* when adding new methods to the interface.
@ -73,5 +78,15 @@ public interface RevisionApi {
public boolean canRebase() {
throw new NotImplementedException();
}
@Override
public void setReviewed(String path, boolean reviewed) throws RestApiException {
throw new NotImplementedException();
}
@Override
public Set<String> reviewed() throws RestApiException {
throw new NotImplementedException();
}
}
}