public class DraftCommentNotes extends AbstractChangeNotes<DraftCommentNotes>
Change
based on the log of its drafts branch.Modifier and Type | Class and Description |
---|---|
static interface |
DraftCommentNotes.Factory |
AbstractChangeNotes.Args, AbstractChangeNotes.LoadHandle
args
Modifier and Type | Method and Description |
---|---|
boolean |
containsComment(Comment c) |
Account.Id |
getAuthor() |
com.google.common.collect.ImmutableListMultimap<RevId,Comment> |
getComments() |
Project.NameKey |
getProjectName() |
protected String |
getRefName() |
protected void |
loadDefaults()
Load default values for any instance variables when NoteDb is disabled.
|
protected void |
onLoad(AbstractChangeNotes.LoadHandle handle)
Set up the metadata, parsing any state from the loaded revision.
|
protected org.eclipse.jgit.lib.ObjectId |
readRef(org.eclipse.jgit.lib.Repository repo) |
getChangeId, getRevision, load, loadRevision, openHandle, openHandle, reload, self
public Account.Id getAuthor()
public boolean containsComment(Comment c)
protected String getRefName()
getRefName
in class AbstractChangeNotes<DraftCommentNotes>
protected org.eclipse.jgit.lib.ObjectId readRef(org.eclipse.jgit.lib.Repository repo) throws IOException
readRef
in class AbstractChangeNotes<DraftCommentNotes>
IOException
protected void onLoad(AbstractChangeNotes.LoadHandle handle) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
AbstractChangeNotes
onLoad
in class AbstractChangeNotes<DraftCommentNotes>
IOException
org.eclipse.jgit.errors.ConfigInvalidException
protected void loadDefaults()
AbstractChangeNotes
loadDefaults
in class AbstractChangeNotes<DraftCommentNotes>
public Project.NameKey getProjectName()
getProjectName
in class AbstractChangeNotes<DraftCommentNotes>