Class IndexingAppointmentService


  • public class IndexingAppointmentService
    extends java.lang.Object
    • Constructor Detail

      • IndexingAppointmentService

        public IndexingAppointmentService()
    • 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 DataSource
        appointmentHistoryDataSource - the appointment history DataSource
        nIdAppointment - the id of appointment to index
      • indexAppointment

        public void indexAppointment​(AppointmentDataSource appointmentDataSource,
                                     int nIdAppointment)
        Index appointment data object
        Parameters:
        appointmentDataSource - the appointment Datasource
        nIdAppointment - 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 DataSource
        appointmentHistoryDataSource - the appointment history DataSource
        nIdAppointment - 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