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, autoRebuild, primaryStorage
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 java.lang.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 AbstractChangeNotes.LoadHandle |
openHandle(org.eclipse.jgit.lib.Repository repo)
Open a handle for reading this entity from a repository.
|
protected org.eclipse.jgit.lib.ObjectId |
readRef(org.eclipse.jgit.lib.Repository repo) |
getChangeId, getRevision, load, loadRevision, openHandle, reload, self
public Account.Id getAuthor()
public boolean containsComment(Comment c)
protected java.lang.String getRefName()
getRefName
in class AbstractChangeNotes<DraftCommentNotes>
protected org.eclipse.jgit.lib.ObjectId readRef(org.eclipse.jgit.lib.Repository repo) throws java.io.IOException
readRef
in class AbstractChangeNotes<DraftCommentNotes>
java.io.IOException
protected void onLoad(AbstractChangeNotes.LoadHandle handle) throws java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
AbstractChangeNotes
onLoad
in class AbstractChangeNotes<DraftCommentNotes>
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
protected void loadDefaults()
AbstractChangeNotes
loadDefaults
in class AbstractChangeNotes<DraftCommentNotes>
public Project.NameKey getProjectName()
getProjectName
in class AbstractChangeNotes<DraftCommentNotes>
protected AbstractChangeNotes.LoadHandle openHandle(org.eclipse.jgit.lib.Repository repo) throws NoSuchChangeException, java.io.IOException
AbstractChangeNotes
Implementations may override this method to provide auto-rebuilding behavior.
openHandle
in class AbstractChangeNotes<DraftCommentNotes>
repo
- open repository.NoSuchChangeException
- change does not exist.java.io.IOException
- a repo-level error occurred.