public interface AccountPatchReviewStore
Modifier and Type | Method and Description |
---|---|
void |
clearReviewed(com.google.gerrit.reviewdb.client.PatchSet.Id psId)
Clears the reviewed flags for all files in the given patch set for all
users.
|
void |
clearReviewed(com.google.gerrit.reviewdb.client.PatchSet.Id psId,
com.google.gerrit.reviewdb.client.Account.Id accountId,
String path)
Clears the reviewed flag for the given file in the given patch set for the
given user.
|
Collection<String> |
findReviewed(com.google.gerrit.reviewdb.client.PatchSet.Id psId,
com.google.gerrit.reviewdb.client.Account.Id accountId)
Returns the paths of all files in the given patch set the have been
reviewed by the given user.
|
void |
markReviewed(com.google.gerrit.reviewdb.client.PatchSet.Id psId,
com.google.gerrit.reviewdb.client.Account.Id accountId,
Collection<String> paths)
Marks the given files in the given patch set as reviewed by the given user.
|
boolean |
markReviewed(com.google.gerrit.reviewdb.client.PatchSet.Id psId,
com.google.gerrit.reviewdb.client.Account.Id accountId,
String path)
Marks the given file in the given patch set as reviewed by the given user.
|
boolean markReviewed(com.google.gerrit.reviewdb.client.PatchSet.Id psId, com.google.gerrit.reviewdb.client.Account.Id accountId, String path) throws com.google.gwtorm.server.OrmException
psId
- patch set IDaccountId
- account ID of the userpath
- file pathtrue
if the reviewed flag was updated, false
if the
reviewed flag was already setcom.google.gwtorm.server.OrmException
- thrown if updating the reviewed flag failedvoid markReviewed(com.google.gerrit.reviewdb.client.PatchSet.Id psId, com.google.gerrit.reviewdb.client.Account.Id accountId, Collection<String> paths) throws com.google.gwtorm.server.OrmException
psId
- patch set IDaccountId
- account ID of the userpaths
- file pathscom.google.gwtorm.server.OrmException
- thrown if updating the reviewed flag failedvoid clearReviewed(com.google.gerrit.reviewdb.client.PatchSet.Id psId, com.google.gerrit.reviewdb.client.Account.Id accountId, String path) throws com.google.gwtorm.server.OrmException
psId
- patch set IDaccountId
- account ID of the userpath
- file pathcom.google.gwtorm.server.OrmException
- thrown if clearing the reviewed flag failedvoid clearReviewed(com.google.gerrit.reviewdb.client.PatchSet.Id psId) throws com.google.gwtorm.server.OrmException
psId
- patch set IDcom.google.gwtorm.server.OrmException
- thrown if clearing the reviewed flags failedCollection<String> findReviewed(com.google.gerrit.reviewdb.client.PatchSet.Id psId, com.google.gerrit.reviewdb.client.Account.Id accountId) throws com.google.gwtorm.server.OrmException
psId
- patch set IDaccountId
- account ID of the usercom.google.gwtorm.server.OrmException
- thrown if accessing the reviewed flags failed