Class DefaultExportDataHistoryService
java.lang.Object
de.hybris.platform.acceleratorservices.dataexport.generic.impl.DefaultExportDataHistoryService
- All Implemented Interfaces:
ExportDataHistoryService
Default implementation of
DefaultExportDataHistoryService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CronJobDaoprotected ExportDataHistoryEntryModelgetLatestHistoryModel(ExportDataCronJobModel exportDataCronJob) protected ModelServicevoidhandleError(Throwable payload) Saves a historical entry for the error in case it is aMessagingExceptionprotected voidprepareExportDataHistory(org.springframework.messaging.MessagingException handlingException, Object event) voidrecordExportEnd(org.springframework.messaging.Message<?> message, ExportDataEvent ede, Integer count) Recording the end of the generation of data.recordExportStart(ExportDataEvent payload, Long timestamp) Record the beginning of an export.voidsetCronJobDao(CronJobDao cronJobDao) voidsetModelService(ModelService modelService)
-
Constructor Details
-
DefaultExportDataHistoryService
public DefaultExportDataHistoryService()
-
-
Method Details
-
getModelService
-
setModelService
-
getCronJobDao
-
setCronJobDao
-
recordExportStart
public ExportDataEvent recordExportStart(ExportDataEvent payload, @Header("timestamp") Long timestamp) Description copied from interface:ExportDataHistoryServiceRecord the beginning of an export.- Specified by:
recordExportStartin interfaceExportDataHistoryService- Parameters:
payload- The object that contains the information required to export datatimestamp- 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:ExportDataHistoryServiceRecording the end of the generation of data.- Specified by:
recordExportEndin interfaceExportDataHistoryServiceede- Export data event that contains the cronjobs codecount- The size of the list of generated items
-
getLatestHistoryModel
protected ExportDataHistoryEntryModel getLatestHistoryModel(ExportDataCronJobModel exportDataCronJob) -
handleError
Saves a historical entry for the error in case it is aMessagingException- Parameters:
payload- the error payload
-
prepareExportDataHistory
protected void prepareExportDataHistory(org.springframework.messaging.MessagingException handlingException, Object event)
-