Package com.google.gerrit.server
Class PublishCommentUtil
- java.lang.Object
-
- com.google.gerrit.server.PublishCommentUtil
-
public class PublishCommentUtil extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.google.common.collect.ImmutableList<CommentValidationFailure>
findInvalidComments(PluginSetContext<CommentValidator> commentValidators, com.google.common.collect.ImmutableList<CommentForValidation> commentsForValidation)
Helper to run the specified set ofCommentValidator
-s on the specified comments.void
publish(ChangeContext ctx, PatchSet.Id psId, Collection<Comment> draftComments, String tag)
-
-
-
Method Detail
-
publish
public void publish(ChangeContext ctx, PatchSet.Id psId, Collection<Comment> draftComments, String tag)
-
findInvalidComments
public static com.google.common.collect.ImmutableList<CommentValidationFailure> findInvalidComments(PluginSetContext<CommentValidator> commentValidators, com.google.common.collect.ImmutableList<CommentForValidation> commentsForValidation)
Helper to run the specified set ofCommentValidator
-s on the specified comments.- Returns:
- See
CommentValidator.validateComments(ImmutableList)
.
-
-