Package com.google.gerrit.server
Class PatchSetUtil
- java.lang.Object
- 
- com.google.gerrit.server.PatchSetUtil
 
- 
 public class PatchSetUtil extends Object Utilities for manipulating patch sets.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableCollection<PatchSet>byChange(ChangeNotes notes)com.google.common.collect.ImmutableMap<PatchSet.Id,PatchSet>byChangeAsMap(ChangeNotes notes)voidcheckPatchSetNotLocked(ChangeNotes notes)Check if the current patch set of the change is locked.PatchSetcurrent(ChangeNotes notes)PatchSetget(ChangeNotes notes, PatchSet.Id psId)com.google.common.collect.ImmutableMap<PatchSet.Id,PatchSet>getAsMap(ChangeNotes notes, Set<PatchSet.Id> patchSetIds)org.eclipse.jgit.revwalk.RevCommitgetRevCommit(Project.NameKey project, PatchSet patchSet)Returns the commit for the given project at the given patchset revisionPatchSetinsert(org.eclipse.jgit.revwalk.RevWalk rw, ChangeUpdate update, PatchSet.Id psId, org.eclipse.jgit.lib.ObjectId commit, List<String> groups, String pushCertificate, String description)booleanisPatchSetLocked(ChangeNotes notes)Is the current patch set locked against state changes?
 
- 
- 
- 
Method Detail- 
currentpublic PatchSet current(ChangeNotes notes) 
 - 
getpublic PatchSet get(ChangeNotes notes, PatchSet.Id psId) 
 - 
byChangepublic com.google.common.collect.ImmutableCollection<PatchSet> byChange(ChangeNotes notes) 
 - 
byChangeAsMappublic com.google.common.collect.ImmutableMap<PatchSet.Id,PatchSet> byChangeAsMap(ChangeNotes notes) 
 - 
getAsMappublic com.google.common.collect.ImmutableMap<PatchSet.Id,PatchSet> getAsMap(ChangeNotes notes, Set<PatchSet.Id> patchSetIds) 
 - 
insertpublic PatchSet insert(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 IOException - Throws:
- IOException
 
 - 
checkPatchSetNotLockedpublic void checkPatchSetNotLocked(ChangeNotes notes) throws ResourceConflictException Check if the current patch set of the change is locked.- Throws:
- ResourceConflictException
 
 - 
isPatchSetLockedpublic boolean isPatchSetLocked(ChangeNotes notes) Is the current patch set locked against state changes?
 - 
getRevCommitpublic org.eclipse.jgit.revwalk.RevCommit getRevCommit(Project.NameKey project, PatchSet patchSet) throws IOException Returns the commit for the given project at the given patchset revision- Throws:
- IOException
 
 
- 
 
-