public final class AppointmentService extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addAppointmentResponses(AppointmentDTO appointmentDto)
Fill the appointment data transfer object with complementary appointment responses
|
static AppointmentDTO |
buildAppointmentDTOFromIdAppointment(int nIdAppointment)
Build an appointment DTO from the id of an appointment business object
|
static AppointmentDTO |
buildAppointmentDTOFromRefAppointment(String refAppointment)
Build an appointment DTO from the id of an appointment business object
|
static void |
buildListAppointmentSlot(AppointmentDTO appointmentDTO) |
static void |
deleteAppointment(int nIdAppointment)
Delete an appointment (and update the number of remaining places of the related slot)
|
static Appointment |
findAppointmentById(int nIdAppointment)
Find an appointment by its primary key
|
static List<AppointmentDTO> |
findAppointmentByMailAndCategory(int nIdCategory,
String mail)
Find a list of appointments by id category and mail
|
static Appointment |
findAppointmentByReference(String strReference)
Find an appointment by its reference
|
static List<Appointment> |
findListAppointmentByIdForm(int nIdForm)
Find the appointments by form
|
static List<Appointment> |
findListAppointmentByListSlot(List<Slot> listSlot)
Find all the appointments of the slots given in parameter
|
static List<Appointment> |
findListAppointmentBySlot(int nIdSlot)
Find the appointments of a slot
|
static List<Appointment> |
findListAppointmentByUserGuid(String strGuidUser)
Find the appointments of a user by guid
|
static List<Appointment> |
findListAppointmentByUserId(int nIdUser)
Find the appointments of a user
|
static List<Appointment> |
findListAppointmentsByFilter(AppointmentFilterDTO appointmentFilter)
Find a list of appointments matching the filter
|
static List<AppointmentDTO> |
findListAppointmentsDTOByFilter(AppointmentFilterDTO appointmentFilter)
Find a list of appointments matching the filter
|
static int |
saveAppointment(AppointmentDTO appointmentDTO)
Save an appointment in database
|
static int |
saveAppointment(AppointmentDTO appointmentDTO,
javax.servlet.http.HttpServletRequest request)
Save an appointment in database
|
static void |
updateAppointment(Appointment appointment)
Update an appointment in database
|
static void |
updateAppointmentDTO(int nIdappointment,
User user,
List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse,
boolean deleteBoOnly)
Update an appointment DTO in database
|
public static List<Appointment> findListAppointmentByListSlot(List<Slot> listSlot)
listSlot - the list of slotspublic static List<Appointment> findListAppointmentBySlot(int nIdSlot)
nIdSlot - the slot Idpublic static List<Appointment> findListAppointmentByUserId(int nIdUser)
nIdUser - the user Idpublic static List<Appointment> findListAppointmentByUserGuid(String strGuidUser)
nIdUser - the user guidpublic static List<Appointment> findListAppointmentByIdForm(int nIdForm)
nIdForm - the form Idpublic static Appointment findAppointmentById(int nIdAppointment)
nIdAppointment - the appointment Idpublic static Appointment findAppointmentByReference(String strReference)
strReference - the appointment Referencepublic static List<AppointmentDTO> findListAppointmentsDTOByFilter(AppointmentFilterDTO appointmentFilter)
appointmentFilter - the filterpublic static List<AppointmentDTO> findAppointmentByMailAndCategory(int nIdCategory, String mail)
nIdCategory - the id categorymail - the mailpublic static List<Appointment> findListAppointmentsByFilter(AppointmentFilterDTO appointmentFilter)
appointmentFilter - public static void addAppointmentResponses(AppointmentDTO appointmentDto)
appointmentDto - The appointmentDTO objectpublic static void deleteAppointment(int nIdAppointment)
nIdAppointment - the id of the appointment to deleteException - the exceptionpublic static AppointmentDTO buildAppointmentDTOFromIdAppointment(int nIdAppointment)
nIdAppointment - the id of the appointmentpublic static AppointmentDTO buildAppointmentDTOFromRefAppointment(String refAppointment)
nIdAppointment - the id of the appointmentpublic static void updateAppointmentDTO(int nIdappointment,
User user,
List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse,
boolean deleteBoOnly)
nIdappointment - the id appointmentuser - the userlistResponse - the listResponsedeleteBoOnly - if the action is Bo onlypublic static void updateAppointment(Appointment appointment)
appointment - the appointment to updatepublic static int saveAppointment(AppointmentDTO appointmentDTO)
appointmentDTO - the appointment dtoExceptionpublic static int saveAppointment(AppointmentDTO appointmentDTO, javax.servlet.http.HttpServletRequest request)
appointmentDTO - the appointment dtoExceptionpublic static void buildListAppointmentSlot(AppointmentDTO appointmentDTO)
Copyright © 2021 City of Paris. All rights reserved.