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() |
static java.util.List<com.google.gerrit.reviewdb.client.Change> |
asChanges(java.util.List<ChangeData> changeDatas) |
static java.util.Map<com.google.gerrit.reviewdb.client.Change.Id,ChangeData> |
asMap(java.util.List<ChangeData> changes) |
void |
cacheFromSource(ChangeDataSource s) |
com.google.gerrit.reviewdb.client.Change |
change() |
ChangeControl |
changeControl() |
ChangeData.ChangedLines |
changedLines() |
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() |
com.google.gerrit.reviewdb.server.ReviewDb |
db() |
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.lang.Boolean |
isMergeable() |
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() |
java.util.Collection<com.google.gerrit.reviewdb.client.PatchLineComment> |
publishedComments() |
com.google.gerrit.reviewdb.client.Change |
reloadChange() |
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 |
setMergeable(boolean mergeable) |
void |
setSubmitRecords(java.util.List<com.google.gerrit.common.data.SubmitRecord> records) |
java.lang.String |
toString() |
java.util.Collection<com.google.gerrit.reviewdb.client.PatchSet> |
visiblePatches() |
public static java.util.List<com.google.gerrit.reviewdb.client.Change> asChanges(java.util.List<ChangeData> changeDatas) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public static java.util.Map<com.google.gerrit.reviewdb.client.Change.Id,ChangeData> asMap(java.util.List<ChangeData> changes)
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 com.google.gerrit.reviewdb.server.ReviewDb db()
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 com.google.gerrit.reviewdb.client.Change reloadChange() 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 java.io.IOException, com.google.gwtorm.server.OrmException
java.io.IOException
com.google.gwtorm.server.OrmException
public java.util.List<org.eclipse.jgit.revwalk.FooterLine> commitFooters() throws java.io.IOException, com.google.gwtorm.server.OrmException
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 java.util.Collection<com.google.gerrit.reviewdb.client.PatchSet> visiblePatches() 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> publishedComments() 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 void setMergeable(boolean mergeable)
public java.lang.Boolean isMergeable() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.lang.String toString()
toString
in class java.lang.Object