Class DefaultExportDataHistoryService

java.lang.Object
de.hybris.platform.acceleratorservices.dataexport.generic.impl.DefaultExportDataHistoryService
All Implemented Interfaces:
ExportDataHistoryService

public class DefaultExportDataHistoryService extends Object implements ExportDataHistoryService
Default implementation of DefaultExportDataHistoryService.
  • Constructor Details

    • DefaultExportDataHistoryService

      public DefaultExportDataHistoryService()
  • Method Details

    • getModelService

      protected ModelService getModelService()
    • setModelService

      public void setModelService(ModelService modelService)
    • getCronJobDao

      protected CronJobDao getCronJobDao()
    • setCronJobDao

      public void setCronJobDao(CronJobDao cronJobDao)
    • recordExportStart

      public ExportDataEvent recordExportStart(ExportDataEvent payload, @Header("timestamp") Long timestamp)
      Description copied from interface: ExportDataHistoryService
      Record the beginning of an export.
      Specified by:
      recordExportStart in interface ExportDataHistoryService
      Parameters:
      payload - The object that contains the information required to export data
      timestamp - The time the export started
      Returns:
      ExportDataEvent
    • recordExportEnd

      public void recordExportEnd(org.springframework.messaging.Message<?> message, @Header("event") ExportDataEvent ede, @Header("processedCount") Integer count)
      Description copied from interface: ExportDataHistoryService
      Recording the end of the generation of data.
      Specified by:
      recordExportEnd in interface ExportDataHistoryService
      ede - Export data event that contains the cronjobs code
      count - The size of the list of generated items
    • getLatestHistoryModel

      protected ExportDataHistoryEntryModel getLatestHistoryModel(ExportDataCronJobModel exportDataCronJob)
    • handleError

      public void handleError(Throwable payload)
      Saves a historical entry for the error in case it is a MessagingException
      Parameters:
      payload - the error payload
    • prepareExportDataHistory

      protected void prepareExportDataHistory(org.springframework.messaging.MessagingException handlingException, Object event)