Class AddCommentAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.cms.repository.comment.actions.AbstractCommentAction
org.ametys.cms.repository.comment.actions.AddCommentAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
Sends the comment for a given post
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The request parameter name for author emailstatic final String
The request parameter name for author email to hidestatic final String
The request parameter name for author namestatic final String
The request parameter name for author urlstatic final String
The request parameter name for captchastatic final String
The request parameter name for captchastatic final String
The request parameter name for contentFields inherited from class org.ametys.cms.repository.comment.actions.AbstractCommentAction
_commentsDAO, PARAMETER_COMMENTID, PARAMETER_CONTENTID
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) Methods inherited from class org.ametys.cms.repository.comment.actions.AbstractCommentAction
service
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
PARAMETER_AUTHOR_NAME
The request parameter name for author name- See Also:
-
PARAMETER_AUTHOR_EMAIL
The request parameter name for author email- See Also:
-
PARAMETER_AUTHOR_HIDEEMAIL
The request parameter name for author email to hide- See Also:
-
PARAMETER_AUTHOR_URL
The request parameter name for author url- See Also:
-
PARAMETER_CONTENTTEXT
The request parameter name for content- See Also:
-
PARAMETER_CAPTCHA_KEY
The request parameter name for captcha- See Also:
-
PARAMETER_CAPTCHA_VALUE
The request parameter name for captcha- See Also:
-
-
Constructor Details
-
AddCommentAction
public AddCommentAction()
-
-
Method Details
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-