public class RemoveReviewerControl extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
checkRemoveReviewer(ChangeNotes notes,
CurrentUser currentUser,
Account.Id reviewer)
Checks if removing the given reviewer is OK.
|
void |
checkRemoveReviewer(ChangeNotes notes,
CurrentUser currentUser,
PatchSetApproval approval)
Checks if removing the given reviewer and patch set approval is OK.
|
boolean |
testRemoveReviewer(ChangeData cd,
CurrentUser currentUser,
Account.Id reviewer,
int value) |
public void checkRemoveReviewer(ChangeNotes notes, CurrentUser currentUser, PatchSetApproval approval) throws PermissionBackendException, AuthException, NoSuchProjectException, IOException
AuthException - if this user is not allowed to remove this approval.PermissionBackendExceptionNoSuchProjectExceptionIOExceptionpublic void checkRemoveReviewer(ChangeNotes notes, CurrentUser currentUser, Account.Id reviewer) throws PermissionBackendException, AuthException, NoSuchProjectException, IOException
AuthException - if this user is not allowed to remove this approval.PermissionBackendExceptionNoSuchProjectExceptionIOExceptionpublic boolean testRemoveReviewer(ChangeData cd, CurrentUser currentUser, Account.Id reviewer, int value) throws PermissionBackendException, NoSuchProjectException, com.google.gwtorm.server.OrmException, IOException
PermissionBackendExceptionNoSuchProjectExceptioncom.google.gwtorm.server.OrmExceptionIOException