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