Class IndexingAppointmentService
- java.lang.Object
-
- fr.paris.lutece.plugins.elasticdata.modules.appointment.service.IndexingAppointmentService
-
public class IndexingAppointmentService extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description IndexingAppointmentService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<fr.paris.lutece.plugins.elasticdata.business.DataObject>buildDataObjects(java.util.List<java.lang.Integer> listIdDataObject)build data object to indexingjava.util.List<fr.paris.lutece.plugins.elasticdata.business.DataObject>buildHistoryWfDataObjects(java.util.List<java.lang.Integer> listIdDataObjects)Build history workflow data objectsvoiddeleteAppointmentAndHistory(AppointmentDataSource appointmentDataSource, AppointmentHistoryDataSource appointmentHistoryDataSource, int nIdAppointment)Delete appointment in the index and his workflow historystatic IndexingAppointmentServicegetService()Return an instance of Indexing Appointment ServicevoidindexAppointment(AppointmentDataSource appointmentDataSource, int nIdAppointment)Index appointment data objectvoidindexAppointmentStateAndHistory(AppointmentDataSource appointmentDataSource, AppointmentHistoryDataSource appointmentHistoryDataSource, int nIdAppointment)index appointmentpartial data object and history data object
-
-
-
Method Detail
-
getService
public static IndexingAppointmentService getService()
Return an instance of Indexing Appointment Service- Returns:
- instance of IndexingAppointmentService
-
indexAppointmentStateAndHistory
public void indexAppointmentStateAndHistory(AppointmentDataSource appointmentDataSource, AppointmentHistoryDataSource appointmentHistoryDataSource, int nIdAppointment)
index appointmentpartial data object and history data object- Parameters:
appointmentDataSource- the appointment DataSourceappointmentHistoryDataSource- the appointment history DataSourcenIdAppointment- the id of appointment to index
-
indexAppointment
public void indexAppointment(AppointmentDataSource appointmentDataSource, int nIdAppointment)
Index appointment data object- Parameters:
appointmentDataSource- the appointment DatasourcenIdAppointment- the id of appointment to index
-
deleteAppointmentAndHistory
public void deleteAppointmentAndHistory(AppointmentDataSource appointmentDataSource, AppointmentHistoryDataSource appointmentHistoryDataSource, int nIdAppointment)
Delete appointment in the index and his workflow history- Parameters:
appointmentDataSource- the appointment DataSourceappointmentHistoryDataSource- the appointment history DataSourcenIdAppointment- the appointment id to remove in the index
-
buildDataObjects
public java.util.List<fr.paris.lutece.plugins.elasticdata.business.DataObject> buildDataObjects(java.util.List<java.lang.Integer> listIdDataObject)
build data object to indexing- Parameters:
listIdDataObject- the list of data object- Returns:
- the list of data object
-
buildHistoryWfDataObjects
public java.util.List<fr.paris.lutece.plugins.elasticdata.business.DataObject> buildHistoryWfDataObjects(java.util.List<java.lang.Integer> listIdDataObjects)
Build history workflow data objects- Parameters:
listIdDataObjects- the list id resources/appointment- Returns:
- list DataObject
-
-