Class CommentJspBean

  • All Implemented Interfaces:
    java.io.Serializable

    @Controller(controllerJsp="Comments.jsp",
                controllerPath="jsp/admin/plugins/appointment/",
                right="APPOINTMENT_COMMENT_MANAGEMENT")
    public class CommentJspBean
    extends AbstractAppointmentFormAndSlotJspBean
    This class provides the user interface to manage CommentForm features ( manage, create, modify, copy, remove )
    Author:
    rdeniel
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CommentJspBean()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String doAddComment​(javax.servlet.http.HttpServletRequest request)
      Process the data capture form of a new comment
      java.lang.String doModifyComment​(javax.servlet.http.HttpServletRequest request)
      Process the data capture form of comment modification
      java.lang.String doRemoveComment​(javax.servlet.http.HttpServletRequest request)
      Do remove a comment
      java.lang.String getCommentInfos()
      build The infos/warnings/Errors
      java.lang.String getConfirmRemoveComment​(javax.servlet.http.HttpServletRequest request)
      Manages the removal form of a comment whose identifier is in the http request
      java.lang.String getManageComment​(javax.servlet.http.HttpServletRequest request)
      Build the Manage View
      java.lang.String getViewAddComment​(javax.servlet.http.HttpServletRequest request)
      Returns the form to create a comment
      java.lang.String getViewModifyComment​(javax.servlet.http.HttpServletRequest request)
      Returns the form to modify a comment
      boolean validateDateStartEndValidity​(Comment comment)
      Validate Comment date
      • Methods inherited from class fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean

        processController
      • Methods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean

        getPlugin, init
      • Methods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean

        getAdminPage, getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • RIGHT_MANAGECOMMENTTFORM

        public static final java.lang.String RIGHT_MANAGECOMMENTTFORM
        See Also:
        Constant Field Values
      • JSP_MANAGE_COMMENTS

        public static final java.lang.String JSP_MANAGE_COMMENTS
        JSP of this JSP Bean
        See Also:
        Constant Field Values
      • TEMPLATE_CREATE_COMMENT

        public static final java.lang.String TEMPLATE_CREATE_COMMENT
        See Also:
        Constant Field Values
      • TEMPLATE_MANAGE_COMMENT

        public static final java.lang.String TEMPLATE_MANAGE_COMMENT
        See Also:
        Constant Field Values
      • TEMPLATE_MODIFY_COMMENT

        public static final java.lang.String TEMPLATE_MODIFY_COMMENT
        See Also:
        Constant Field Values
      • TEMPLATE_COMMENT_INFO

        public static final java.lang.String TEMPLATE_COMMENT_INFO
        See Also:
        Constant Field Values
    • Constructor Detail

      • CommentJspBean

        public CommentJspBean()
    • Method Detail

      • getManageComment

        @View(value="manageComment",
              defaultView=true)
        public java.lang.String getManageComment​(javax.servlet.http.HttpServletRequest request)
        Build the Manage View
        Parameters:
        request - The HTTP request
        Returns:
        The page
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException
      • getViewAddComment

        @View("viewAddComment")
        public java.lang.String getViewAddComment​(javax.servlet.http.HttpServletRequest request)
                                           throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Returns the form to create a comment
        Parameters:
        request - The Http request
        Returns:
        the html code of the comment form
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException
      • doAddComment

        @Action("doAddComment")
        public java.lang.String doAddComment​(javax.servlet.http.HttpServletRequest request)
                                      throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Process the data capture form of a new comment
        Parameters:
        request - The Http Request
        Returns:
        The Jsp URL of the process result
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException
      • getViewModifyComment

        @View("viewModifyComment")
        public java.lang.String getViewModifyComment​(javax.servlet.http.HttpServletRequest request)
                                              throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Returns the form to modify a comment
        Parameters:
        request - The Http request
        Returns:
        the html code of the comment form
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException
      • doModifyComment

        @Action("doModifyComment")
        public java.lang.String doModifyComment​(javax.servlet.http.HttpServletRequest request)
                                         throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Process the data capture form of comment modification
        Parameters:
        request - The Http Request
        Returns:
        The Jsp URL of the process result
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException
      • getConfirmRemoveComment

        @Action("confirmRemoveComment")
        public java.lang.String getConfirmRemoveComment​(javax.servlet.http.HttpServletRequest request)
                                                 throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Manages the removal form of a comment whose identifier is in the http request
        Parameters:
        request - The Http request
        Returns:
        the html code to confirm
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException
      • doRemoveComment

        @Action("doRemoveComment")
        public java.lang.String doRemoveComment​(javax.servlet.http.HttpServletRequest request)
                                         throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Do remove a comment
        Parameters:
        request - the request
        Returns:
        to the page of the comment
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException
      • getCommentInfos

        public java.lang.String getCommentInfos()
        build The infos/warnings/Errors
        Returns:
        The infos/warnings/Errors
      • validateDateStartEndValidity

        public boolean validateDateStartEndValidity​(Comment comment)
        Validate Comment date
        Parameters:
        comment - the comment
        Returns:
        boolean