@Controller(xpageName="appointment",
pageTitleI18nKey="appointment.appointmentApp.defaultTitle",
pagePathI18nKey="appointment.appointmentApp.defaultPath")
public class AppointmentApp
extends fr.paris.lutece.portal.util.mvc.xpage.MVCApplication
| Modifier and Type | Field and Description |
|---|---|
static String |
MESSAGE_DEFAULT_PAGE_TITLE
Default page title of XPages of this app
|
static String |
MESSAGE_DEFAULT_PATH
Default page of XPages of this app
|
static String |
VIEW_APPOINTMENT_FORM_FIRST_STEP
Name of the view of the first step of the form
|
static String |
VIEW_APPOINTMENT_FORM_SECOND_STEP
Name of the view of the second step of the form
|
protected static String |
XPAGE_NAME
The name of the XPage
|
| Constructor and Description |
|---|
AppointmentApp() |
| Modifier and Type | Method and Description |
|---|---|
fr.paris.lutece.portal.web.xpages.XPage |
displayRecapAppointment(javax.servlet.http.HttpServletRequest request)
Display the recap before validating an appointment
|
fr.paris.lutece.portal.web.xpages.XPage |
doCancelAppointment(javax.servlet.http.HttpServletRequest request)
Do cancel an appointment
|
fr.paris.lutece.portal.web.xpages.XPage |
doMakeAppointment(javax.servlet.http.HttpServletRequest request)
Do save an appointment into the database if it is valid
|
fr.paris.lutece.portal.web.xpages.XPage |
doSelectSlot(javax.servlet.http.HttpServletRequest request)
Do select a slot
|
fr.paris.lutece.portal.web.xpages.XPage |
doValidateForm(javax.servlet.http.HttpServletRequest request)
Do validate data entered by a user to fill a form
|
fr.paris.lutece.portal.web.xpages.XPage |
getAppointmentCalendar(javax.servlet.http.HttpServletRequest request)
Get the page with the calendar with opened and closed days for an
appointment form
|
fr.paris.lutece.portal.web.xpages.XPage |
getAppointmentCanceled(javax.servlet.http.HttpServletRequest request)
Get the page to confirm that the appointment has been canceled
|
fr.paris.lutece.portal.web.xpages.XPage |
getAppointmentCreated(javax.servlet.http.HttpServletRequest request)
Get the page to notify the user that the appointment has been created
|
fr.paris.lutece.portal.web.xpages.XPage |
getAppointmentFormFirstStep(javax.servlet.http.HttpServletRequest request)
Get the first step of the form
|
fr.paris.lutece.portal.web.xpages.XPage |
getAppointmentFormSecondStep(javax.servlet.http.HttpServletRequest request)
Get the second step of the form
|
fr.paris.lutece.portal.web.xpages.XPage |
getCancelAppointment(javax.servlet.http.HttpServletRequest request)
Get the page to cancel an appointment
|
static String |
getCancelAppointmentUrl(Appointment appointment)
Get the URL
|
static String |
getCancelAppointmentUrl(javax.servlet.http.HttpServletRequest request,
Appointment appointment)
Get the URL
|
fr.paris.lutece.portal.web.xpages.XPage |
getFormList(javax.servlet.http.HttpServletRequest request)
Get the list of appointment form list
|
static String |
getFormListHtml(javax.servlet.http.HttpServletRequest request,
AppointmentFormService appointmentFormService,
String strTitle,
Locale locale) |
static String |
getHtmlFormFirstStep(javax.servlet.http.HttpServletRequest request,
AppointmentForm form,
AppointmentFormService appointmentFormService,
Map<String,Object> model,
Locale locale)
Get the HTML content of the first step of the form
|
static List<AppointmentSlotDisponiblity> |
getListAppointmentSlotDisponiblity() |
static int |
getMaxWeek(int nbWeekToCreate,
AppointmentForm form) |
fr.paris.lutece.portal.web.xpages.XPage |
getMyAppointments(javax.servlet.http.HttpServletRequest request)
Get the page to view the appointments of a user
|
static String |
getMyAppointmentsXPage(javax.servlet.http.HttpServletRequest request,
Locale locale)
Get the HTML content of the my appointment page of a user
|
fr.paris.lutece.portal.web.xpages.XPage |
getViewCancelAppointment(javax.servlet.http.HttpServletRequest request)
Get the page to cancel an appointment
|
fr.paris.lutece.portal.web.xpages.XPage |
getViewForm(javax.servlet.http.HttpServletRequest request)
Get the page to complete a form
|
static void |
setListAppointmentSlotDisponiblity(List<AppointmentSlotDisponiblity> list) |
addError, addError, addInfo, addInfo, download, download, fillCommons, getActionFullUrl, getActionUrl, getDefaultPagePath, getDefaultPageTitle, getLocale, getModel, getPage, getViewFullUrl, getViewUrl, getXPage, getXPage, getXPage, getXPage, getXPageName, populate, redirect, redirect, redirect, redirect, redirectMessageBox, redirectView, responseJSON, responseXML, validateBean, validateBeanpublic static final String VIEW_APPOINTMENT_FORM_FIRST_STEP
public static final String VIEW_APPOINTMENT_FORM_SECOND_STEP
public static final String MESSAGE_DEFAULT_PATH
public static final String MESSAGE_DEFAULT_PAGE_TITLE
protected static final String XPAGE_NAME
public static List<AppointmentSlotDisponiblity> getListAppointmentSlotDisponiblity()
public static void setListAppointmentSlotDisponiblity(List<AppointmentSlotDisponiblity> list)
@View(value="getViewFormList",
defaultView=true)
public fr.paris.lutece.portal.web.xpages.XPage getFormList(javax.servlet.http.HttpServletRequest request)
request - The requestpublic fr.paris.lutece.portal.web.xpages.XPage getViewForm(javax.servlet.http.HttpServletRequest request)
request - The request@Action(value="doValidateForm")
public fr.paris.lutece.portal.web.xpages.XPage doValidateForm(javax.servlet.http.HttpServletRequest request)
throws fr.paris.lutece.portal.service.message.SiteMessageException
request - The requestfr.paris.lutece.portal.service.message.SiteMessageExceptionpublic fr.paris.lutece.portal.web.xpages.XPage getAppointmentCalendar(javax.servlet.http.HttpServletRequest request)
request - The request@Action(value="doSelectSlot") public fr.paris.lutece.portal.web.xpages.XPage doSelectSlot(javax.servlet.http.HttpServletRequest request)
request - the request@View(value="displayRecapAppointment") public fr.paris.lutece.portal.web.xpages.XPage displayRecapAppointment(javax.servlet.http.HttpServletRequest request)
request - The request@Action(value="doMakeAppointment") public fr.paris.lutece.portal.web.xpages.XPage doMakeAppointment(javax.servlet.http.HttpServletRequest request)
request - The request@View(value="getAppointmentCreated") public fr.paris.lutece.portal.web.xpages.XPage getAppointmentCreated(javax.servlet.http.HttpServletRequest request)
request - The request@View(value="getCancelAppointment") public fr.paris.lutece.portal.web.xpages.XPage getCancelAppointment(javax.servlet.http.HttpServletRequest request)
request - The request@View(value="getViewCancelAppointment")
public fr.paris.lutece.portal.web.xpages.XPage getViewCancelAppointment(javax.servlet.http.HttpServletRequest request)
throws fr.paris.lutece.portal.service.message.SiteMessageException
request - The requestfr.paris.lutece.portal.service.message.SiteMessageException@Action(value="doCancelAppointment")
public fr.paris.lutece.portal.web.xpages.XPage doCancelAppointment(javax.servlet.http.HttpServletRequest request)
throws fr.paris.lutece.portal.service.message.SiteMessageException
request - The requestfr.paris.lutece.portal.service.message.SiteMessageException - If a site message needs to be displayed@View(value="getAppointmentCanceled") public fr.paris.lutece.portal.web.xpages.XPage getAppointmentCanceled(javax.servlet.http.HttpServletRequest request)
request - The request@View(value="getMyAppointments")
public fr.paris.lutece.portal.web.xpages.XPage getMyAppointments(javax.servlet.http.HttpServletRequest request)
throws fr.paris.lutece.portal.service.security.UserNotSignedException
request - The requestfr.paris.lutece.portal.service.security.UserNotSignedException - If the authentication is enabled and the
user has not signed in@View(value="getAppointmentFormFirstStep") public fr.paris.lutece.portal.web.xpages.XPage getAppointmentFormFirstStep(javax.servlet.http.HttpServletRequest request)
request - The request@View(value="getAppointmentFormSecondStep") public fr.paris.lutece.portal.web.xpages.XPage getAppointmentFormSecondStep(javax.servlet.http.HttpServletRequest request)
request - The requestpublic static String getMyAppointmentsXPage(javax.servlet.http.HttpServletRequest request, Locale locale) throws fr.paris.lutece.portal.service.security.UserNotSignedException
request - The requestlocale - The localefr.paris.lutece.portal.service.security.UserNotSignedException - If the user has not signed inpublic static String getHtmlFormFirstStep(javax.servlet.http.HttpServletRequest request, AppointmentForm form, AppointmentFormService appointmentFormService, Map<String,Object> model, Locale locale)
request - The requestform - The form to display the first step ofappointmentFormService - The instance of the appointment form
service to usemodel - The model to uselocale - The localepublic static String getFormListHtml(javax.servlet.http.HttpServletRequest request, AppointmentFormService appointmentFormService, String strTitle, Locale locale)
appointmentFormService - The service to usestrTitle - The title to display, or null to display the default
title.locale - The localepublic static String getCancelAppointmentUrl(javax.servlet.http.HttpServletRequest request, Appointment appointment)
request - Get the URL to cancel an appointment in FOappointment - The appointmentpublic static String getCancelAppointmentUrl(Appointment appointment)
request - Get the URL to cancel an appointment in FOappointment - The appointmentpublic static int getMaxWeek(int nbWeekToCreate,
AppointmentForm form)
Copyright © 2016 City of Paris. All rights reserved.