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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteFormAndListSlots(int nIdForm, StringBuilder sbLogs) Delete the Appointment Form and all the related slots in SolrvoiddeleteSlot(fr.paris.lutece.plugins.appointment.business.slot.Slot slot, StringBuilder sbLogs) Delete the slot in solrList<fr.paris.lutece.plugins.search.solr.business.field.Field>List<fr.paris.lutece.plugins.search.solr.indexer.SolrItem>getDocuments(String arg0) getName()getResourceUid(String strResourceId, String strResourceType) booleanisEnable()voidwriteFormAndListSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm) Write the Appointment Form and all the slots of this form to SolrvoidwriteFormAndListSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm, StringBuilder sbLogs) Write the Appointment Form and all the related slots to SolrvoidwriteSlotAndForm(fr.paris.lutece.plugins.appointment.business.slot.Slot slot) Write / Update the slot and then the related form (for the number of available places) to SolrvoidwriteSlotAndForm(fr.paris.lutece.plugins.appointment.business.slot.Slot slot, StringBuilder sbLogs) Write / Update the slot and then the related form (for the number of available places) to SolrvoidwriteSlotAndForm(fr.paris.lutece.plugins.appointment.business.slot.Slot slot, StringBuilder sbLogs, Queue<fr.paris.lutece.plugins.appointment.business.slot.Slot> listSlotToIndex) Write / update the slot and the related form (for the number of available places) in solr
-
Constructor Details
-
SolrAppointmentIndexer
public SolrAppointmentIndexer()
-
-
Method Details
-
indexDocuments
- Specified by:
indexDocumentsin interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
getResourceUid
- Specified by:
getResourceUidin interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
getAdditionalFields
- Specified by:
getAdditionalFieldsin interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
getDescription
- Specified by:
getDescriptionin interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
getDocuments
- Specified by:
getDocumentsin interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
getName
- Specified by:
getNamein interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
getResourcesName
- Specified by:
getResourcesNamein interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
getVersion
- Specified by:
getVersionin interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
isEnable
public boolean isEnable()- Specified by:
isEnablein interfacefr.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 FormsbLogs- 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 slotsbLogs- 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 FormsbLogs- the logs- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
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 deletesbLogs- the logs- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-