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<ChangeMessage> |
MESSAGE_BY_TIME |
args
Constructor and Description |
---|
ChangeNotes(AbstractChangeNotes.Args args,
Change change,
boolean shouldExist,
RefCache refs) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsComment(Comment c) |
boolean |
containsCommentPublished(Comment c) |
com.google.common.collect.ImmutableList<Account.Id> |
getAllPastReviewers() |
com.google.common.collect.ImmutableListMultimap<PatchSet.Id,PatchSetApproval> |
getApprovals() |
Change |
getChange() |
com.google.common.collect.ImmutableList<ChangeMessage> |
getChangeMessages() |
com.google.common.collect.ImmutableSet<Comment.Key> |
getCommentKeys() |
com.google.common.collect.ImmutableListMultimap<RevId,Comment> |
getComments() |
PatchSet |
getCurrentPatchSet() |
com.google.common.collect.ImmutableListMultimap<RevId,Comment> |
getDraftComments(Account.Id author) |
com.google.common.collect.ImmutableListMultimap<RevId,Comment> |
getDraftComments(Account.Id author,
org.eclipse.jgit.lib.Ref ref) |
com.google.common.collect.ImmutableSet<java.lang.String> |
getHashtags() |
org.eclipse.jgit.lib.ObjectId |
getMetaId() |
com.google.common.collect.ImmutableSet<Account.Id> |
getPastAssignees() |
com.google.common.collect.ImmutableSortedMap<PatchSet.Id,PatchSet> |
getPatchSets() |
ReviewerSet |
getPendingReviewers() |
ReviewerByEmailSet |
getPendingReviewersByEmail() |
Project.NameKey |
getProjectName() |
java.lang.String |
getRefName() |
ReviewerSet |
getReviewers() |
ReviewerByEmailSet |
getReviewersByEmail() |
com.google.common.collect.ImmutableList<ReviewerStatusUpdate> |
getReviewerUpdates() |
RobotCommentNotes |
getRobotCommentNotes() |
com.google.common.collect.ImmutableListMultimap<RevId,RobotComment> |
getRobotComments() |
com.google.common.collect.ImmutableList<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.
|
static org.eclipse.jgit.errors.ConfigInvalidException |
parseException(Change.Id changeId,
java.lang.String fmt,
java.lang.Object... args) |
protected org.eclipse.jgit.lib.ObjectId |
readRef(org.eclipse.jgit.lib.Repository repo) |
getChangeId, getRevision, load, loadRevision, openHandle, openHandle, reload, self
public static final com.google.common.collect.Ordering<ChangeMessage> MESSAGE_BY_TIME
public ChangeNotes(AbstractChangeNotes.Args args, Change change, boolean shouldExist, RefCache refs)
public static org.eclipse.jgit.errors.ConfigInvalidException parseException(Change.Id changeId, java.lang.String fmt, java.lang.Object... args)
public Change getChange()
public org.eclipse.jgit.lib.ObjectId getMetaId()
public com.google.common.collect.ImmutableSortedMap<PatchSet.Id,PatchSet> getPatchSets()
public com.google.common.collect.ImmutableListMultimap<PatchSet.Id,PatchSetApproval> getApprovals()
public ReviewerSet getReviewers()
public ReviewerByEmailSet getReviewersByEmail()
public ReviewerSet getPendingReviewers()
public ReviewerByEmailSet getPendingReviewersByEmail()
public com.google.common.collect.ImmutableList<ReviewerStatusUpdate> getReviewerUpdates()
public com.google.common.collect.ImmutableSet<Account.Id> getPastAssignees()
public com.google.common.collect.ImmutableSet<java.lang.String> getHashtags()
public com.google.common.collect.ImmutableList<Account.Id> getAllPastReviewers()
public com.google.common.collect.ImmutableList<SubmitRecord> getSubmitRecords()
public com.google.common.collect.ImmutableList<ChangeMessage> getChangeMessages()
public com.google.common.collect.ImmutableListMultimap<RevId,Comment> getComments()
public com.google.common.collect.ImmutableSet<Comment.Key> getCommentKeys()
public com.google.common.collect.ImmutableListMultimap<RevId,Comment> getDraftComments(Account.Id author)
public com.google.common.collect.ImmutableListMultimap<RevId,Comment> getDraftComments(Account.Id author, org.eclipse.jgit.lib.Ref ref)
public com.google.common.collect.ImmutableListMultimap<RevId,RobotComment> getRobotComments()
public RobotCommentNotes getRobotCommentNotes()
public boolean containsComment(Comment c)
public boolean containsCommentPublished(Comment c)
public java.lang.String getRefName()
getRefName
in class AbstractChangeNotes<ChangeNotes>
public PatchSet getCurrentPatchSet()
protected void onLoad(AbstractChangeNotes.LoadHandle handle) throws NoSuchChangeException, java.io.IOException
AbstractChangeNotes
onLoad
in class AbstractChangeNotes<ChangeNotes>
NoSuchChangeException
java.io.IOException
protected void loadDefaults()
AbstractChangeNotes
loadDefaults
in class AbstractChangeNotes<ChangeNotes>
public Project.NameKey getProjectName()
getProjectName
in class AbstractChangeNotes<ChangeNotes>
protected org.eclipse.jgit.lib.ObjectId readRef(org.eclipse.jgit.lib.Repository repo) throws java.io.IOException
readRef
in class AbstractChangeNotes<ChangeNotes>
java.io.IOException