public final class AppointmentService extends Object
Modifier and Type | Method and Description |
---|---|
static AppointmentDTO |
buildAppointmentDTOFromIdAppointment(int nIdAppointment)
Build an appointment DTO from the id of an appointment business object
|
static void |
deleteAppointment(Appointment appointment)
Delete an appointment
|
static void |
deleteAppointment(int nIdAppointment,
fr.paris.lutece.portal.business.user.AdminUser user)
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 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> |
findListAppointmentByUserId(int nIdUser)
Find the appointments of a user
|
static List<Appointment> |
findListAppointmentsByFilter(AppointmentFilterDTO appointmentFilter) |
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 void |
updateAppointment(Appointment appointment)
Update an appointment 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> findListAppointmentByIdForm(int nIdForm)
nIdForm
- the form Idpublic static int saveAppointment(AppointmentDTO appointmentDTO)
appointmentDTO
- the appointment dtopublic 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<Appointment> findListAppointmentsByFilter(AppointmentFilterDTO appointmentFilter)
public static void deleteAppointment(int nIdAppointment, fr.paris.lutece.portal.business.user.AdminUser user) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
nIdAppointment
- the id of the appointment to deletefr.paris.lutece.portal.service.admin.AccessDeniedException
public static void deleteAppointment(Appointment appointment)
appointment
- the appointment to deletepublic static AppointmentDTO buildAppointmentDTOFromIdAppointment(int nIdAppointment)
nIdAppointment
- the id of the appointmentpublic static void updateAppointment(Appointment appointment)
appointment
- the appointment to updateCopyright © 2018 City of Paris. All rights reserved.