Package com.google.gerrit.server.edit
Class ModificationTarget.PatchsetCommit
- java.lang.Object
- 
- com.google.gerrit.server.edit.ModificationTarget.PatchsetCommit
 
- 
- All Implemented Interfaces:
- ModificationTarget
 - Enclosing interface:
- ModificationTarget
 
 public static class ModificationTarget.PatchsetCommit extends Object implements ModificationTarget A specific patchset commit is the target of the modification.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.google.gerrit.server.edit.ModificationTargetModificationTarget.EditCommit, ModificationTarget.PatchsetCommit
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidensureNewEditMayBeBasedOnTarget(Change change)voidensureTargetMayBeModifiedDespiteExistingEdit(ChangeEdit changeEdit)PatchSetgetBasePatchset()Patchset within whose context the modification happens.org.eclipse.jgit.revwalk.RevCommitgetCommit(org.eclipse.jgit.lib.Repository repository)Commit to modify.
 
- 
- 
- 
Method Detail- 
ensureTargetMayBeModifiedDespiteExistingEditpublic void ensureTargetMayBeModifiedDespiteExistingEdit(ChangeEdit changeEdit) throws InvalidChangeOperationException - Specified by:
- ensureTargetMayBeModifiedDespiteExistingEditin interface- ModificationTarget
- Throws:
- InvalidChangeOperationException
 
 - 
ensureNewEditMayBeBasedOnTargetpublic void ensureNewEditMayBeBasedOnTarget(Change change) throws InvalidChangeOperationException - Specified by:
- ensureNewEditMayBeBasedOnTargetin interface- ModificationTarget
- Throws:
- InvalidChangeOperationException
 
 - 
getCommitpublic org.eclipse.jgit.revwalk.RevCommit getCommit(org.eclipse.jgit.lib.Repository repository) throws IOExceptionDescription copied from interface:ModificationTargetCommit to modify.- Specified by:
- getCommitin interface- ModificationTarget
- Throws:
- IOException
 
 - 
getBasePatchsetpublic PatchSet getBasePatchset() Description copied from interface:ModificationTargetPatchset within whose context the modification happens. This also applies to change edits as each change edit is based on a specific patchset.- Specified by:
- getBasePatchsetin interface- ModificationTarget
 
 
- 
 
-