Class DefaultExportDownloadService
- java.lang.Object
-
- com.broadleafcommerce.common.dataexport.service.DefaultExportDownloadService
-
- All Implemented Interfaces:
ExportDownloadService
public class DefaultExportDownloadService extends Object implements ExportDownloadService
- Author:
- Samarth Dhruva (samarthd)
-
-
Constructor Summary
Constructors Constructor Description DefaultExportDownloadService(ExportService<Export> exportService, StorageService storageService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<org.springframework.core.io.Resource>
getExportFile(String exportId)
Returns the export file resource for the given export.
-
-
-
Constructor Detail
-
DefaultExportDownloadService
public DefaultExportDownloadService(ExportService<Export> exportService, StorageService storageService)
-
-
Method Detail
-
getExportFile
public Optional<org.springframework.core.io.Resource> getExportFile(String exportId)
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
-
-