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 List<fr.paris.lutece.plugins.appointment.business.slot.Slot> |
getAllSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm,
LocalDate startingDateOfDisplay)
Get all the slots of a form by calling the method buildListSlot of the plugin RDV
|
static String |
getAppointmentId(int appointmentId,
String instanceName) |
static String |
getSlotUid(fr.paris.lutece.plugins.appointment.business.slot.Slot slot,
String instanceName)
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
|
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, String instanceName)
public static List<fr.paris.lutece.plugins.appointment.business.slot.Slot> getAllSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm, LocalDate startingDateOfDisplay)
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 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 formCopyright © 2019 City of Paris. All rights reserved.