Class DefaultUploadDataProcessorService
java.lang.Object
de.hybris.platform.acceleratorservices.dataexport.generic.impl.DefaultUploadDataProcessorService
- All Implemented Interfaces:
UploadDataProcessorService
Default implementation of
UploadDataProcessorService.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFind files matching the provided regex in the specified directoryprotected CronJobDaogetUploadCronJob(org.springframework.messaging.Message<File> message) get the cronjob configuration that generates this filehandlerError(org.springframework.messaging.support.ErrorMessage message) handle any exceptions that occur during transport.voidsetCronJobDao(CronJobDao cronJobDao)
-
Constructor Details
-
DefaultUploadDataProcessorService
public DefaultUploadDataProcessorService()
-
-
Method Details
-
getCronJobDao
-
setCronJobDao
-
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:UploadDataProcessorServiceFind files matching the provided regex in the specified directory- Specified by:
findFilesin interfaceUploadDataProcessorService- Parameters:
message- the messagefilenameRegex- filename regular expressiondirectory- the directory path to search within- Returns:
- a message that contains a list of found files
-
getUploadCronJob
Description copied from interface:UploadDataProcessorServiceget the cronjob configuration that generates this file- Specified by:
getUploadCronJobin interfaceUploadDataProcessorService- Parameters:
message- message that contains the file- Returns:
- the cronjob configuration
-
handlerError
Description copied from interface:UploadDataProcessorServicehandle any exceptions that occur during transport.- Specified by:
handlerErrorin interfaceUploadDataProcessorService- Returns:
- the file that had the issue
-