Class DefaultExportDownloadService
java.lang.Object
com.broadleafcommerce.common.dataexport.service.DefaultExportDownloadService
- All Implemented Interfaces:
ExportDownloadService
- Author:
- Samarth Dhruva (samarthd)
-
Constructor Summary
ConstructorDescriptionDefaultExportDownloadService
(ExportService<Export> exportService, StorageService storageService) -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.springframework.core.io.Resource>
getExportFile
(String exportId) Returns the export file resource for the given export.
-
Constructor Details
-
DefaultExportDownloadService
public DefaultExportDownloadService(ExportService<Export> exportService, StorageService storageService)
-
-
Method Details
-
getExportFile
Description copied from interface:ExportDownloadService
Returns the export file resource for the given export.- Specified by:
getExportFile
in interfaceExportDownloadService
- Parameters:
exportId
- the ID of the export whose file should be retrieved- Returns:
- the export file resource, or empty if nothing was found for the given export
-