Class CommentJspBean
java.lang.Object
fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
fr.paris.lutece.plugins.extend.modules.comment.web.CommentJspBean
- All Implemented Interfaces:
Serializable
@RequestScoped
@Named("extendCommentJspBean")
@Controller(controllerJsp="ManageComments.jsp",
controllerPath="jsp/admin/plugins/extend/modules/comment/",
right="RESOURCE_EXTENDER_MANAGEMENT",
securityTokenEnabled=true)
public class CommentJspBean
extends fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
Back office controller of the comments of a resource.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCreateComment(jakarta.servlet.http.HttpServletRequest request) Creates a comment written by the administrator.doRemoveComment(jakarta.servlet.http.HttpServletRequest request) Removes a comment.doSaveTaskForm(jakarta.servlet.http.HttpServletRequest request) Saves the tasks form of a workflow action and processes the action.doUpdateComment(jakarta.servlet.http.HttpServletRequest request) Applies an operation or a workflow action to a comment.getConfirmRemoveComment(jakarta.servlet.http.HttpServletRequest request) Asks the confirmation of the removal of a comment.getConfirmUpdateComment(jakarta.servlet.http.HttpServletRequest request) Asks the confirmation of an operation or a workflow action on a comment.getCreateComment(jakarta.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.web.cdi.mvc.Models model) Displays the comment creation form.getTasksFormWorkflow(jakarta.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.web.cdi.mvc.Models model) Displays the tasks form of a workflow action.Methods inherited from class fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
processControllerMethods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
getPlugin, initMethods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getSecurityTokenService, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
-
Constructor Details
-
CommentJspBean
public CommentJspBean()
-
-
Method Details
-
getCreateComment
@View(value="createComment", defaultView=true) public String getCreateComment(jakarta.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.web.cdi.mvc.Models model) Displays the comment creation form.- Parameters:
request- the requestmodel- the model- Returns:
- the page
-
doCreateComment
@Action("createComment") public String doCreateComment(jakarta.servlet.http.HttpServletRequest request) Creates a comment written by the administrator.- Parameters:
request- the request- Returns:
- the redirection
-
getConfirmUpdateComment
@View(value="confirmUpdateComment", securityTokenAction="updateComment") public String getConfirmUpdateComment(jakarta.servlet.http.HttpServletRequest request) Asks the confirmation of an operation or a workflow action on a comment.- Parameters:
request- the request- Returns:
- the redirection to the confirmation message
-
doUpdateComment
@Action("updateComment") public String doUpdateComment(jakarta.servlet.http.HttpServletRequest request) Applies an operation or a workflow action to a comment.- Parameters:
request- the request- Returns:
- the redirection
-
getConfirmRemoveComment
@View(value="confirmRemoveComment", securityTokenAction="removeComment") public String getConfirmRemoveComment(jakarta.servlet.http.HttpServletRequest request) Asks the confirmation of the removal of a comment.- Parameters:
request- the request- Returns:
- the redirection to the confirmation message
-
doRemoveComment
@Action("removeComment") public String doRemoveComment(jakarta.servlet.http.HttpServletRequest request) Removes a comment.- Parameters:
request- the request- Returns:
- the redirection
-
getTasksFormWorkflow
@View(value="tasksFormWorkflow", securityTokenAction="saveTaskForm") public String getTasksFormWorkflow(jakarta.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.web.cdi.mvc.Models model) Displays the tasks form of a workflow action.- Parameters:
request- the requestmodel- the model- Returns:
- the page
-
doSaveTaskForm
@Action("saveTaskForm") public String doSaveTaskForm(jakarta.servlet.http.HttpServletRequest request) Saves the tasks form of a workflow action and processes the action.- Parameters:
request- the request- Returns:
- the redirection
-