public class SolrAppointmentIndexer extends Object implements fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
Constructor and Description |
---|
SolrAppointmentIndexer() |
Modifier and Type | Method and Description |
---|---|
void |
deleteFormAndListSlots(int nIdForm,
StringBuffer sbLogs)
Delete the Appointment Form and all the related slots in Solr
|
void |
deleteSlot(fr.paris.lutece.plugins.appointment.business.slot.Slot slot,
StringBuffer sbLogs)
Delete the slot in solr
|
List<fr.paris.lutece.plugins.search.solr.business.field.Field> |
getAdditionalFields() |
String |
getDescription() |
List<fr.paris.lutece.plugins.search.solr.indexer.SolrItem> |
getDocuments(String arg0) |
String |
getName() |
List<String> |
getResourcesName() |
String |
getResourceUid(String strResourceId,
String strResourceType) |
String |
getVersion() |
List<String> |
indexDocuments() |
boolean |
isEnable() |
void |
writeFormAndListSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm)
Write the Appointment Form and all the slots of this form to Solr
|
void |
writeFormAndListSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm,
StringBuffer sbLogs)
Write the Appointment Form and all the related slots to Solr
|
void |
writeSlotAndForm(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 Solr
|
void |
writeSlotAndForm(fr.paris.lutece.plugins.appointment.business.slot.Slot slot,
StringBuffer sbLogs)
Write / update the slot and the related form (for the number of available places) in solr
|
public static final String BEAN_NAME
public List<String> indexDocuments()
indexDocuments
in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
public String getResourceUid(String strResourceId, String strResourceType)
getResourceUid
in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
public List<fr.paris.lutece.plugins.search.solr.business.field.Field> getAdditionalFields()
getAdditionalFields
in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
public String getDescription()
getDescription
in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
public List<fr.paris.lutece.plugins.search.solr.indexer.SolrItem> getDocuments(String arg0)
getDocuments
in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
public String getName()
getName
in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
public List<String> getResourcesName()
getResourcesName
in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
public String getVersion()
getVersion
in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
public boolean isEnable()
isEnable
in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexer
public void writeFormAndListSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm) throws org.apache.lucene.index.CorruptIndexException, IOException
appointmentForm
- the appointment formorg.apache.lucene.index.CorruptIndexException
IOException
public void writeFormAndListSlots(fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO appointmentForm, StringBuffer sbLogs) throws org.apache.lucene.index.CorruptIndexException, IOException
appointmentForm
- the Appointment FormsbLogs
- the logsorg.apache.lucene.index.CorruptIndexException
IOException
public void writeSlotAndForm(fr.paris.lutece.plugins.appointment.business.slot.Slot slot) throws org.apache.lucene.index.CorruptIndexException, IOException
nIdSlot
- The id of the slot to write / updateorg.apache.lucene.index.CorruptIndexException
IOException
public void writeSlotAndForm(fr.paris.lutece.plugins.appointment.business.slot.Slot slot, StringBuffer sbLogs) throws org.apache.lucene.index.CorruptIndexException, IOException
nIdSlot
- The id of the slotsbLogs
- the logsorg.apache.lucene.index.CorruptIndexException
IOException
public void deleteFormAndListSlots(int nIdForm, StringBuffer sbLogs) throws org.apache.solr.client.solrj.SolrServerException, IOException
nIdForm
- The id of the FormsbLogs
- the logsorg.apache.solr.client.solrj.SolrServerException
IOException
public void deleteSlot(fr.paris.lutece.plugins.appointment.business.slot.Slot slot, StringBuffer sbLogs) throws org.apache.solr.client.solrj.SolrServerException, IOException
slot
- The slot to deletesbLogs
- the logsorg.apache.solr.client.solrj.SolrServerException
IOException
Copyright © 2018 City of Paris. All rights reserved.