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.SolrIndexerpublic String getResourceUid(String strResourceId, String strResourceType)
getResourceUid in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexerpublic List<fr.paris.lutece.plugins.search.solr.business.field.Field> getAdditionalFields()
getAdditionalFields in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexerpublic String getDescription()
getDescription in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexerpublic List<fr.paris.lutece.plugins.search.solr.indexer.SolrItem> getDocuments(String arg0)
getDocuments in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexerpublic String getName()
getName in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexerpublic List<String> getResourcesName()
getResourcesName in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexerpublic String getVersion()
getVersion in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexerpublic boolean isEnable()
isEnable in interface fr.paris.lutece.plugins.search.solr.indexer.SolrIndexerpublic 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.CorruptIndexExceptionIOExceptionpublic 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.CorruptIndexExceptionIOExceptionpublic 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.CorruptIndexExceptionIOExceptionpublic 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.CorruptIndexExceptionIOExceptionpublic 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.SolrServerExceptionIOExceptionpublic 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.SolrServerExceptionIOExceptionCopyright © 2018 City of Paris. All rights reserved.