Class IndexingSlotService


  • public class IndexingSlotService
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void deleteSlotsForm​(fr.paris.lutece.plugins.elasticdata.business.DataSource dataSource, int nIdForm)
      Delete list slot of the form in the index
      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
      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
      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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 source
        apptFormdto - 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 source
        apptFormdto - 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 slot
        dataSource - 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 source
        nIdForm - the form id