Class AppointmentFormJspBean

  • All Implemented Interfaces:
    java.io.Serializable

    @Controller(controllerJsp="ManageAppointmentForms.jsp",
                controllerPath="jsp/admin/plugins/appointment/",
                right="APPOINTMENT_FORM_MANAGEMENT")
    public class AppointmentFormJspBean
    extends AbstractAppointmentFormAndSlotJspBean
    This class provides the user interface to manage AppointmentForm features ( manage, create, modify, copy, remove )
    Author:
    L.Payen
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static fr.paris.lutece.portal.service.image.ImageResource buildImageResource​(fr.paris.lutece.portal.web.upload.MultipartHttpServletRequest mRequest)
      Build an image resource (icon)
      java.lang.String doChangeFormActivation​(javax.servlet.http.HttpServletRequest request)
      Change the enabling of an appointment form
      java.lang.String doCopyAppointmentForm​(javax.servlet.http.HttpServletRequest request)
      Do copy a form
      java.lang.String doCreateAppointmentForm​(javax.servlet.http.HttpServletRequest request)
      Process the data capture form of a new appointment form
      java.lang.String doModifyAppointmentForm​(javax.servlet.http.HttpServletRequest request)
      Process the change form of a appointment form
      java.lang.String doModifyAppointmentFormMessages​(javax.servlet.http.HttpServletRequest request)
      Do modify an appointment form messages
      java.lang.String doRemoveAppointmentForm​(javax.servlet.http.HttpServletRequest request)
      Handles the removal form of an appointment form
      java.lang.String getConfirmRemoveAppointmentForm​(javax.servlet.http.HttpServletRequest request)
      Manages the removal form of a appointment form whose identifier is in the HTTP request
      java.lang.String getCreateAppointmentForm​(javax.servlet.http.HttpServletRequest request)
      Returns the form to create an appointment form
      java.lang.String getManageAppointmentForms​(javax.servlet.http.HttpServletRequest request)
      Get the page to manage appointment forms
      java.lang.String getModifyAppointmentForm​(javax.servlet.http.HttpServletRequest request)
      Returns the form to update info about a appointment form
      java.lang.String getModifyAppointmentFormMessages​(javax.servlet.http.HttpServletRequest request)
      Get the page to modify an appointment form message
      static java.lang.String getURLManageAppointmentForms​(javax.servlet.http.HttpServletRequest request)
      Get the URL to manage appointment forms
      • 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, 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_MANAGEAPPOINTMENTFORM

        public static final java.lang.String RIGHT_MANAGEAPPOINTMENTFORM
        Right to manage appointment forms
        See Also:
        Constant Field Values
      • PROPERTY_DEFAULT_LIST_APPOINTMENTFORM_PER_PAGE

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

      • AppointmentFormJspBean

        public AppointmentFormJspBean()
        Default constructor
    • Method Detail

      • getManageAppointmentForms

        @View(value="manageAppointmentForms",
              defaultView=true)
        public java.lang.String getManageAppointmentForms​(javax.servlet.http.HttpServletRequest request)
        Get the page to manage appointment forms
        Parameters:
        request - the request
        Returns:
        The HTML content to display
      • getCreateAppointmentForm

        @View("createAppointmentForm")
        public java.lang.String getCreateAppointmentForm​(javax.servlet.http.HttpServletRequest request)
                                                  throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Returns the form to create an appointment form
        Parameters:
        request - The HTTP request
        Returns:
        the HTML code of the appointment form
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to create appointment forms
      • doCreateAppointmentForm

        @Action("createAppointmentForm")
        public java.lang.String doCreateAppointmentForm​(javax.servlet.http.HttpServletRequest request)
                                                 throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Process the data capture form of a new appointment form
        Parameters:
        request - The HTTP Request
        Returns:
        The JSP URL of the process result
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to create appointment forms
      • getConfirmRemoveAppointmentForm

        @Action("confirmRemoveAppointmentForm")
        public java.lang.String getConfirmRemoveAppointmentForm​(javax.servlet.http.HttpServletRequest request)
                                                         throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Manages the removal form of a appointment form 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 - If the user is not authorized to delete this appointment form
      • doRemoveAppointmentForm

        @Action("removeAppointmentForm")
        public java.lang.String doRemoveAppointmentForm​(javax.servlet.http.HttpServletRequest request)
                                                 throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Handles the removal form of an appointment form
        Parameters:
        request - The HTTP request
        Returns:
        the JSP URL to display the form to manage appointment forms
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to delete this appointment form
      • getModifyAppointmentForm

        @View("modifyAppointmentForm")
        public java.lang.String getModifyAppointmentForm​(javax.servlet.http.HttpServletRequest request)
                                                  throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Returns the form to update info about a appointment form
        Parameters:
        request - The HTTP request
        Returns:
        The HTML form to update info
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to modify this appointment form
      • doModifyAppointmentForm

        @Action("modifyAppointmentForm")
        public java.lang.String doModifyAppointmentForm​(javax.servlet.http.HttpServletRequest request)
                                                 throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Process the change form of a appointment form
        Parameters:
        request - The HTTP request
        Returns:
        The JSP URL of the process result
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to modify this appointment form
      • doChangeFormActivation

        @Action("doChangeFormActivation")
        public java.lang.String doChangeFormActivation​(javax.servlet.http.HttpServletRequest request)
                                                throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Change the enabling of an appointment form
        Parameters:
        request - The request
        Returns:
        The next URL to redirect to
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to change the activation of this appointment form
      • doCopyAppointmentForm

        @Action("doCopyAppointmentForm")
        public java.lang.String doCopyAppointmentForm​(javax.servlet.http.HttpServletRequest request)
                                               throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Do copy a form
        Parameters:
        request - the request
        Returns:
        the JSP URL to display the form to manage appointment forms
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException
      • getModifyAppointmentFormMessages

        @View("modifyAppointmentFormMessages")
        public java.lang.String getModifyAppointmentFormMessages​(javax.servlet.http.HttpServletRequest request)
                                                          throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Get the page to modify an appointment form message
        Parameters:
        request - The request
        Returns:
        The HTML content to display
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to modify this appointment form
      • doModifyAppointmentFormMessages

        @Action("doModifyAppointmentFormMessages")
        public java.lang.String doModifyAppointmentFormMessages​(javax.servlet.http.HttpServletRequest request)
                                                         throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Do modify an appointment form messages
        Parameters:
        request - The request
        Returns:
        The next URL to redirect to
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to modify this appointment form
      • getURLManageAppointmentForms

        public static java.lang.String getURLManageAppointmentForms​(javax.servlet.http.HttpServletRequest request)
        Get the URL to manage appointment forms
        Parameters:
        request - The request
        Returns:
        The URL to manage appointment forms
      • buildImageResource

        public static fr.paris.lutece.portal.service.image.ImageResource buildImageResource​(fr.paris.lutece.portal.web.upload.MultipartHttpServletRequest mRequest)
        Build an image resource (icon)
        Parameters:
        mRequest - the request
        Returns:
        the image resource