Class LegacyChangeNoteWrite


  • public class LegacyChangeNoteWrite
    extends Object
    • Constructor Detail

      • LegacyChangeNoteWrite

        @Inject
        public LegacyChangeNoteWrite​(org.eclipse.jgit.lib.PersonIdent serverIdent,
                                     String serverId)
    • Method Detail

      • newIdent

        public org.eclipse.jgit.lib.PersonIdent newIdent​(Account.Id authorId,
                                                         Date when,
                                                         org.eclipse.jgit.lib.PersonIdent serverIdent)
      • getServerId

        public String getServerId()
      • buildNote

        public void buildNote​(com.google.common.collect.ListMultimap<Integer,​Comment> comments,
                              OutputStream out)
        Build a note that contains the metadata for and the contents of all of the comments in the given comments.
        Parameters:
        comments - Comments to be written to the output stream, keyed by patch set ID; multiple patch sets are allowed since base revisions may be shared across patch sets. All of the comments must share the same RevId, and all the comments for a given patch set must have the same side.
        out - output stream to write to.