Class IndexingAppointmentService

java.lang.Object
fr.paris.lutece.plugins.elasticdata.modules.appointment.service.IndexingAppointmentService

public class IndexingAppointmentService extends Object
  • Constructor Details

    • IndexingAppointmentService

      public IndexingAppointmentService()
  • Method Details

    • 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 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