Class ReplyAttentionSetUpdates
java.lang.Object
com.google.gerrit.server.restapi.change.ReplyAttentionSetUpdates
This class is used to update the attention set when performing a review or replying on a change.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processAutomaticAttentionSetRulesOnReply
(BatchUpdate bu, ChangeNotes changeNotes, boolean readyForReview, CurrentUser currentUser, List<HumanComment> commentsToBePublished) Adjusts the attention set but only based on the automatic rules.void
updateAttentionSetOnPostReview
(BatchUpdate bu, PostReviewOp postReviewOp, ChangeNotes changeNotes, ReviewInput input, CurrentUser currentUser) Adjusts the attention set when a review is posted.
-
Method Details
-
processAutomaticAttentionSetRulesOnReply
public void processAutomaticAttentionSetRulesOnReply(BatchUpdate bu, ChangeNotes changeNotes, boolean readyForReview, CurrentUser currentUser, List<HumanComment> commentsToBePublished) Adjusts the attention set but only based on the automatic rules. -
updateAttentionSetOnPostReview
public void updateAttentionSetOnPostReview(BatchUpdate bu, PostReviewOp postReviewOp, ChangeNotes changeNotes, ReviewInput input, CurrentUser currentUser) throws BadRequestException, IOException, PermissionBackendException, UnprocessableEntityException, org.eclipse.jgit.errors.ConfigInvalidException Adjusts the attention set when a review is posted.If the same user should be added and removed or added/removed twice, the user will only be added/removed once, based on first addition/removal.
- Parameters:
postReviewOp
- thePostReviewOp
that is being executed before the attention set updates- Throws:
BadRequestException
IOException
PermissionBackendException
UnprocessableEntityException
org.eclipse.jgit.errors.ConfigInvalidException
-