Class IndexingSlotService
java.lang.Object
fr.paris.lutece.plugins.elasticdata.modules.appointment.service.IndexingSlotService
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeleteSlotsForm(fr.paris.lutece.plugins.elasticdata.business.DataSource dataSource, int nIdForm) Delete list slot of the form in the indexstatic voidindexForm(fr.paris.lutece.plugins.elasticdata.business.DataSource dataSource, fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO apptFormDTO) Index the form and the slots in elastic-searchestatic voidindexFormByDateRange(fr.paris.lutece.plugins.elasticdata.business.DataSource dataSource, fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO apptFormDTO, LocalDate startingDate, LocalDate endingDate) Index the form and the slots in elastic-searchestatic voidindexSlot(int nIdSlot, fr.paris.lutece.plugins.elasticdata.business.DataSource dataSource) Index the slot (and the related form to have the good number of available places) in elasticsearch
-
Method Details
-
indexForm
public static void indexForm(fr.paris.lutece.plugins.elasticdata.business.DataSource dataSource, fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO apptFormDTO) Index the form and the slots in elastic-searche- Parameters:
dataSource- the data sourceapptFormdto- the form
-
indexFormByDateRange
public static void indexFormByDateRange(fr.paris.lutece.plugins.elasticdata.business.DataSource dataSource, fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO apptFormDTO, LocalDate startingDate, LocalDate endingDate) Index the form and the slots in elastic-searche- Parameters:
dataSource- the data sourceapptFormdto- the form
-
indexSlot
public static void indexSlot(int nIdSlot, fr.paris.lutece.plugins.elasticdata.business.DataSource dataSource) Index the slot (and the related form to have the good number of available places) in elasticsearch- Parameters:
nIdSlot- the id slotdataSource- the data source
-
deleteSlotsForm
public static void deleteSlotsForm(fr.paris.lutece.plugins.elasticdata.business.DataSource dataSource, int nIdForm) Delete list slot of the form in the index- Parameters:
dataSource- the data sourcenIdForm- the form id
-