Package com.google.gerrit.server.notedb
Class RobotCommentNotes
- java.lang.Object
-
- com.google.gerrit.server.notedb.AbstractChangeNotes<RobotCommentNotes>
-
- com.google.gerrit.server.notedb.RobotCommentNotes
-
public class RobotCommentNotes extends AbstractChangeNotes<RobotCommentNotes>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RobotCommentNotes.Factory
-
Nested 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsComment(RobotComment c)
com.google.common.collect.ImmutableListMultimap<org.eclipse.jgit.lib.ObjectId,RobotComment>
getComments()
org.eclipse.jgit.lib.ObjectId
getMetaId()
Project.NameKey
getProjectName()
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.-
Methods inherited from class com.google.gerrit.server.notedb.AbstractChangeNotes
getChangeId, getRevision, load, loadRevision, openHandle, openHandle, readRef, reload, self
-
-
-
-
Method Detail
-
getComments
public com.google.common.collect.ImmutableListMultimap<org.eclipse.jgit.lib.ObjectId,RobotComment> getComments()
-
containsComment
public boolean containsComment(RobotComment c)
-
getRefName
public String getRefName()
- Specified by:
getRefName
in classAbstractChangeNotes<RobotCommentNotes>
- Returns:
- name of the reference storing this configuration.
-
getMetaId
public org.eclipse.jgit.lib.ObjectId getMetaId()
-
onLoad
protected void onLoad(AbstractChangeNotes.LoadHandle handle) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
Description copied from class:AbstractChangeNotes
Set up the metadata, parsing any state from the loaded revision.- Specified by:
onLoad
in classAbstractChangeNotes<RobotCommentNotes>
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
loadDefaults
protected void loadDefaults()
Description copied from class:AbstractChangeNotes
Load default values for any instance variables when NoteDb is disabled.- Specified by:
loadDefaults
in classAbstractChangeNotes<RobotCommentNotes>
-
getProjectName
public Project.NameKey getProjectName()
- Specified by:
getProjectName
in classAbstractChangeNotes<RobotCommentNotes>
- Returns:
- the NameKey for the project where the notes should be stored, which is not necessarily the same as the change's project.
-
-