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.workflow.modules.comment.web.CommentJspBean
- All Implemented Interfaces:
Serializable
@RequestScoped
@Named("workflow_commentJspBean")
public class CommentJspBean
extends fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
Controller for Comments
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoRemoveComment(jakarta.servlet.http.HttpServletRequest request) Removes a commentgetConfirmRemoveComment(jakarta.servlet.http.HttpServletRequest request) Gets the confirmation page to remove a commentMethods 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
-
getConfirmRemoveComment
public String getConfirmRemoveComment(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException, UnsupportedEncodingException Gets the confirmation page to remove a comment- Parameters:
request- The HTTP request- Returns:
- the confirmation page to remove the comment
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- theAccessDeniedExceptionUnsupportedEncodingException- if there is an exception during the encoding of the return_url parameter
-
doRemoveComment
public String doRemoveComment(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException, UnsupportedEncodingException Removes a comment- Parameters:
request- The HTTP request- Returns:
- The URL to go after performing the action
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- if the request is not posted with a valid security token or if the user is not allowed to delete the commentUnsupportedEncodingException- if there is an exception during the decoding of the return_url parameter
-