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.OrmException
public PatchSet get(ReviewDb db, ChangeNotes notes, PatchSet.Id psId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.common.collect.ImmutableCollection<PatchSet> byChange(ReviewDb db, ChangeNotes notes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.common.collect.ImmutableMap<PatchSet.Id,PatchSet> byChangeAsMap(ReviewDb db, ChangeNotes notes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public 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.OrmException
public 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.OrmException
java.io.IOException
public void publish(ReviewDb db, ChangeUpdate update, PatchSet ps) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public 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.OrmException
public void checkPatchSetNotLocked(ChangeNotes notes) throws com.google.gwtorm.server.OrmException, java.io.IOException, ResourceConflictException
com.google.gwtorm.server.OrmException
java.io.IOException
ResourceConflictException
public boolean isPatchSetLocked(ChangeNotes notes) throws com.google.gwtorm.server.OrmException, java.io.IOException
com.google.gwtorm.server.OrmException
java.io.IOException
public org.eclipse.jgit.revwalk.RevCommit getRevCommit(Project.NameKey project, PatchSet patchSet) throws java.io.IOException
java.io.IOException