public class ReplaceOp extends Object implements BatchUpdateOp
| Modifier and Type | Class and Description |
|---|---|
static interface |
ReplaceOp.Factory |
| Modifier and Type | Method and Description |
|---|---|
Change |
getChange() |
PatchSet |
getPatchSet() |
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 Exception
RepoOnlyOpupdateRepo in interface RepoOnlyOpctx - contextExceptionpublic boolean updateChange(ChangeContext ctx) throws RestApiException, com.google.gwtorm.server.OrmException, IOException
BatchUpdateOpupdateChange in interface BatchUpdateOpctx - contextRestApiExceptioncom.google.gwtorm.server.OrmExceptionIOExceptionpublic void postUpdate(Context ctx) throws Exception
RepoOnlyOppostUpdate in interface RepoOnlyOpctx - contextExceptionpublic PatchSet getPatchSet()
public Change getChange()
public String getRejectMessage()
public ReplaceOp setUpdateRef(boolean updateRef)
public ReplaceOp setRequestScopePropagator(RequestScopePropagator requestScopePropagator)