Package com.google.gerrit.server.change
Class AddReviewersOp
- java.lang.Object
-
- com.google.gerrit.server.change.ReviewerOp
-
- com.google.gerrit.server.change.AddReviewersOp
-
- All Implemented Interfaces:
BatchUpdateOp
,RepoOnlyOp
public class AddReviewersOp extends ReviewerOp
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AddReviewersOp.Factory
-
Nested classes/interfaces inherited from class com.google.gerrit.server.change.ReviewerOp
ReviewerOp.Result
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.server.change.ReviewerOp
eventSender, opResult, patchSet, sendEmail, sendEvent
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
postUpdate(PostUpdateContext ctx)
Override this method to do something after the update e.g.boolean
updateChange(ChangeContext ctx)
Override this method to modify a change.-
Methods inherited from class com.google.gerrit.server.change.ReviewerOp
getResult, sendEvent, suppressEmail, suppressEvent
-
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
updateRepo
-
-
-
-
Method Detail
-
updateChange
public boolean updateChange(ChangeContext ctx) throws RestApiException, IOException
Description copied from interface:BatchUpdateOp
Override this method to modify a change.- Specified by:
updateChange
in interfaceBatchUpdateOp
- Overrides:
updateChange
in classReviewerOp
- Parameters:
ctx
- context- Returns:
- whether anything was changed that might require a write to the metadata storage.
- Throws:
RestApiException
IOException
-
postUpdate
public void postUpdate(PostUpdateContext ctx) throws Exception
Description copied from interface:RepoOnlyOp
Override this method to do something after the update e.g. send email or run hooks- Parameters:
ctx
- context- Throws:
Exception
-
-