Class SubmitStrategy

    • Method Detail

      • module

        public static com.google.inject.Module module()
      • getUpdatedChanges

        public com.google.common.collect.ImmutableMap<Change.Id,​Change> getUpdatedChanges()
        Returns the updated changed after this submit strategy has been executed.
        Returns:
        the updated changes after this submit strategy has been executed
      • addOps

        public final void addOps​(BatchUpdate bu,
                                 Set<CodeReviewCommit> toMerge)
        Add operations to a batch update that execute this submit strategy.

        Guarantees exactly one op is added to the update for each change in the input set.

        Parameters:
        bu - batch update to add operations to.
        toMerge - the set of submitted commits that should be merged using this submit strategy. Implementations are responsible for ordering of commits, and will not modify the input in place.
      • buildOps

        protected abstract com.google.common.collect.ImmutableList<com.google.gerrit.server.submit.SubmitStrategyOp> buildOps​(Collection<CodeReviewCommit> toMerge)