Package com.google.gerrit.server.notedb
Class DraftCommentNotes
java.lang.Object
com.google.gerrit.server.notedb.AbstractChangeNotes<DraftCommentNotes>
com.google.gerrit.server.notedb.DraftCommentNotes
View of the draft comments for a single
Change based on the log of its drafts branch.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.gerrit.server.notedb.AbstractChangeNotes
AbstractChangeNotes.Args, AbstractChangeNotes.LoadHandle -
Field Summary
Fields inherited from class com.google.gerrit.server.notedb.AbstractChangeNotes
args -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.common.collect.ImmutableList<HumanComment>Returns the NameKey for the project where the notes should be stored, which is not necessarily the same as the change's project.protected StringReturns name of the reference storing this configuration.protected voidLoad default values for any instance variables when NoteDb is disabled.protected voidonLoad(AbstractChangeNotes.LoadHandle handle) Set up the metadata, parsing any state from the loaded revision.protected org.eclipse.jgit.lib.ObjectIdreadRef(org.eclipse.jgit.lib.Repository repo) Methods inherited from class com.google.gerrit.server.notedb.AbstractChangeNotes
getChangeId, getRevision, load, load, loadRevision, openHandle, reload, self
-
Method Details
-
getAuthor
-
getComments
-
containsComment
-
getRefName
Description copied from class:AbstractChangeNotesReturns name of the reference storing this configuration.- Specified by:
getRefNamein classAbstractChangeNotes<DraftCommentNotes>
-
readRef
protected org.eclipse.jgit.lib.ObjectId readRef(org.eclipse.jgit.lib.Repository repo) throws IOException - Overrides:
readRefin classAbstractChangeNotes<DraftCommentNotes>- Throws:
IOException
-
onLoad
protected void onLoad(AbstractChangeNotes.LoadHandle handle) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException Description copied from class:AbstractChangeNotesSet up the metadata, parsing any state from the loaded revision.- Specified by:
onLoadin classAbstractChangeNotes<DraftCommentNotes>- Throws:
IOExceptionorg.eclipse.jgit.errors.ConfigInvalidException
-
loadDefaults
protected void loadDefaults()Description copied from class:AbstractChangeNotesLoad default values for any instance variables when NoteDb is disabled.- Specified by:
loadDefaultsin classAbstractChangeNotes<DraftCommentNotes>
-
getProjectName
Description copied from class:AbstractChangeNotesReturns the NameKey for the project where the notes should be stored, which is not necessarily the same as the change's project.- Specified by:
getProjectNamein classAbstractChangeNotes<DraftCommentNotes>
-