public class WebCommentManagerExtensionPoint extends DefaultCommentManagerExtensionPoint implements Serviceable
| Modifier and Type | Field and Description |
|---|---|
private CurrentUserProvider |
_currentUserProvider |
private PageHelper |
_pageHelper |
private AmetysObjectResolver |
_resolver |
private RightManager |
_rightManager |
private SiteConfigurationExtensionPoint |
_siteConfiguration |
EMAIL_VALIDATOR, URL_VALIDATORROLE| Constructor and Description |
|---|
WebCommentManagerExtensionPoint() |
| 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
|
void |
service(ServiceManager smanager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprivate SiteConfigurationExtensionPoint _siteConfiguration
private RightManager _rightManager
private AmetysObjectResolver _resolver
private PageHelper _pageHelper
private CurrentUserProvider _currentUserProvider
public WebCommentManagerExtensionPoint()
public void service(ServiceManager smanager) throws ServiceException
service in interface ServiceableServiceExceptionpublic boolean isValidatedByDefault(Content content)
CommentManagerExtensionPointisValidatedByDefault in interface CommentManagerExtensionPointisValidatedByDefault in class DefaultCommentManagerExtensionPointcontent - The content having a new commentpublic boolean isCaptchaRequired(Content content, Map objectModel)
CommentManagerExtensionPointisCaptchaRequired in interface CommentManagerExtensionPointisCaptchaRequired in class DefaultCommentManagerExtensionPointcontent - The content to commentobjectModel - The cocoon object modelpublic List<I18nizableText> getErrors(CommentableContent content, Map objectModel)
DefaultCommentManagerExtensionPointgetErrors in interface CommentManagerExtensionPointgetErrors in class DefaultCommentManagerExtensionPointcontent - The content to commentobjectModel - The cocoon object model