Class SolrAppointmentIndexer

java.lang.Object
fr.paris.lutece.plugins.appointment.modules.solr.service.SolrAppointmentIndexer
All Implemented Interfaces:
fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer

@ApplicationScoped public class SolrAppointmentIndexer extends Object implements fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
Indexer of the slots and forms of RDV V2
Author:
Laurent Payen
  • Constructor Details

    • SolrAppointmentIndexer

      public SolrAppointmentIndexer()
  • Method Details

    • indexDocuments

      public List<String> indexDocuments()
      Specified by:
      indexDocuments in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
    • getResourceUid

      public String getResourceUid(String strResourceId, String strResourceType)
      Specified by:
      getResourceUid in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
    • getAdditionalFields

      public List<fr.paris.lutece.plugins.search.solr.business.field.Field> getAdditionalFields()
      Specified by:
      getAdditionalFields in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
    • getDocuments

      public List<fr.paris.lutece.plugins.search.solr.indexer.SolrItem> getDocuments(String arg0)
      Specified by:
      getDocuments in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
    • getName

      public String getName()
      Specified by:
      getName in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
    • getResourcesName

      public List<String> getResourcesName()
      Specified by:
      getResourcesName in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
    • isEnable

      public boolean isEnable()
      Specified by:
      isEnable in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
    • writeFormAndListSlots

      public void writeFormAndListSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm) throws IOException
      Write the Appointment Form and all the slots of this form to Solr
      Parameters:
      appointmentForm - the appointment form
      Throws:
      IOException
    • writeFormAndListSlots

      public void writeFormAndListSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm, StringBuilder sbLogs) throws IOException
      Write the Appointment Form and all the related slots to Solr
      Parameters:
      appointmentForm - the Appointment Form
      sbLogs - the logs
      Throws:
      IOException
    • writeSlotAndForm

      public void writeSlotAndForm(fr.paris.lutece.plugins.appointment.business.slot.Slot slot) throws IOException
      Write / Update the slot and then the related form (for the number of available places) to Solr
      Parameters:
      nIdSlot - The id of the slot to write / update
      Throws:
      IOException
    • writeSlotAndForm

      public void writeSlotAndForm(fr.paris.lutece.plugins.appointment.business.slot.Slot slot, StringBuilder sbLogs) throws IOException
      Write / Update the slot and then the related form (for the number of available places) to Solr
      Parameters:
      nIdSlot - The id of the slot to write / update
      Throws:
      IOException
    • writeSlotAndForm

      public void writeSlotAndForm(fr.paris.lutece.plugins.appointment.business.slot.Slot slot, StringBuilder sbLogs, Queue<fr.paris.lutece.plugins.appointment.business.slot.Slot> listSlotToIndex) throws IOException
      Write / update the slot and the related form (for the number of available places) in solr
      Parameters:
      nIdSlot - The id of the slot
      sbLogs - the logs
      Throws:
      IOException
    • deleteFormAndListSlots

      public void deleteFormAndListSlots(int nIdForm, StringBuilder sbLogs) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Delete the Appointment Form and all the related slots in Solr
      Parameters:
      nIdForm - The id of the Form
      sbLogs - the logs
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException
    • deleteSlot

      public void deleteSlot(fr.paris.lutece.plugins.appointment.business.slot.Slot slot, StringBuilder sbLogs) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Delete the slot in solr
      Parameters:
      slot - The slot to delete
      sbLogs - the logs
      Throws:
      org.apache.solr.client.solrj.SolrServerException
      IOException