public class DefaultCommentManagerExtensionPoint extends AbstractLogEnabled implements CommentManagerExtensionPoint
Modifier and Type | Field and Description |
---|---|
static Pattern |
URL_VALIDATOR
The pattern to check url
|
ROLE
Constructor and Description |
---|
DefaultCommentManagerExtensionPoint() |
Modifier and Type | Method and Description |
---|---|
List<I18nizableText> |
getErrors(CommentableContent content,
Map objectModel)
Call the validityCheck method on all listeners and add the results
|
boolean |
isCaptchaRequired(Content content,
Map objectModel)
Checks if a captcha have to be checked.
|
boolean |
isValidatedByDefault(Content content)
Get the validation flag default value for a content asking all listeners
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final Pattern URL_VALIDATOR
public DefaultCommentManagerExtensionPoint()
public boolean isValidatedByDefault(Content content)
CommentManagerExtensionPoint
isValidatedByDefault
in interface CommentManagerExtensionPoint
content
- The content having a new commentpublic boolean isCaptchaRequired(Content content, Map objectModel)
CommentManagerExtensionPoint
isCaptchaRequired
in interface CommentManagerExtensionPoint
content
- The content to commentobjectModel
- The cocoon object modelpublic List<I18nizableText> getErrors(CommentableContent content, Map objectModel)
getErrors
in interface CommentManagerExtensionPoint
content
- The content to commentobjectModel
- The cocoon object model