public class PatchSetUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableCollection<PatchSet> |
byChange(ReviewDb db,
ChangeNotes notes) |
com.google.common.collect.ImmutableMap<PatchSet.Id,PatchSet> |
byChangeAsMap(ReviewDb db,
ChangeNotes notes) |
void |
checkPatchSetNotLocked(ChangeNotes notes)
Check if the current patch set of the change is locked.
|
PatchSet |
current(ReviewDb db,
ChangeNotes notes) |
PatchSet |
get(ReviewDb db,
ChangeNotes notes,
PatchSet.Id psId) |
com.google.common.collect.ImmutableMap<PatchSet.Id,PatchSet> |
getAsMap(ReviewDb db,
ChangeNotes notes,
java.util.Set<PatchSet.Id> patchSetIds) |
org.eclipse.jgit.revwalk.RevCommit |
getRevCommit(Project.NameKey project,
PatchSet patchSet)
Returns the commit for the given project at the given patchset revision
|
PatchSet |
insert(ReviewDb db,
org.eclipse.jgit.revwalk.RevWalk rw,
ChangeUpdate update,
PatchSet.Id psId,
org.eclipse.jgit.lib.ObjectId commit,
java.util.List<java.lang.String> groups,
java.lang.String pushCertificate,
java.lang.String description) |
boolean |
isPatchSetLocked(ChangeNotes notes)
Is the current patch set locked against state changes?
|
void |
publish(ReviewDb db,
ChangeUpdate update,
PatchSet ps) |
void |
setGroups(ReviewDb db,
ChangeUpdate update,
PatchSet ps,
java.util.List<java.lang.String> groups) |
public PatchSet current(ReviewDb db, ChangeNotes notes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmExceptionpublic PatchSet get(ReviewDb db, ChangeNotes notes, PatchSet.Id psId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmExceptionpublic com.google.common.collect.ImmutableCollection<PatchSet> byChange(ReviewDb db, ChangeNotes notes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmExceptionpublic com.google.common.collect.ImmutableMap<PatchSet.Id,PatchSet> byChangeAsMap(ReviewDb db, ChangeNotes notes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmExceptionpublic com.google.common.collect.ImmutableMap<PatchSet.Id,PatchSet> getAsMap(ReviewDb db, ChangeNotes notes, java.util.Set<PatchSet.Id> patchSetIds) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmExceptionpublic PatchSet insert(ReviewDb db, org.eclipse.jgit.revwalk.RevWalk rw, ChangeUpdate update, PatchSet.Id psId, org.eclipse.jgit.lib.ObjectId commit, java.util.List<java.lang.String> groups, java.lang.String pushCertificate, java.lang.String description) throws com.google.gwtorm.server.OrmException, java.io.IOException
com.google.gwtorm.server.OrmExceptionjava.io.IOExceptionpublic void publish(ReviewDb db, ChangeUpdate update, PatchSet ps) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmExceptionpublic void setGroups(ReviewDb db, ChangeUpdate update, PatchSet ps, java.util.List<java.lang.String> groups) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmExceptionpublic void checkPatchSetNotLocked(ChangeNotes notes) throws com.google.gwtorm.server.OrmException, java.io.IOException, ResourceConflictException
com.google.gwtorm.server.OrmExceptionjava.io.IOExceptionResourceConflictExceptionpublic boolean isPatchSetLocked(ChangeNotes notes) throws com.google.gwtorm.server.OrmException, java.io.IOException
com.google.gwtorm.server.OrmExceptionjava.io.IOExceptionpublic org.eclipse.jgit.revwalk.RevCommit getRevCommit(Project.NameKey project, PatchSet patchSet) throws java.io.IOException
java.io.IOException