public class DraftCommentNotes extends AbstractChangeNotes<DraftCommentNotes>
Change based on the log of
its drafts branch.| Modifier and Type | Class and Description |
|---|---|
static class |
DraftCommentNotes.Factory |
VersionedMetaData.BatchMetaDataUpdate, VersionedMetaData.PathInfomigration, repoManagerinserter, newTree, reader| Modifier and Type | Method and Description |
|---|---|
boolean |
containsComment(com.google.gerrit.reviewdb.client.PatchLineComment c) |
com.google.gerrit.reviewdb.client.Account.Id |
getAuthor() |
com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.RevId,com.google.gerrit.reviewdb.client.PatchLineComment> |
getComments() |
org.eclipse.jgit.notes.NoteMap |
getNoteMap() |
protected com.google.gerrit.reviewdb.client.Project.NameKey |
getProjectName() |
protected String |
getRefName() |
protected void |
loadDefaults()
Load default values for any instance variables when notedb is disabled.
|
protected void |
onLoad()
Set up the metadata, parsing any state from the loaded revision.
|
protected boolean |
onSave(org.eclipse.jgit.lib.CommitBuilder commit)
Save any changes to the metadata in a commit.
|
getChangeId, load, loadRevision, selfcommit, commitToNewRef, getObjectId, getPathInfos, getRevision, load, load, load, load, openUpdate, readConfig, readFile, readTree, readUTF8, saveConfig, saveFile, saveUTF8, set, set, setpublic org.eclipse.jgit.notes.NoteMap getNoteMap()
public com.google.gerrit.reviewdb.client.Account.Id getAuthor()
public com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.RevId,com.google.gerrit.reviewdb.client.PatchLineComment> getComments()
public boolean containsComment(com.google.gerrit.reviewdb.client.PatchLineComment c)
protected String getRefName()
getRefName in class VersionedMetaDataprotected void onLoad()
throws IOException,
org.eclipse.jgit.errors.ConfigInvalidException
VersionedMetaDataonLoad in class VersionedMetaDataIOExceptionorg.eclipse.jgit.errors.ConfigInvalidExceptionprotected boolean onSave(org.eclipse.jgit.lib.CommitBuilder commit)
throws IOException,
org.eclipse.jgit.errors.ConfigInvalidException
VersionedMetaDataonSave in class VersionedMetaDataIOExceptionorg.eclipse.jgit.errors.ConfigInvalidExceptionprotected void loadDefaults()
AbstractChangeNotesloadDefaults in class AbstractChangeNotes<DraftCommentNotes>protected com.google.gerrit.reviewdb.client.Project.NameKey getProjectName()
getProjectName in class AbstractChangeNotes<DraftCommentNotes>