public class PatchSetInserter extends BatchUpdate.Op
Modifier and Type | Class and Description |
---|---|
static interface |
PatchSetInserter.Factory |
Constructor and Description |
---|
PatchSetInserter(ChangeHooks hooks,
com.google.gerrit.reviewdb.server.ReviewDb db,
ApprovalsUtil approvalsUtil,
ApprovalCopier approvalCopier,
ChangeMessagesUtil cmUtil,
PatchSetInfoFactory patchSetInfoFactory,
CommitValidators.Factory commitValidatorsFactory,
ReplacePatchSetSender.Factory replacePatchSetFactory,
RefControl refControl,
com.google.gerrit.reviewdb.client.PatchSet.Id psId,
org.eclipse.jgit.revwalk.RevCommit commit) |
Modifier and Type | Method and Description |
---|---|
com.google.gerrit.reviewdb.client.Change |
getChange() |
com.google.gerrit.reviewdb.client.PatchSet |
getPatchSet() |
com.google.gerrit.reviewdb.client.PatchSet.Id |
getPatchSetId() |
void |
postUpdate(BatchUpdate.Context ctx) |
PatchSetInserter |
setAllowClosed(boolean allowClosed) |
PatchSetInserter |
setDraft(boolean draft) |
PatchSetInserter |
setGroups(java.lang.Iterable<java.lang.String> groups) |
PatchSetInserter |
setMessage(java.lang.String message) |
PatchSetInserter |
setRunHooks(boolean runHooks) |
PatchSetInserter |
setSendMail(boolean sendMail) |
PatchSetInserter |
setSshInfo(SshInfo sshInfo) |
PatchSetInserter |
setUploader(com.google.gerrit.reviewdb.client.Account.Id uploader) |
PatchSetInserter |
setValidatePolicy(CommitValidators.Policy validate) |
void |
updateChange(BatchUpdate.ChangeContext ctx) |
void |
updateRepo(BatchUpdate.RepoContext ctx) |
public PatchSetInserter(ChangeHooks hooks, com.google.gerrit.reviewdb.server.ReviewDb db, ApprovalsUtil approvalsUtil, ApprovalCopier approvalCopier, ChangeMessagesUtil cmUtil, PatchSetInfoFactory patchSetInfoFactory, CommitValidators.Factory commitValidatorsFactory, ReplacePatchSetSender.Factory replacePatchSetFactory, RefControl refControl, com.google.gerrit.reviewdb.client.PatchSet.Id psId, org.eclipse.jgit.revwalk.RevCommit commit)
public com.google.gerrit.reviewdb.client.PatchSet.Id getPatchSetId()
public PatchSetInserter setMessage(java.lang.String message)
public PatchSetInserter setSshInfo(SshInfo sshInfo)
public PatchSetInserter setValidatePolicy(CommitValidators.Policy validate)
public PatchSetInserter setDraft(boolean draft)
public PatchSetInserter setGroups(java.lang.Iterable<java.lang.String> groups)
public PatchSetInserter setRunHooks(boolean runHooks)
public PatchSetInserter setSendMail(boolean sendMail)
public PatchSetInserter setAllowClosed(boolean allowClosed)
public PatchSetInserter setUploader(com.google.gerrit.reviewdb.client.Account.Id uploader)
public com.google.gerrit.reviewdb.client.Change getChange()
public com.google.gerrit.reviewdb.client.PatchSet getPatchSet()
public void updateRepo(BatchUpdate.RepoContext ctx) throws com.google.gerrit.extensions.restapi.ResourceConflictException, java.io.IOException
updateRepo
in class BatchUpdate.Op
com.google.gerrit.extensions.restapi.ResourceConflictException
java.io.IOException
public void updateChange(BatchUpdate.ChangeContext ctx) throws com.google.gwtorm.server.OrmException, InvalidChangeOperationException
updateChange
in class BatchUpdate.Op
com.google.gwtorm.server.OrmException
InvalidChangeOperationException
public void postUpdate(BatchUpdate.Context ctx) throws com.google.gwtorm.server.OrmException
postUpdate
in class BatchUpdate.Op
com.google.gwtorm.server.OrmException