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_CONTENTID
manager
EMPTY_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, hasRight
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public 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 Serviceable
service
in class AbstractCommentAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected 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