Class CommentsPost
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
org.alfresco.repo.web.scripts.comments.AbstractCommentsWebScript
org.alfresco.repo.web.scripts.comments.CommentsPost
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
This class is the controller for the comments.post web script.
- Since:
- 4.1.7.1
- Author:
- Sergey Scherbovich (based on existing JavaScript webscript controller)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
-
Field Summary
Fields inherited from class org.alfresco.repo.web.scripts.comments.AbstractCommentsWebScript
activityService, behaviourFilter, COMMENT_CREATED_ACTIVITY, COMMENT_DELETED_ACTIVITY, COMMENTS_TOPIC_NAME, contentService, JSON_KEY_CONTENT, JSON_KEY_ITEM_TITLE, JSON_KEY_NODEREF, JSON_KEY_PAGE, JSON_KEY_PAGE_PARAMS, JSON_KEY_SITE, JSON_KEY_SITE_ID, JSON_KEY_TITLE, nodeService, PARAM_ITEM, PARAM_MESSAGE, PARAM_NODE, permissionService, personService, serviceRegistry, siteService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteImpl
(NodeRef nodeRef, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) Overrides AbstractCommentsWebScript to add commentMethods inherited from class org.alfresco.repo.web.scripts.comments.AbstractCommentsWebScript
executeImpl, getOrNull, getSiteInfo, parseJSON, parseJSONFromString, parseRequestForNodeRef, postActivity, setActivityService, setBehaviourFilter, setServiceRegistry
Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
Constructor Details
-
CommentsPost
public CommentsPost()
-
-
Method Details
-
executeImpl
protected Map<String,Object> executeImpl(NodeRef nodeRef, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) Overrides AbstractCommentsWebScript to add comment- Specified by:
executeImpl
in classAbstractCommentsWebScript
- Returns:
-