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_CONTENTID
The request parameter name for content id
|
static String |
PARAMETER_CONTENTTEXT
The request parameter name for content
|
_observationManager, _resolver, _rightManager, _userProvider
manager
EMPTY_MAP
Constructor and Description |
---|
AddCommentAction() |
Modifier and Type | Method and Description |
---|---|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
protected CommentableContent |
getContent(Request request,
String contentId)
Get the commentable content
|
void |
service(ServiceManager smanager) |
getCurrentUser, hasRight
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String PARAMETER_CONTENTID
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 CommentableContent getContent(Request request, String contentId)
request
- The requestcontentId
- The content id