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

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.AppointmentJspBean
All Implemented Interfaces:
Serializable

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

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

See Also:
Serialized Form

Constructor Summary
AppointmentJspBean()
          Default constructor
 
Method Summary
 String displayRecapAppointment(javax.servlet.http.HttpServletRequest request)
          Display the recap before validating an appointment
 String doChangeAppointmentStatus(javax.servlet.http.HttpServletRequest request)
          Do change the status of an appointment
 String doMakeAppointment(javax.servlet.http.HttpServletRequest request)
          Do save an appointment into the database if it is valid
 String doProcessWorkflowAction(javax.servlet.http.HttpServletRequest request)
          Do process a workflow action over an appointment
 String doRemoveAppointment(javax.servlet.http.HttpServletRequest request)
          Handles the removal form of a appointment
 String doValidateForm(javax.servlet.http.HttpServletRequest request)
          Do validate data entered by a user to fill a form
 String getAppointmentCalendar(javax.servlet.http.HttpServletRequest request)
          Get the page with the calendar with opened and closed days for an appointment form
 String getCalendarManageAppointments(javax.servlet.http.HttpServletRequest request)
          Get the page to manage appointments.
 String getConfirmRemoveAppointment(javax.servlet.http.HttpServletRequest request)
          Manages the removal form of a appointment whose identifier is in the HTTP request
 String getCreateAppointment(javax.servlet.http.HttpServletRequest request)
          Returns the form to create an appointment
 String getDownloadFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse httpResponse)
          Do download a file from an appointment response
 String getManageAppointments(javax.servlet.http.HttpServletRequest request)
          Get the page to manage appointments
 String getModifyAppointment(javax.servlet.http.HttpServletRequest request)
          Get the page to modify an appointment
static String getUrlExecuteWorkflowAction(javax.servlet.http.HttpServletRequest request, int nIdAppointment, int nIdAction)
          Get the URL to display the form of a workflow action.
static String getUrlExecuteWorkflowAction(javax.servlet.http.HttpServletRequest request, String strIdAppointment, String strIdAction)
          Get the URL to display the form of a workflow action.
static String getUrlManageAppointment(javax.servlet.http.HttpServletRequest request, int nIdForm)
          Get the URL to manage appointments of a given form
static String getUrlManageAppointment(javax.servlet.http.HttpServletRequest request, String strIdForm)
          Get the URL to manage appointments of a given form
 String getViewAppointment(javax.servlet.http.HttpServletRequest request)
          View details of an appointment
 String getWorkflowActionForm(javax.servlet.http.HttpServletRequest request)
          Get the workflow action form before processing the action.
 
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
 

Constructor Detail

AppointmentJspBean

public AppointmentJspBean()
Default constructor

Method Detail

getCalendarManageAppointments

@View(value="viewCalendarManageAppointment",
      defaultView=true)
public String getCalendarManageAppointments(javax.servlet.http.HttpServletRequest request)
Get the page to manage appointments. Appointments are displayed in a calendar.

Parameters:
request - The request
Returns:
The HTML code to display

getManageAppointments

@View(value="manageAppointments")
public String getManageAppointments(javax.servlet.http.HttpServletRequest request)
Get the page to manage appointments

Parameters:
request - The request
Returns:
The HTML code to display

getCreateAppointment

@View(value="createAppointment")
public String getCreateAppointment(javax.servlet.http.HttpServletRequest request)
                            throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Returns the form to create an appointment

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 access this feature

getModifyAppointment

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

Parameters:
request - The request
Returns:
The HTML content to display or the next URL to redirect to
Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to access this feature

doValidateForm

@Action(value="doValidateForm")
public String doValidateForm(javax.servlet.http.HttpServletRequest request)
                      throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Do validate data entered by a user to fill a 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 access this feature

getAppointmentCalendar

@View(value="getAppointmentCalendar")
public String getAppointmentCalendar(javax.servlet.http.HttpServletRequest request)
Get the page with the calendar with opened and closed days for an appointment form

