Package com.google.gerrit.server.notedb
Class StoreSubmitRequirementsOp
- java.lang.Object
-
- com.google.gerrit.server.notedb.StoreSubmitRequirementsOp
-
- All Implemented Interfaces:
BatchUpdateOp
,RepoOnlyOp
public class StoreSubmitRequirementsOp extends Object implements BatchUpdateOp
ABatchUpdateOp
that stores the evaluated submit requirements of a change in NoteDb.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
StoreSubmitRequirementsOp.Factory
-
Constructor Summary
Constructors Constructor Description StoreSubmitRequirementsOp(OnStoreSubmitRequirementResultModifier onStoreSubmitRequirementResultModifier, Collection<SubmitRequirementResult> submitRequirementResults, ChangeData changeData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
postUpdate, updateRepo
-
-
-
-
Constructor Detail
-
StoreSubmitRequirementsOp
@Inject public StoreSubmitRequirementsOp(OnStoreSubmitRequirementResultModifier onStoreSubmitRequirementResultModifier, Collection<SubmitRequirementResult> submitRequirementResults, ChangeData changeData)
-
-
Method Detail
-
updateChange
public boolean updateChange(ChangeContext ctx) throws Exception
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:
Exception
-
-