public class ChangeNotes extends AbstractChangeNotes<ChangeNotes>
Change
based on the log of its notes branch.Modifier and Type | Class and Description |
---|---|
static class |
ChangeNotes.Factory |
AbstractChangeNotes.Args, AbstractChangeNotes.LoadHandle
Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.Ordering<com.google.gerrit.reviewdb.client.ChangeMessage> |
MESSAGE_BY_TIME |
args, autoRebuild
Constructor and Description |
---|
ChangeNotes(AbstractChangeNotes.Args args,
com.google.gerrit.reviewdb.client.Change change) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsComment(com.google.gerrit.reviewdb.client.PatchLineComment c) |
boolean |
containsCommentPublished(com.google.gerrit.reviewdb.client.PatchLineComment c) |
com.google.common.collect.ImmutableList<com.google.gerrit.reviewdb.client.Account.Id> |
getAllPastReviewers() |
com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.PatchSetApproval> |
getApprovals() |
com.google.gerrit.reviewdb.client.Change |
getChange() |
com.google.common.collect.ImmutableList<com.google.gerrit.reviewdb.client.ChangeMessage> |
getChangeMessages() |
com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.ChangeMessage> |
getChangeMessagesByPatchSet() |
com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.RevId,com.google.gerrit.reviewdb.client.PatchLineComment> |
getComments() |
com.google.gerrit.reviewdb.client.PatchSet |
getCurrentPatchSet() |
com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.RevId,com.google.gerrit.reviewdb.client.PatchLineComment> |
getDraftComments(com.google.gerrit.reviewdb.client.Account.Id author) |
com.google.common.collect.ImmutableSet<String> |
getHashtags() |
com.google.common.collect.ImmutableMap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.PatchSet> |
getPatchSets() |
com.google.gerrit.reviewdb.client.Project.NameKey |
getProjectName() |
protected String |
getRefName() |
ReviewerSet |
getReviewers() |
com.google.common.collect.ImmutableList<ReviewerStatusUpdate> |
getReviewerUpdates() |
com.google.common.collect.ImmutableList<com.google.gerrit.common.data.SubmitRecord> |
getSubmitRecords() |
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) |
static org.eclipse.jgit.errors.ConfigInvalidException |
parseException(com.google.gerrit.reviewdb.client.Change.Id changeId,
String fmt,
Object... args) |
protected org.eclipse.jgit.lib.ObjectId |
readRef(org.eclipse.jgit.lib.Repository repo) |
getChangeId, getRevision, load, loadRevision, openHandle, reload, self
public static final com.google.common.collect.Ordering<com.google.gerrit.reviewdb.client.ChangeMessage> MESSAGE_BY_TIME
public ChangeNotes(AbstractChangeNotes.Args args, com.google.gerrit.reviewdb.client.Change change)
public static org.eclipse.jgit.errors.ConfigInvalidException parseException(com.google.gerrit.reviewdb.client.Change.Id changeId, String fmt, Object... args)
public com.google.gerrit.reviewdb.client.Change getChange()
public com.google.common.collect.ImmutableMap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.PatchSet> getPatchSets()
public com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.PatchSetApproval> getApprovals()
public ReviewerSet getReviewers()
public com.google.common.collect.ImmutableList<ReviewerStatusUpdate> getReviewerUpdates()
public com.google.common.collect.ImmutableSet<String> getHashtags()
public com.google.common.collect.ImmutableList<com.google.gerrit.reviewdb.client.Account.Id> getAllPastReviewers()
public com.google.common.collect.ImmutableList<com.google.gerrit.common.data.SubmitRecord> getSubmitRecords()
public com.google.common.collect.ImmutableList<com.google.gerrit.reviewdb.client.ChangeMessage> getChangeMessages()
public com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.ChangeMessage> getChangeMessagesByPatchSet()
public com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.RevId,com.google.gerrit.reviewdb.client.PatchLineComment> getComments()
public com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.RevId,com.google.gerrit.reviewdb.client.PatchLineComment> getDraftComments(com.google.gerrit.reviewdb.client.Account.Id author) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public boolean containsComment(com.google.gerrit.reviewdb.client.PatchLineComment c) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public boolean containsCommentPublished(com.google.gerrit.reviewdb.client.PatchLineComment c)
protected String getRefName()
getRefName
in class AbstractChangeNotes<ChangeNotes>
public com.google.gerrit.reviewdb.client.PatchSet getCurrentPatchSet()
protected void onLoad(AbstractChangeNotes.LoadHandle handle) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
AbstractChangeNotes
onLoad
in class AbstractChangeNotes<ChangeNotes>
IOException
org.eclipse.jgit.errors.ConfigInvalidException
protected void loadDefaults()
AbstractChangeNotes
loadDefaults
in class AbstractChangeNotes<ChangeNotes>
public com.google.gerrit.reviewdb.client.Project.NameKey getProjectName()
getProjectName
in class AbstractChangeNotes<ChangeNotes>
protected org.eclipse.jgit.lib.ObjectId readRef(org.eclipse.jgit.lib.Repository repo) throws IOException
readRef
in class AbstractChangeNotes<ChangeNotes>
IOException
protected AbstractChangeNotes.LoadHandle openHandle(org.eclipse.jgit.lib.Repository repo) throws IOException
openHandle
in class AbstractChangeNotes<ChangeNotes>
IOException