Class SetTopicOp
- java.lang.Object
-
- com.google.gerrit.server.restapi.change.SetTopicOp
-
- All Implemented Interfaces:
BatchUpdateOp,RepoOnlyOp
public class SetTopicOp extends Object implements BatchUpdateOp
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSetTopicOp.Factory
-
Constructor Summary
Constructors Constructor Description SetTopicOp(TopicEdited topicEdited, ChangeMessagesUtil cmUtil, TopicInput input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostUpdate(Context ctx)Override this method to do something after the update e.g.booleanupdateChange(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
-
-
-
-
Constructor Detail
-
SetTopicOp
@Inject public SetTopicOp(TopicEdited topicEdited, ChangeMessagesUtil cmUtil, TopicInput input)
-
-
Method Detail
-
updateChange
public boolean updateChange(ChangeContext ctx) throws BadRequestException
Description copied from interface:BatchUpdateOpOverride this method to modify a change.- Specified by:
updateChangein interfaceBatchUpdateOp- Parameters:
ctx- context- Returns:
- whether anything was changed that might require a write to the metadata storage.
- Throws:
BadRequestException
-
postUpdate
public void postUpdate(Context ctx)
Description copied from interface:RepoOnlyOpOverride this method to do something after the update e.g. send email or run hooks- Specified by:
postUpdatein interfaceRepoOnlyOp- Parameters:
ctx- context
-
-