Package com.google.gerrit.server.change
Class WorkInProgressOp
- java.lang.Object
-
- com.google.gerrit.server.change.WorkInProgressOp
-
- All Implemented Interfaces:
BatchUpdateOp
,RepoOnlyOp
public class WorkInProgressOp extends Object implements BatchUpdateOp
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
WorkInProgressOp.Factory
static class
WorkInProgressOp.Input
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
checkPermissions(PermissionBackend permissionBackend, CurrentUser user, Change change, ProjectControl projectControl)
void
postUpdate(Context ctx)
Override this method to do something after the update e.g.boolean
updateChange(ChangeContext ctx)
Override this method to modify a change.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.gerrit.server.update.RepoOnlyOp
updateRepo
-
-
-
-
Method Detail
-
checkPermissions
public static void checkPermissions(PermissionBackend permissionBackend, CurrentUser user, Change change, ProjectControl projectControl) throws PermissionBackendException, AuthException
-
updateChange
public boolean updateChange(ChangeContext ctx) throws com.google.gwtorm.server.OrmException
Description copied from interface:BatchUpdateOp
Override this method to modify a change.- Specified by:
updateChange
in interfaceBatchUpdateOp
- Parameters:
ctx
- context- Returns:
- whether anything was changed that might require a write to the metadata storage.
- Throws:
com.google.gwtorm.server.OrmException
-
postUpdate
public void postUpdate(Context ctx)
Description copied from interface:RepoOnlyOp
Override this method to do something after the update e.g. send email or run hooks- Specified by:
postUpdate
in interfaceRepoOnlyOp
- Parameters:
ctx
- context
-
-