Package com.google.gerrit.server.change
Class ReviewerOp
- java.lang.Object
-
- com.google.gerrit.server.change.ReviewerOp
-
- All Implemented Interfaces:
BatchUpdateOp
,RepoOnlyOp
- Direct Known Subclasses:
AddReviewersOp
,DeleteReviewerByEmailOp
,DeleteReviewerOp
public class ReviewerOp extends Object implements BatchUpdateOp
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReviewerOp.Result
-
Field Summary
Fields Modifier and Type Field Description protected Runnable
eventSender
protected ReviewerOp.Result
opResult
protected PatchSet
patchSet
protected boolean
sendEmail
protected boolean
sendEvent
-
Constructor Summary
Constructors Constructor Description ReviewerOp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReviewerOp.Result
getResult()
void
sendEvent()
void
suppressEmail()
void
suppressEvent()
boolean
updateChange(ChangeContext ctx)
Override this method to modify a change.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.gerrit.server.update.RepoOnlyOp
postUpdate, updateRepo
-
-
-
-
Field Detail
-
sendEmail
protected boolean sendEmail
-
sendEvent
protected boolean sendEvent
-
eventSender
protected Runnable eventSender
-
patchSet
protected PatchSet patchSet
-
opResult
protected ReviewerOp.Result opResult
-
-
Method Detail
-
suppressEmail
public void suppressEmail()
-
suppressEvent
public void suppressEvent()
-
sendEvent
public void sendEvent()
-
getResult
public ReviewerOp.Result getResult()
-
updateChange
public boolean updateChange(ChangeContext ctx) throws RestApiException, IOException, PermissionBackendException
Description copied from interface:BatchUpdateOp
Override this method to modify a change.- Specified by:
updateChange
in interfaceBatchUpdateOp
- Parameters:
ctx
- context- Returns:
- whether anything was changed that might require a write to the metadata storage.
- Throws:
RestApiException
IOException
PermissionBackendException
-
-