public class ReplaceOp extends java.lang.Object implements BatchUpdateOp
| Modifier and Type | Class and Description |
|---|---|
static interface |
ReplaceOp.Factory |
| Modifier and Type | Method and Description |
|---|---|
Change |
getChange() |
PatchSet |
getPatchSet() |
java.lang.String |
getRejectMessage() |
void |
postUpdate(Context ctx)
Override this method to do something after the update e.g.
|
ReplaceOp |
setRequestScopePropagator(RequestScopePropagator requestScopePropagator) |
ReplaceOp |
setUpdateRef(boolean updateRef) |
boolean |
updateChange(ChangeContext ctx)
Override this method to modify a change.
|
void |
updateRepo(RepoContext ctx)
Override this method to update the repo.
|
public void updateRepo(RepoContext ctx) throws java.lang.Exception
RepoOnlyOpupdateRepo in interface RepoOnlyOpctx - contextjava.lang.Exceptionpublic boolean updateChange(ChangeContext ctx) throws RestApiException, com.google.gwtorm.server.OrmException, java.io.IOException
BatchUpdateOpupdateChange in interface BatchUpdateOpctx - contextRestApiExceptioncom.google.gwtorm.server.OrmExceptionjava.io.IOExceptionpublic void postUpdate(Context ctx) throws java.lang.Exception
RepoOnlyOppostUpdate in interface RepoOnlyOpctx - contextjava.lang.Exceptionpublic PatchSet getPatchSet()
public Change getChange()
public java.lang.String getRejectMessage()
public ReplaceOp setUpdateRef(boolean updateRef)
public ReplaceOp setRequestScopePropagator(RequestScopePropagator requestScopePropagator)