public class ChangeData
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ChangeData.ChangedLines |
static interface |
ChangeData.Factory |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.PatchSetApproval> |
approvals() |
void |
cacheFromSource(ChangeDataSource s) |
com.google.gerrit.reviewdb.client.Change |
change() |
ChangeControl |
changeControl() |
ChangeData.ChangedLines |
changedLines() |
java.util.Collection<com.google.gerrit.reviewdb.client.PatchLineComment> |
comments() |
java.util.List<org.eclipse.jgit.revwalk.FooterLine> |
commitFooters() |
java.lang.String |
commitMessage() |
java.util.List<com.google.gerrit.reviewdb.client.PatchSetApproval> |
currentApprovals() |
java.util.List<java.lang.String> |
currentFilePaths() |
com.google.gerrit.reviewdb.client.PatchSet |
currentPatchSet() |
static void |
ensureAllPatchSetsLoaded(java.lang.Iterable<ChangeData> changes) |
static void |
ensureChangeLoaded(java.lang.Iterable<ChangeData> changes) |
static void |
ensureCurrentApprovalsLoaded(java.lang.Iterable<ChangeData> changes) |
static void |
ensureCurrentPatchSetLoaded(java.lang.Iterable<ChangeData> changes) |
java.util.List<java.lang.String> |
filePaths(com.google.gerrit.reviewdb.client.PatchSet ps) |
com.google.gerrit.reviewdb.client.Change.Id |
getId() |
java.util.List<com.google.gerrit.common.data.SubmitRecord> |
getSubmitRecords() |
boolean |
hasChangeControl() |
boolean |
isFromSource(ChangeDataSource s) |
java.util.List<com.google.gerrit.reviewdb.client.ChangeMessage> |
messages() |
ChangeNotes |
notes() |
com.google.gerrit.reviewdb.client.PatchSet |
patch(com.google.gerrit.reviewdb.client.PatchSet.Id psId) |
java.util.Collection<com.google.gerrit.reviewdb.client.PatchSet> |
patches() |
com.google.common.collect.SetMultimap<ReviewerState,com.google.gerrit.reviewdb.client.Account.Id> |
reviewers() |
void |
setChangedLines(int insertions,
int deletions) |
void |
setCurrentApprovals(java.util.List<com.google.gerrit.reviewdb.client.PatchSetApproval> approvals) |
void |
setCurrentFilePaths(java.util.List<java.lang.String> filePaths) |
void |
setSubmitRecords(java.util.List<com.google.gerrit.common.data.SubmitRecord> records) |
java.lang.String |
toString() |
public static void ensureChangeLoaded(java.lang.Iterable<ChangeData> changes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public static void ensureAllPatchSetsLoaded(java.lang.Iterable<ChangeData> changes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public static void ensureCurrentPatchSetLoaded(java.lang.Iterable<ChangeData> changes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public static void ensureCurrentApprovalsLoaded(java.lang.Iterable<ChangeData> changes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public boolean isFromSource(ChangeDataSource s)
public void cacheFromSource(ChangeDataSource s)
public void setCurrentFilePaths(java.util.List<java.lang.String> filePaths) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<java.lang.String> currentFilePaths() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<java.lang.String> filePaths(com.google.gerrit.reviewdb.client.PatchSet ps) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public ChangeData.ChangedLines changedLines() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public void setChangedLines(int insertions, int deletions)
public com.google.gerrit.reviewdb.client.Change.Id getId()
public boolean hasChangeControl()
public ChangeControl changeControl() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.gerrit.reviewdb.client.Change change() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public ChangeNotes notes() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.gerrit.reviewdb.client.PatchSet currentPatchSet() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<com.google.gerrit.reviewdb.client.PatchSetApproval> currentApprovals() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public void setCurrentApprovals(java.util.List<com.google.gerrit.reviewdb.client.PatchSetApproval> approvals)
public java.lang.String commitMessage() throws NoSuchChangeException, java.io.IOException, com.google.gwtorm.server.OrmException
NoSuchChangeException
java.io.IOException
com.google.gwtorm.server.OrmException
public java.util.List<org.eclipse.jgit.revwalk.FooterLine> commitFooters() throws NoSuchChangeException, java.io.IOException, com.google.gwtorm.server.OrmException
NoSuchChangeException
java.io.IOException
com.google.gwtorm.server.OrmException
public java.util.Collection<com.google.gerrit.reviewdb.client.PatchSet> patches() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
- an error occurred reading the database.public com.google.gerrit.reviewdb.client.PatchSet patch(com.google.gerrit.reviewdb.client.PatchSet.Id psId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
- an error occurred reading the database.public com.google.common.collect.ListMultimap<com.google.gerrit.reviewdb.client.PatchSet.Id,com.google.gerrit.reviewdb.client.PatchSetApproval> approvals() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
- an error occurred reading the database.public com.google.common.collect.SetMultimap<ReviewerState,com.google.gerrit.reviewdb.client.Account.Id> reviewers() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.Collection<com.google.gerrit.reviewdb.client.PatchLineComment> comments() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<com.google.gerrit.reviewdb.client.ChangeMessage> messages() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public void setSubmitRecords(java.util.List<com.google.gerrit.common.data.SubmitRecord> records)
public java.util.List<com.google.gerrit.common.data.SubmitRecord> getSubmitRecords()
public java.lang.String toString()
toString
in class java.lang.Object