Class CommentJspBean

  • All Implemented Interfaces:
    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 Detail

      • CommentJspBean

        public CommentJspBean()
    • Method Detail

      • getManageComment

        @View(value="manageComment",
              defaultView=true)
        public 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 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 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 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 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 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 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 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