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
migration, repoManager
inserter, 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.Table<com.google.gerrit.reviewdb.client.PatchSet.Id,String,com.google.gerrit.reviewdb.client.PatchLineComment> |
getDraftBaseComments() |
com.google.common.collect.Table<com.google.gerrit.reviewdb.client.PatchSet.Id,String,com.google.gerrit.reviewdb.client.PatchLineComment> |
getDraftPsComments() |
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, self
commit, commitToNewRef, getObjectId, getRevision, load, load, load, load, openUpdate, readConfig, readFile, readTree, readUTF8, saveConfig, saveFile, saveUTF8, set, set, set
public org.eclipse.jgit.notes.NoteMap getNoteMap()
public com.google.gerrit.reviewdb.client.Account.Id getAuthor()
public com.google.common.collect.Table<com.google.gerrit.reviewdb.client.PatchSet.Id,String,com.google.gerrit.reviewdb.client.PatchLineComment> getDraftBaseComments()
public com.google.common.collect.Table<com.google.gerrit.reviewdb.client.PatchSet.Id,String,com.google.gerrit.reviewdb.client.PatchLineComment> getDraftPsComments()
public boolean containsComment(com.google.gerrit.reviewdb.client.PatchLineComment c)
protected String getRefName()
getRefName
in class VersionedMetaData
protected void onLoad() throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
VersionedMetaData
onLoad
in class VersionedMetaData
IOException
org.eclipse.jgit.errors.ConfigInvalidException
protected boolean onSave(org.eclipse.jgit.lib.CommitBuilder commit) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
VersionedMetaData
onSave
in class VersionedMetaData
IOException
org.eclipse.jgit.errors.ConfigInvalidException
protected void loadDefaults()
AbstractChangeNotes
loadDefaults
in class AbstractChangeNotes<DraftCommentNotes>
protected com.google.gerrit.reviewdb.client.Project.NameKey getProjectName()
getProjectName
in class AbstractChangeNotes<DraftCommentNotes>