Class IndexingAppointmentService
java.lang.Object
fr.paris.lutece.plugins.elasticdata.modules.appointment.service.IndexingAppointmentService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<fr.paris.lutece.plugins.elasticdata.business.DataObject>buildDataObjects(List<Integer> listIdDataObject) build data object to indexingList<fr.paris.lutece.plugins.elasticdata.business.DataObject>buildHistoryWfDataObjects(List<Integer> listIdDataObjects) Build history workflow data objectsvoiddeleteAppointmentAndHistory(AppointmentDataSource appointmentDataSource, AppointmentHistoryDataSource appointmentHistoryDataSource, int nIdAppointment) Delete appointment in the index and his workflow historystatic IndexingAppointmentServiceReturn 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
-
Constructor Details
-
IndexingAppointmentService
public IndexingAppointmentService()
-
-
Method Details
-
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
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 List<fr.paris.lutece.plugins.elasticdata.business.DataObject> buildDataObjects(List<Integer> listIdDataObject) build data object to indexing- Parameters:
listIdDataObject- the list of data object- Returns:
- the list of data object
-
buildHistoryWfDataObjects
public List<fr.paris.lutece.plugins.elasticdata.business.DataObject> buildHistoryWfDataObjects(List<Integer> listIdDataObjects) Build history workflow data objects- Parameters:
listIdDataObjects- the list id resources/appointment- Returns:
- list DataObject
-