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
RepoOnlyOp
updateRepo
in interface RepoOnlyOp
ctx
- contextException
public boolean updateChange(ChangeContext ctx) throws RestApiException, com.google.gwtorm.server.OrmException, IOException
BatchUpdateOp
updateChange
in interface BatchUpdateOp
ctx
- contextRestApiException
com.google.gwtorm.server.OrmException
IOException
public void postUpdate(Context ctx) throws Exception
RepoOnlyOp
postUpdate
in interface RepoOnlyOp
ctx
- contextException
public PatchSet getPatchSet()
public Change getChange()
public String getRejectMessage()
public ReplaceOp setUpdateRef(boolean updateRef)
public ReplaceOp setRequestScopePropagator(RequestScopePropagator requestScopePropagator)