fr.paris.lutece.plugins.appointment.web
Class AppointmentFormJspBean

java.lang.Object
  extended by fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
      extended by fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
          extended by fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
              extended by fr.paris.lutece.plugins.appointment.web.AppointmentFormJspBean
All Implemented Interfaces:
Serializable

@Controller(controllerJsp="ManageAppointmentForms.jsp",
            controllerPath="jsp/admin/plugins/appointment/",
            right="APPOINTMENT_FORM_MANAGEMENT")
public class AppointmentFormJspBean
extends fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean

This class provides the user interface to manage AppointmentForm features ( manage, create, modify, remove )

See Also:
Serialized Form

Field Summary
static String RIGHT_MANAGEAPPOINTMENTFORM
          Right to manage appointment forms
 
Constructor Summary
AppointmentFormJspBean()
          Default constructor
 
Method Summary
static void addElementsToModelForLeftColumn(javax.servlet.http.HttpServletRequest request, AppointmentForm appointmentForm, fr.paris.lutece.portal.business.user.AdminUser user, Locale locale, Map<String,Object> model)
          Add elements to the model to display the left column to modify an appointment form
 String doChangeFormActivation(javax.servlet.http.HttpServletRequest request)
          Change the enabling of an appointment form
 String doCreateAppointmentForm(javax.servlet.http.HttpServletRequest request)
          Process the data capture form of a new appointment form
 String doModifyAppointmentForm(javax.servlet.http.HttpServletRequest request)
          Process the change form of a appointment form
 String doModifyAppointmentFormMessages(javax.servlet.http.HttpServletRequest request)
          Do modify an appointment form messages
 String doRemoveAppointmentForm(javax.servlet.http.HttpServletRequest request)
          Handles the removal form of an appointment form
 String getConfirmRemoveAppointmentForm(javax.servlet.http.HttpServletRequest request)
          Manages the removal form of a appointment form whose identifier is in the HTTP request
 String getCreateAppointmentForm(javax.servlet.http.HttpServletRequest request)
          Returns the form to create an appointment form
 String getManageAppointmentForms(javax.servlet.http.HttpServletRequest request)
          Get the page to manage appointment forms
 String getModifyAppointmentForm(javax.servlet.http.HttpServletRequest request)
          Returns the form to update info about a appointment form
 String getModifyAppointmentFormMessages(javax.servlet.http.HttpServletRequest request)
          Get the page to modify an appointment form
static String getURLManageAppointmentForms(javax.servlet.http.HttpServletRequest request)
          Get the URL to manage appointment forms
static String getURLModifyAppointmentForm(javax.servlet.http.HttpServletRequest request, int nIdForm)
          Get the URL to modify an appointment form
static String getURLModifyAppointmentForm(javax.servlet.http.HttpServletRequest request, String strIdForm)
          Get the URL to modify an appointment form
 
Methods inherited from class fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
addError, addError, addInfo, addInfo, fillCommons, getActionUrl, getControllerJsp, getControllerPath, getModel, getPage, getPage, getPage, getViewFullUrl, getViewUrl, processController, redirect, redirect, redirect, redirect, redirectView, validateBean
 
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, populate, setFeatureIcon, setPageTitleProperty, validate, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RIGHT_MANAGEAPPOINTMENTFORM

public static final String RIGHT_MANAGEAPPOINTMENTFORM
Right to manage appointment forms

See Also:
Constant Field Values
Constructor Detail

AppointmentFormJspBean

public AppointmentFormJspBean()
Default constructor

Method Detail

getManageAppointmentForms

@View(value="manageAppointmentForms",
      defaultView=true)
public 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(value="createAppointmentForm")
public 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(value="createAppointmentForm")
public 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(value="confirmRemoveAppointmentForm")
public 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(value="removeAppointmentForm")
public 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(value="modifyAppointmentForm")
public 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(value="modifyAppointmentForm")
public 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(value="doChangeFormActivation")
public 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

getModifyAppointmentFormMessages

@View(value="modifyAppointmentFormMessages")
public String getModifyAppointmentFormMessages(javax.servlet.http.HttpServletRequest request)
                                        throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Get the page to modify an appointment form

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(value="doModifyAppointmentFormMessages")
public 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

getURLModifyAppointmentForm

public static String getURLModifyAppointmentForm(javax.servlet.http.HttpServletRequest request,
                                                 int nIdForm)
Get the URL to modify an appointment form

Parameters:
request - The request
nIdForm - The id of the form to modify
Returns:
The URL to modify the given Appointment form

getURLModifyAppointmentForm

public static String getURLModifyAppointmentForm(javax.servlet.http.HttpServletRequest request,
                                                 String strIdForm)
Get the URL to modify an appointment form

Parameters:
request - The request
strIdForm - The id of the form to modify
Returns:
The URL to modify the given Appointment form

getURLManageAppointmentForms

public static 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

addElementsToModelForLeftColumn

public static void addElementsToModelForLeftColumn(javax.servlet.http.HttpServletRequest request,
                                                   AppointmentForm appointmentForm,
                                                   fr.paris.lutece.portal.business.user.AdminUser user,
                                                   Locale locale,
                                                   Map<String,Object> model)
Add elements to the model to display the left column to modify an appointment form

Parameters:
request - The request to store the appointment form in session
appointmentForm - The appointment form
user - The user
locale - The locale
model - the model to add elements in


Copyright © 2014 Mairie de Paris. All Rights Reserved.