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, setupLoggerpublic static final Pattern URL_VALIDATOR
public DefaultCommentManagerExtensionPoint()
public boolean isValidatedByDefault(Content content)
CommentManagerExtensionPointisValidatedByDefault in interface CommentManagerExtensionPointcontent - The content having a new commentpublic boolean isCaptchaRequired(Content content, Map objectModel)
CommentManagerExtensionPointisCaptchaRequired in interface CommentManagerExtensionPointcontent - The content to commentobjectModel - The cocoon object modelpublic List<I18nizableText> getErrors(CommentableContent content, Map objectModel)
getErrors in interface CommentManagerExtensionPointcontent - The content to commentobjectModel - The cocoon object model