Class 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 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 interface BatchUpdateOp
        Parameters:
        ctx - context
        Returns:
        whether anything was changed that might require a write to the metadata storage.
        Throws:
        IOException