public final class AppointmentSlotUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
INSTANCE_NAME |
static String |
PROPERTY_SITE |
static DateTimeFormatter |
SLOT__ID_DATE_FORMATTER |
| Modifier and Type | Method and Description |
|---|---|
static AppointmentDataObject |
buildAppointmentDataObject(AppointmentDataObject apptData,
List<fr.paris.lutece.plugins.appointment.business.slot.Slot> listSlots,
LocalDateTime localTime,
AppointmentForm appointmentForm) |
static String |
buildQuery(int idForm)
build query for delete a document into elastic-search
|
static String |
buildQueryDateRange(int idForm,
long startingDate,
long endingDate)
build query for delete a document into elastic-search
|
static String |
buildQueryIdResource(int idResource)
build query for delete a document into elastic-search
|
static int |
calculateConsecutiveSlots(fr.paris.lutece.plugins.appointment.business.slot.Slot slot,
List<fr.paris.lutece.plugins.appointment.business.slot.Slot> allSlots) |
static List<fr.paris.lutece.plugins.appointment.business.slot.Slot> |
getAllSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm)
Get all the slots of a form by calling the method buildListSlot of the plugin RDV
|
static List<fr.paris.lutece.plugins.appointment.business.slot.Slot> |
getAllSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm,
int nNbPlacesToTake)
Get all the slots of a form by calling the method buildListSlot of the plugin RDV
|
static List<fr.paris.lutece.plugins.appointment.business.slot.Slot> |
getAllSlotsToFullIndexing(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm)
Get all the slots of a form by calling the method buildListSlot of the plugin RDV
|
static String |
getSlotUid(fr.paris.lutece.plugins.appointment.business.slot.Slot slot)
Generate a unique ID for solr.
|
static fr.paris.lutece.plugins.workflowcore.business.state.State |
getState(int idAppointment,
int idWorkflow)
Get the state of appointment
|
static long |
getTimeUntilAvailability(List<fr.paris.lutece.plugins.appointment.business.slot.Slot> listAvailableSlots,
LocalDateTime localTime,
LocalDateTime startAppointment)
Get the state of appointment
|
public static final String PROPERTY_SITE
public static final DateTimeFormatter SLOT__ID_DATE_FORMATTER
public static final String INSTANCE_NAME
public static String getSlotUid(fr.paris.lutece.plugins.appointment.business.slot.Slot slot)
public static List<fr.paris.lutece.plugins.appointment.business.slot.Slot> getAllSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm, int nNbPlacesToTake)
appointmentForm - the appointment formpublic static List<fr.paris.lutece.plugins.appointment.business.slot.Slot> getAllSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm)
appointmentForm - the appointment formpublic static List<fr.paris.lutece.plugins.appointment.business.slot.Slot> getAllSlotsToFullIndexing(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm)
appointmentForm - the appointment formpublic static fr.paris.lutece.plugins.workflowcore.business.state.State getState(int idAppointment,
int idWorkflow)
idAppointment - The id appointmentidWorkflow - The if formpublic static String buildQuery(int idForm)
idForm - the Id formpublic static String buildQueryDateRange(int idForm, long startingDate, long endingDate)
idForm - the Id formpublic static String buildQueryIdResource(int idResource)
idForm - the Id formpublic static AppointmentDataObject buildAppointmentDataObject(AppointmentDataObject apptData, List<fr.paris.lutece.plugins.appointment.business.slot.Slot> listSlots, LocalDateTime localTime, AppointmentForm appointmentForm)
apptData - the AppointmentDataObjectlistSlots - The list slotslocalTime - The localTimeappointmentForm - The appointment formpublic static long getTimeUntilAvailability(List<fr.paris.lutece.plugins.appointment.business.slot.Slot> listAvailableSlots, LocalDateTime localTime, LocalDateTime startAppointment)
listAvailableSlots - The list of available slotsidWorkflow - The if formpublic static int calculateConsecutiveSlots(fr.paris.lutece.plugins.appointment.business.slot.Slot slot,
List<fr.paris.lutece.plugins.appointment.business.slot.Slot> allSlots)
Copyright © 2022 City of Paris. All rights reserved.