public class ChangeNotes extends VersionedMetaData
Change
based on the log of its notes branch.Modifier and Type | Class and Description |
---|---|
static class |
ChangeNotes.Factory |
VersionedMetaData.BatchMetaDataUpdate
inserter, newTree, reader
Modifier and Type | Method and Description |
---|---|
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.gerrit.reviewdb.client.Change.Id |
getChangeId() |
protected java.lang.String |
getRefName() |
com.google.common.collect.ImmutableSetMultimap<ReviewerState,com.google.gerrit.reviewdb.client.Account.Id> |
getReviewers() |
com.google.common.collect.ImmutableList<com.google.gerrit.common.data.SubmitRecord> |
getSubmitRecords() |
ChangeNotes |
load() |
protected void |
onLoad()
Set up the metadata, parsing any state from the loaded revision.
|
protected boolean |
onSave(org.eclipse.jgit.lib.CommitBuilder commit)
Save any changes to the metadata in a commit.
|
commit, commitToNewRef, getObjectId, getRevision, load, load, load, load, openUpdate, readConfig, readFile, readTree, readUTF8, saveConfig, saveFile, saveUTF8, set, set, set
public ChangeNotes load() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.gerrit.reviewdb.client.Change.Id getChangeId()
public com.google.gerrit.reviewdb.client.Change getChange()
public com.google.common.collect.ImmutableListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.PatchSetApproval> getApprovals()
public com.google.common.collect.ImmutableSetMultimap<ReviewerState,com.google.gerrit.reviewdb.client.Account.Id> getReviewers()
public com.google.common.collect.ImmutableList<com.google.gerrit.common.data.SubmitRecord> getSubmitRecords()
protected java.lang.String getRefName()
getRefName
in class VersionedMetaData
protected void onLoad() throws java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
VersionedMetaData
onLoad
in class VersionedMetaData
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
protected boolean onSave(org.eclipse.jgit.lib.CommitBuilder commit)
VersionedMetaData
onSave
in class VersionedMetaData