public class AddCommentAction extends AbstractCommentAction
| Modifier and Type | Field and Description |
|---|---|
protected CommentManagerExtensionPoint |
_commentManager
The listeners for this action
|
static String |
PARAMETER_AUTHOR_EMAIL
The request parameter name for author email
|
static String |
PARAMETER_AUTHOR_HIDEEMAIL
The request parameter name for author email to hide
|
static String |
PARAMETER_AUTHOR_NAME
The request parameter name for author name
|
static String |
PARAMETER_AUTHOR_URL
The request parameter name for author url
|
static String |
PARAMETER_CAPTCHA_KEY
The request parameter name for captcha
|
static String |
PARAMETER_CAPTCHA_VALUE
The request parameter name for captcha
|
static String |
PARAMETER_CONTENTTEXT
The request parameter name for content
|
_observationManager, _resolver, _rightManager, _userProvider, PARAMETER_COMMENTID, PARAMETER_CONTENTIDmanagerEMPTY_MAP| Constructor and Description |
|---|
AddCommentAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_setCommentAttributes(Request request,
Map<String,Object> results,
CommentableContent content,
boolean isValidated,
Comment comment)
Set comment attributes
|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager smanager) |
getContent, getCurrentUser, hasRightenableLogging, getLogger, setupLogger, setupLogger, setupLoggerpublic static final String PARAMETER_AUTHOR_NAME
public static final String PARAMETER_AUTHOR_EMAIL
public static final String PARAMETER_AUTHOR_HIDEEMAIL
public static final String PARAMETER_AUTHOR_URL
public static final String PARAMETER_CONTENTTEXT
public static final String PARAMETER_CAPTCHA_KEY
public static final String PARAMETER_CAPTCHA_VALUE
protected CommentManagerExtensionPoint _commentManager
public AddCommentAction()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class AbstractCommentActionServiceExceptionpublic Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exceptionprotected void _setCommentAttributes(Request request, Map<String,Object> results, CommentableContent content, boolean isValidated, Comment comment)
request - the requestresults - the resultscontent - the contentisValidated - true if is validatedcomment - the comment