Package com.google.gerrit.server.project
Class RemoveReviewerControl
- java.lang.Object
- 
- com.google.gerrit.server.project.RemoveReviewerControl
 
- 
 public class RemoveReviewerControl extends Object 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckRemoveReviewer(ChangeNotes notes, CurrentUser currentUser, Account.Id reviewer)Checks if removing the given reviewer is OK.voidcheckRemoveReviewer(ChangeNotes notes, CurrentUser currentUser, PatchSetApproval approval)Checks if removing the given reviewer and patch set approval is OK.booleantestRemoveReviewer(ChangeData cd, CurrentUser currentUser, Account.Id reviewer, int value)
 
- 
- 
- 
Method Detail- 
checkRemoveReviewerpublic void checkRemoveReviewer(ChangeNotes notes, CurrentUser currentUser, PatchSetApproval approval) throws PermissionBackendException, AuthException, NoSuchProjectException, IOException Checks if removing the given reviewer and patch set approval is OK.- Throws:
- AuthException- if this user is not allowed to remove this approval.
- PermissionBackendException
- NoSuchProjectException
- IOException
 
 - 
checkRemoveReviewerpublic void checkRemoveReviewer(ChangeNotes notes, CurrentUser currentUser, Account.Id reviewer) throws PermissionBackendException, AuthException, NoSuchProjectException, IOException Checks if removing the given reviewer is OK. Does not check if removing any approvals the reviewer might have given is OK.- Throws:
- AuthException- if this user is not allowed to remove this approval.
- PermissionBackendException
- NoSuchProjectException
- IOException
 
 - 
testRemoveReviewerpublic boolean testRemoveReviewer(ChangeData cd, CurrentUser currentUser, Account.Id reviewer, int value) throws PermissionBackendException, NoSuchProjectException, com.google.gwtorm.server.OrmException, IOException - Returns:
- true if the user is allowed to remove this reviewer.
- Throws:
- PermissionBackendException
- NoSuchProjectException
- com.google.gwtorm.server.OrmException
- IOException
 
 
- 
 
-