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_VALIDATOR
ROLE
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, setupLogger
private 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 Serviceable
ServiceException
public boolean isValidatedByDefault(Content content)
CommentManagerExtensionPoint
isValidatedByDefault
in interface CommentManagerExtensionPoint
isValidatedByDefault
in class DefaultCommentManagerExtensionPoint
content
- The content having a new commentpublic boolean isCaptchaRequired(Content content, Map objectModel)
CommentManagerExtensionPoint
isCaptchaRequired
in interface CommentManagerExtensionPoint
isCaptchaRequired
in class DefaultCommentManagerExtensionPoint
content
- The content to commentobjectModel
- The cocoon object modelpublic List<I18nizableText> getErrors(CommentableContent content, Map objectModel)
DefaultCommentManagerExtensionPoint
getErrors
in interface CommentManagerExtensionPoint
getErrors
in class DefaultCommentManagerExtensionPoint
content
- The content to commentobjectModel
- The cocoon object model