Class DefaultUploadDataProcessorService

java.lang.Object
de.hybris.platform.acceleratorservices.dataexport.generic.impl.DefaultUploadDataProcessorService
All Implemented Interfaces:
UploadDataProcessorService

public class DefaultUploadDataProcessorService extends Object implements UploadDataProcessorService
Default implementation of UploadDataProcessorService.
  • Constructor Details

    • DefaultUploadDataProcessorService

      public DefaultUploadDataProcessorService()
  • Method Details

    • getCronJobDao

      protected CronJobDao getCronJobDao()
    • setCronJobDao

      public void setCronJobDao(CronJobDao cronJobDao)
    • findFiles

      public org.springframework.messaging.Message<List<File>> findFiles(org.springframework.messaging.Message<?> message, @Header("filenameRegex") String filenameRegex, @Header("directory") String directory)
      Description copied from interface: UploadDataProcessorService
      Find files matching the provided regex in the specified directory
      Specified by:
      findFiles in interface UploadDataProcessorService
      Parameters:
      message - the message
      filenameRegex - filename regular expression
      directory - the directory path to search within
      Returns:
      a message that contains a list of found files
    • getUploadCronJob

      public CronJobModel getUploadCronJob(org.springframework.messaging.Message<File> message)
      Description copied from interface: UploadDataProcessorService
      get the cronjob configuration that generates this file
      Specified by:
      getUploadCronJob in interface UploadDataProcessorService
      Parameters:
      message - message that contains the file
      Returns:
      the cronjob configuration
    • handlerError

      public File handlerError(org.springframework.messaging.support.ErrorMessage message)
      Description copied from interface: UploadDataProcessorService
      handle any exceptions that occur during transport.
      Specified by:
      handlerError in interface UploadDataProcessorService
      Returns:
      the file that had the issue