Parameters:
request - The request
Returns:
The XPage to display

getConfirmRemoveAppointment

@Action(value="confirmRemoveAppointment")
public String getConfirmRemoveAppointment(javax.servlet.http.HttpServletRequest request)
Manages the removal form of a appointment whose identifier is in the HTTP request

Parameters:
request - The HTTP request
Returns:
the HTML code to confirm

doRemoveAppointment

@Action(value="removeAppointment")
public String doRemoveAppointment(javax.servlet.http.HttpServletRequest request)
                           throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Handles the removal form of a appointment

Parameters:
request - The HTTP request
Returns:
the JSP URL to display the form to manage appointments
Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to access this feature

displayRecapAppointment

@View(value="displayRecapAppointment")
public String displayRecapAppointment(javax.servlet.http.HttpServletRequest request)
Display the recap before validating an appointment

Parameters:
request - The request
Returns:
The HTML content to display or the next URL to redirect to

doMakeAppointment

@Action(value="doMakeAppointment")
public String doMakeAppointment(javax.servlet.http.HttpServletRequest request)
                         throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Do save an appointment into the database if it is valid

Parameters:
request - The request
Returns:
The XPage to display
Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to access this feature

getViewAppointment

@View(value="viewAppointment")
public String getViewAppointment(javax.servlet.http.HttpServletRequest request)
                          throws fr.paris.lutece.portal.service.admin.AccessDeniedException
View details of an appointment

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 access this feature

getDownloadFile

public String getDownloadFile(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse httpResponse)
                       throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Do download a file from an appointment response

Parameters:
request - The request
httpResponse - The response
Returns:
nothing.
Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to access this feature

doChangeAppointmentStatus

@Action(value="doChangeAppointmentStatus")
public String doChangeAppointmentStatus(javax.servlet.http.HttpServletRequest request)
                                 throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Do change the status of an appointment

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 access this feature

getWorkflowActionForm

@View(value="viewWorkflowActionForm")
public String getWorkflowActionForm(javax.servlet.http.HttpServletRequest request)
Get the workflow action form before processing the action. If the action does not need to display any form, then redirect the user to the workflow action processing page.

Parameters:
request - The request
Returns:
The HTML content to display, or the next URL to redirect the user to

doProcessWorkflowAction

@Action(value="doProcessWorkflowAction")
public String doProcessWorkflowAction(javax.servlet.http.HttpServletRequest request)
Do process a workflow action over an appointment

Parameters:
request - The request
Returns:
The next URL to redirect to

getUrlManageAppointment

public static String getUrlManageAppointment(javax.servlet.http.HttpServletRequest request,
                                             int nIdForm)
Get the URL to manage appointments of a given form

Parameters:
request - The request
nIdForm - The id of the form
Returns:
The URL

getUrlManageAppointment

public static String getUrlManageAppointment(javax.servlet.http.HttpServletRequest request,
                                             String strIdForm)
Get the URL to manage appointments of a given form

Parameters:
request - The request
strIdForm - The id of the form
Returns:
The URL

getUrlExecuteWorkflowAction

public static String getUrlExecuteWorkflowAction(javax.servlet.http.HttpServletRequest request,
                                                 int nIdAppointment,
                                                 int nIdAction)
Get the URL to display the form of a workflow action. If the action has no form, then the user is redirected to the page to execute the workflow action

Parameters:
request - The request
nIdAppointment - The id of the appointment
nIdAction - The id of the workflow action
Returns:
The URL

getUrlExecuteWorkflowAction

public static String getUrlExecuteWorkflowAction(javax.servlet.http.HttpServletRequest request,
                                                 String strIdAppointment,
                                                 String strIdAction)
Get the URL to display the form of a workflow action. If the action has no form, then the user is redirected to the page to execute the workflow action

Parameters:
request - The request
strIdAppointment - The id of the appointment
strIdAction - The id of the workflow action
Returns:
The URL


Copyright © 2014 Mairie de Paris. All Rights Reserved.