Interface RepoOnlyOp

All Known Subinterfaces:
BatchUpdateOp, InsertChangeOp
All Known Implementing Classes:
AbandonOp, AddReviewersOp, AddToAttentionSetOp, AttentionSetUnchangedOp, ChangeInserter, DeleteChangeOp, DeleteReviewerByEmailOp, DeleteReviewerOp, DeleteVoteOp, GitlinkOp, MergedByPushOp, PatchSetInserter, PostReviewOp, PublishCommentsOp, RebaseChangeOp, RemoveFromAttentionSetOp, ResetCherryPickOp, ReviewerOp, SetCherryPickOp, SetCustomKeyedValuesOp, SetHashtagsOp, SetPrivateOp, SetTopicOp, StoreSubmitRequirementsOp, WorkInProgressOp

public interface RepoOnlyOp
Base interface for operations performed as part of a BatchUpdate.

Operations that implement this type only touch the repository; they cannot touch change storage, nor are they even associated with a change ID. To modify a change, implement BatchUpdateOp instead.

  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Override this method to do something after the update e.g.
    default void
    Override this method to update the repo.
  • Method Details

    • updateRepo

      default void updateRepo(RepoContext ctx) throws Exception
      Override this method to update the repo.
      Parameters:
      ctx - context
      Throws:
      Exception
    • postUpdate

      default void postUpdate(PostUpdateContext ctx) throws Exception
      Override this method to do something after the update e.g. send email or run hooks
      Parameters:
      ctx - context
      Throws:
      Exception