|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.appointment.service.AppointmentFormService
public class AppointmentFormService
Service for appointment forms
| Field Summary | |
|---|---|
static String |
BEAN_NAME
Name of the bean of the service |
| Constructor Summary | |
|---|---|
AppointmentFormService()
|
|
| Method Summary | |
|---|---|
void |
convertMapResponseToList(AppointmentDTO appointment)
Convert an AppointmentDTO to an Appointment by transferring response from the map of class AppointmentDTO to the list of class Appointment. |
boolean |
doMakeAppointment(Appointment appointment,
AppointmentForm form,
boolean bIsAdmin)
Do check if an appointment can be made and make an appointment. |
AppointmentDTO |
getAppointmentFromSession(javax.servlet.http.HttpSession session)
Get the current appointment form from the session |
AppointmentFormMessages |
getDefaultAppointmentFormMessage()
Get the default form message with values loaded from properties. |
String |
getEntryUrl(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
Get the URL of the anchor of an entry |
void |
getHtmlEntry(int nIdEntry,
StringBuffer stringBuffer,
Locale locale,
boolean bDisplayFront,
javax.servlet.http.HttpServletRequest request)
Insert in the string buffer the content of the HTML code of the entry |
String |
getHtmlForm(AppointmentForm form,
AppointmentFormMessages formMessages,
Locale locale,
boolean bDisplayFront,
javax.servlet.http.HttpServletRequest request)
Return the HTML code of the form |
List<fr.paris.lutece.plugins.genericattributes.business.GenericAttributeError> |
getResponseEntry(javax.servlet.http.HttpServletRequest request,
int nIdEntry,
Locale locale,
AppointmentDTO appointment)
Get the responses associated with an entry. |
Appointment |
getValidatedAppointmentFromSession(javax.servlet.http.HttpSession session)
Get a validated appointment from the session |
Boolean |
isFieldInTheResponseList(int nIdField,
List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse)
Check if a field is in a response list |
boolean |
isFormFirstStep()
Check if the form is the first step of the creation of appointments, or if it is the calendar. |
void |
removeAppointmentFromSession(javax.servlet.http.HttpSession session)
Remove any appointment form responses stored in the session of the user |
void |
removeValidatedAppointmentFromSession(javax.servlet.http.HttpSession session)
Remove a validated appointment stored in the session of the user |
void |
saveAppointmentInSession(javax.servlet.http.HttpSession session,
AppointmentDTO appointment)
Save an appointment in the session of the user |
void |
saveValidatedAppointmentForm(javax.servlet.http.HttpSession session,
Appointment appointment)
Save a validated appointment into the session of the user |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BEAN_NAME
| Constructor Detail |
|---|
public AppointmentFormService()
| Method Detail |
|---|
public String getHtmlForm(AppointmentForm form,
AppointmentFormMessages formMessages,
Locale locale,
boolean bDisplayFront,
javax.servlet.http.HttpServletRequest request)
form - the form which HTML code must be returnformMessages - The form messages associated with the formlocale - the localebDisplayFront - True if the entry will be displayed in Front Office,
false if it will be displayed in Back Office.request - HttpServletRequest
public void getHtmlEntry(int nIdEntry,
StringBuffer stringBuffer,
Locale locale,
boolean bDisplayFront,
javax.servlet.http.HttpServletRequest request)
nIdEntry - the key of the entry which HTML code must be insert in
the stringBufferstringBuffer - the buffer which contains the HTML codelocale - the localebDisplayFront - True if the entry will be displayed in Front Office,
false if it will be displayed in Back Office.request - HttpServletRequest
public List<fr.paris.lutece.plugins.genericattributes.business.GenericAttributeError> getResponseEntry(javax.servlet.http.HttpServletRequest request,
int nIdEntry,
Locale locale,
AppointmentDTO appointment)
AppointmentDTO. The key of
the map is this id of the entry, and the value the list of responses
request - the requestnIdEntry - the key of the entrylocale - the localeappointment - The appointment
public Boolean isFieldInTheResponseList(int nIdField,
List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse)
nIdField - the id of the field to searchlistResponse - the list of responses
public String getEntryUrl(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
entry - the entry
public void saveAppointmentInSession(javax.servlet.http.HttpSession session,
AppointmentDTO appointment)
session - The sessionappointment - The appointment to savepublic AppointmentDTO getAppointmentFromSession(javax.servlet.http.HttpSession session)
session - The session of the user
public void removeAppointmentFromSession(javax.servlet.http.HttpSession session)
session - The session
public void saveValidatedAppointmentForm(javax.servlet.http.HttpSession session,
Appointment appointment)
session - The sessionappointment - The appointment to savepublic Appointment getValidatedAppointmentFromSession(javax.servlet.http.HttpSession session)
session - The session of the user
public void removeValidatedAppointmentFromSession(javax.servlet.http.HttpSession session)
session - The sessionpublic AppointmentFormMessages getDefaultAppointmentFormMessage()
public void convertMapResponseToList(AppointmentDTO appointment)
appointment - The appointment to convertpublic boolean isFormFirstStep()
public boolean doMakeAppointment(Appointment appointment,
AppointmentForm form,
boolean bIsAdmin)
appointment - The appointment to makeform - The appointment form associated with the appointmentbIsAdmin - True if this method was called by an admin, false if it
was called by a regular user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||