Class PostReviewCopyApprovalsOp
- java.lang.Object
-
- com.google.gerrit.server.restapi.change.PostReviewCopyApprovalsOp
-
- All Implemented Interfaces:
BatchUpdateOp
,RepoOnlyOp
public class PostReviewCopyApprovalsOp extends Object implements BatchUpdateOp
Batch update operation that copy approvals that have been newly applied on outdated patch sets to the follow-up patch sets if they are copyable and no non-copied approvals prevent the copying.Must be invoked after the batch update operation which applied new approvals on outdated patch sets (e.g. after
PostReviewOp
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
updateChange
public boolean updateChange(ChangeContext ctx) throws IOException
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:
IOException
-
-