public interface CommentFormHandler
Commentable.| Modifier and Type | Method and Description |
|---|---|
void |
handleComment(Commentable commentable,
HttpServletRequest req)
Handles a comment form for a
Commentable. |
void |
handleComment(Commentable commentable,
HttpServletRequest req,
boolean enabled)
Handles a comment form for a
Commentable. |
void handleComment(Commentable commentable, HttpServletRequest req)
Commentable.
Checks if the user is allowed to post a comment and if the comment is valid and the captcha test was passed. Stores the comment in the database, then sends a notification to the moderators.
commentable - Commentable to add the comment toreq - HttpServletRequest with the comment form datavoid handleComment(Commentable commentable, HttpServletRequest req, boolean enabled)
Commentable.
Checks if the user is allowed to post a comment and if the comment is valid and the captcha test was passed. Stores the comment in the database, then sends a notification to the moderators.
commentable - Commentable to add the comment toreq - HttpServletRequest with the comment form dataenabled - if false, do not accept new commentsCopyright © 2009–2016. All rights reserved.