Package com.google.gerrit.server.notedb
Class LegacyChangeNoteWrite
- java.lang.Object
-
- com.google.gerrit.server.notedb.LegacyChangeNoteWrite
-
public class LegacyChangeNoteWrite extends Object
-
-
Constructor Summary
Constructors Constructor Description LegacyChangeNoteWrite(org.eclipse.jgit.lib.PersonIdent serverIdent, String serverId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.String
getServerId()
org.eclipse.jgit.lib.PersonIdent
newIdent(Account.Id authorId, Date when, org.eclipse.jgit.lib.PersonIdent serverIdent)
-
-
-
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.
-
-