@Controller(xpageName="appointment",
pageTitleI18nKey="appointment.appointmentApp.defaultTitle",
pagePathI18nKey="appointment.appointment.name")
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_CALENDAR |
static String |
VIEW_APPOINTMENT_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)
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 |
doValidateForm(javax.servlet.http.HttpServletRequest request)
Do validate data entered by a user to fill a 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
|
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 view of all the forms on front office side
|
static String |
getFormListHtml(javax.servlet.http.HttpServletRequest request,
Locale locale)
Get the html content of the list of forms
|
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 |
getViewAppointmentCalendar(javax.servlet.http.HttpServletRequest request)
Get the calendar view
|
fr.paris.lutece.portal.web.xpages.XPage |
getViewAppointmentForm(javax.servlet.http.HttpServletRequest request)
Get the form appointment view (front office)
|
fr.paris.lutece.portal.web.xpages.XPage |
getViewCancelAppointment(javax.servlet.http.HttpServletRequest request)
Get the view for he user who wants to cancel its appointment
|
void |
setUserInfo(javax.servlet.http.HttpServletRequest request,
AppointmentDTO appointment)
Set the user infos to the appointment DTO
|
addError, addError, addInfo, addInfo, addWarning, addWarning, download, download, fillCommons, getActionFullUrl, getActionUrl, getDefaultPagePath, getDefaultPageTitle, getLocale, getModel, getPage, getViewFullUrl, getViewUrl, getXPage, getXPage, getXPage, getXPage, getXPageName, populate, populate, redirect, redirect, redirect, redirect, redirectMessageBox, redirectView, responseJSON, responseXML, validateBean, validateBean
public static final String MESSAGE_DEFAULT_PATH
public static final String MESSAGE_DEFAULT_PAGE_TITLE
protected static final String XPAGE_NAME
public static final String VIEW_APPOINTMENT_FORM
public static final String VIEW_APPOINTMENT_CALENDAR
@View(value="getViewAppointmentCalendar") public fr.paris.lutece.portal.web.xpages.XPage getViewAppointmentCalendar(javax.servlet.http.HttpServletRequest request)
request
- @View(value="getViewAppointmentForm") public fr.paris.lutece.portal.web.xpages.XPage getViewAppointmentForm(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.security.UserNotSignedException
request
- the requestfr.paris.lutece.portal.service.security.UserNotSignedException
@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, fr.paris.lutece.portal.service.security.UserNotSignedException
request
- The requestfr.paris.lutece.portal.service.message.SiteMessageException
fr.paris.lutece.portal.service.security.UserNotSignedException
@View(value="displayRecapAppointment") public fr.paris.lutece.portal.web.xpages.XPage displayRecapAppointment(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.security.UserNotSignedException
request
- The requestfr.paris.lutece.portal.service.security.UserNotSignedException
@Action(value="doMakeAppointment") public fr.paris.lutece.portal.web.xpages.XPage doMakeAppointment(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.security.UserNotSignedException
request
- The requestfr.paris.lutece.portal.service.security.UserNotSignedException
@View(value="getAppointmentCreated") public fr.paris.lutece.portal.web.xpages.XPage getAppointmentCreated(javax.servlet.http.HttpServletRequest request)
request
- The request@View(value="getViewFormList", defaultView=true) public fr.paris.lutece.portal.web.xpages.XPage getFormList(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
- fr.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
- fr.paris.lutece.portal.service.message.SiteMessageException
@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 inpublic 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 getFormListHtml(javax.servlet.http.HttpServletRequest request, 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 void setUserInfo(javax.servlet.http.HttpServletRequest request, AppointmentDTO appointment)
request
- the requestappointment
- the appointment DTOCopyright © 2020 City of Paris. All rights reserved.