public class PatchSetUtil extends 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) |
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,
Set<PatchSet.Id> patchSetIds) |
PatchSet |
insert(ReviewDb db,
org.eclipse.jgit.revwalk.RevWalk rw,
ChangeUpdate update,
PatchSet.Id psId,
org.eclipse.jgit.lib.ObjectId commit,
List<String> groups,
String pushCertificate,
String description) |
void |
publish(ReviewDb db,
ChangeUpdate update,
PatchSet ps) |
void |
setGroups(ReviewDb db,
ChangeUpdate update,
PatchSet ps,
List<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, 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, List<String> groups, String pushCertificate, String description) throws com.google.gwtorm.server.OrmException, IOException
com.google.gwtorm.server.OrmException
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, List<String> groups) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException