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
public class SolrAppointmentIndexer extends java.lang.Object implements fr.paris.lutece.plugins.search.solr.indexer.SolrIndexerIndexer of the slots and forms of RDV V2- Author:
- Laurent Payen
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEAN_NAME
-
Constructor Summary
Constructors Constructor Description SolrAppointmentIndexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteFormAndListSlots(int nIdForm, java.lang.StringBuilder sbLogs)Delete the Appointment Form and all the related slots in SolrvoiddeleteSlot(fr.paris.lutece.plugins.appointment.business.slot.Slot slot, java.lang.StringBuilder sbLogs)Delete the slot in solrjava.util.List<fr.paris.lutece.plugins.search.solr.business.field.Field>getAdditionalFields()java.lang.StringgetDescription()java.util.List<fr.paris.lutece.plugins.search.solr.indexer.SolrItem>getDocuments(java.lang.String arg0)java.lang.StringgetName()java.util.List<java.lang.String>getResourcesName()java.lang.StringgetResourceUid(java.lang.String strResourceId, java.lang.String strResourceType)java.lang.StringgetVersion()java.util.List<java.lang.String>indexDocuments()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, java.lang.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, java.lang.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, java.lang.StringBuilder sbLogs, java.util.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
-
-
-
Field Detail
-
BEAN_NAME
public static final java.lang.String BEAN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
indexDocuments
public java.util.List<java.lang.String> indexDocuments()
- Specified by:
indexDocumentsin interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
getResourceUid
public java.lang.String getResourceUid(java.lang.String strResourceId, java.lang.String strResourceType)- Specified by:
getResourceUidin interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
getAdditionalFields
public java.util.List<fr.paris.lutece.plugins.search.solr.business.field.Field> getAdditionalFields()
- Specified by:
getAdditionalFieldsin interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
getDocuments
public java.util.List<fr.paris.lutece.plugins.search.solr.indexer.SolrItem> getDocuments(java.lang.String arg0)
- Specified by:
getDocumentsin interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
getResourcesName
public java.util.List<java.lang.String> getResourcesName()
- Specified by:
getResourcesNamein interfacefr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
-
getVersion
public java.lang.String 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 java.io.IOExceptionWrite the Appointment Form and all the slots of this form to Solr- Parameters:
appointmentForm- the appointment form- Throws:
java.io.IOException
-
writeFormAndListSlots
public void writeFormAndListSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm, java.lang.StringBuilder sbLogs) throws java.io.IOExceptionWrite the Appointment Form and all the related slots to Solr- Parameters:
appointmentForm- the Appointment FormsbLogs- the logs- Throws:
java.io.IOException
-
writeSlotAndForm
public void writeSlotAndForm(fr.paris.lutece.plugins.appointment.business.slot.Slot slot) throws java.io.IOExceptionWrite / 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:
java.io.IOException
-
writeSlotAndForm
public void writeSlotAndForm(fr.paris.lutece.plugins.appointment.business.slot.Slot slot, java.lang.StringBuilder sbLogs) throws java.io.IOExceptionWrite / 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:
java.io.IOException
-
writeSlotAndForm
public void writeSlotAndForm(fr.paris.lutece.plugins.appointment.business.slot.Slot slot, java.lang.StringBuilder sbLogs, java.util.Queue<fr.paris.lutece.plugins.appointment.business.slot.Slot> listSlotToIndex) throws java.io.IOExceptionWrite / 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:
java.io.IOException
-
deleteFormAndListSlots
public void deleteFormAndListSlots(int nIdForm, java.lang.StringBuilder sbLogs) throws org.apache.solr.client.solrj.SolrServerException, java.io.IOExceptionDelete 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.SolrServerExceptionjava.io.IOException
-
deleteSlot
public void deleteSlot(fr.paris.lutece.plugins.appointment.business.slot.Slot slot, java.lang.StringBuilder sbLogs) throws org.apache.solr.client.solrj.SolrServerException, java.io.IOExceptionDelete the slot in solr- Parameters:
slot- The slot to deletesbLogs- the logs- Throws:
org.apache.solr.client.solrj.SolrServerExceptionjava.io.IOException
-
-