public class ChangeData extends 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() |
Collection<com.google.gerrit.reviewdb.client.PatchLineComment> |
comments() |
List<org.eclipse.jgit.revwalk.FooterLine> |
commitFooters() |
String |
commitMessage() |
List<com.google.gerrit.reviewdb.client.PatchSetApproval> |
currentApprovals() |
List<String> |
currentFilePaths() |
com.google.gerrit.reviewdb.client.PatchSet |
currentPatchSet() |
static void |
ensureAllPatchSetsLoaded(Iterable<ChangeData> changes) |
static void |
ensureChangeLoaded(Iterable<ChangeData> changes) |
static void |
ensureCurrentApprovalsLoaded(Iterable<ChangeData> changes) |
static void |
ensureCurrentPatchSetLoaded(Iterable<ChangeData> changes) |
com.google.gerrit.reviewdb.client.Change.Id |
getId() |
List<com.google.gerrit.common.data.SubmitRecord> |
getSubmitRecords() |
boolean |
hasChangeControl() |
boolean |
isFromSource(ChangeDataSource s) |
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) |
Collection<com.google.gerrit.reviewdb.client.PatchSet> |
patches() |
com.google.common.collect.SetMultimap<ReviewerState,com.google.gerrit.reviewdb.client.Account.Id> |
reviewers() |
void |
setCurrentApprovals(List<com.google.gerrit.reviewdb.client.PatchSetApproval> approvals) |
void |
setCurrentFilePaths(List<String> filePaths) |
void |
setSubmitRecords(List<com.google.gerrit.common.data.SubmitRecord> records) |
String |
toString() |
public static void ensureChangeLoaded(Iterable<ChangeData> changes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public static void ensureAllPatchSetsLoaded(Iterable<ChangeData> changes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public static void ensureCurrentPatchSetLoaded(Iterable<ChangeData> changes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public static void ensureCurrentApprovalsLoaded(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 List<String> currentFilePaths() 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 com.google.gerrit.reviewdb.client.Change.Id getId()
public boolean hasChangeControl()
public ChangeControl changeControl() throws NoSuchChangeException, com.google.gwtorm.server.OrmException
NoSuchChangeException
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 List<com.google.gerrit.reviewdb.client.PatchSetApproval> currentApprovals() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public void setCurrentApprovals(List<com.google.gerrit.reviewdb.client.PatchSetApproval> approvals)
public String commitMessage() throws NoSuchChangeException, IOException, com.google.gwtorm.server.OrmException
NoSuchChangeException
IOException
com.google.gwtorm.server.OrmException
public List<org.eclipse.jgit.revwalk.FooterLine> commitFooters() throws NoSuchChangeException, IOException, com.google.gwtorm.server.OrmException
NoSuchChangeException
IOException
com.google.gwtorm.server.OrmException
public 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 Collection<com.google.gerrit.reviewdb.client.PatchLineComment> comments() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<com.google.gerrit.reviewdb.client.ChangeMessage> messages() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public void setSubmitRecords(List<com.google.gerrit.common.data.SubmitRecord> records)
public List<com.google.gerrit.common.data.SubmitRecord> getSubmitRecords()