Class IndexingSlotService
- java.lang.Object
-
- fr.paris.lutece.plugins.elasticdata.modules.appointment.service.IndexingSlotService
-
public class IndexingSlotService extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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, java.time.LocalDate startingDate, java.time.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 Detail
-
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, java.time.LocalDate startingDate, java.time.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
-
-