Class ReportDownloaderImpl
java.lang.Object
io.jmix.reportsflowui.download.impl.ReportDownloaderImpl
- All Implemented Interfaces:
ReportDownloader
@Component("report_ReportDownloader")
@Scope("prototype")
public class ReportDownloaderImpl
extends Object
implements ReportDownloader
Shows report data in the web browser or downloads it.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReportDownloaderImpl(Downloader downloader, ReportsProperties reportsProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidDownloads passed byte array.voiddownload(byte[] data, String resourceName, DownloadFormat format) Downloads passed byte array.voidDownloads a file from theFileStorageretrieved byFileStorageLocatorusing storage name from FileRef.voiddownload(FileRef fileReference, DownloadFormat format) Downloads a file from theFileStorageretrieved byFileStorageLocatorusing storage name from FileRef.voiddownload(DownloadDataProvider dataProvider, String resourceName) Downloads an arbitrary resource defined by a DownloadDataProvider.voiddownload(DownloadDataProvider dataProvider, String resourceName, DownloadFormat format) Downloads an arbitrary resource defined by a DownloadDataProvider.
-
Field Details
-
downloader
-
reportsProperties
-
-
Constructor Details
-
ReportDownloaderImpl
-
-
Method Details
-
configureDownloader
protected void configureDownloader() -
download
public void download(DownloadDataProvider dataProvider, String resourceName, @Nullable DownloadFormat format) Description copied from interface:ReportDownloaderDownloads an arbitrary resource defined by a DownloadDataProvider.- Specified by:
downloadin interfaceReportDownloader- Parameters:
dataProvider- resource providerresourceName- resource nameformat- download format, can be null
-
download
Description copied from interface:ReportDownloaderDownloads an arbitrary resource defined by a DownloadDataProvider.- Specified by:
downloadin interfaceReportDownloader- Parameters:
dataProvider- resource providerresourceName- resource name
-
download
Description copied from interface:ReportDownloaderDownloads a file from theFileStorageretrieved byFileStorageLocatorusing storage name from FileRef.- Specified by:
downloadin interfaceReportDownloader- Parameters:
fileReference- file reference
-
download
Description copied from interface:ReportDownloaderDownloads a file from theFileStorageretrieved byFileStorageLocatorusing storage name from FileRef.- Specified by:
downloadin interfaceReportDownloader- Parameters:
fileReference- file referenceformat- download format, can be null
-
download
Description copied from interface:ReportDownloaderDownloads passed byte array.- Specified by:
downloadin interfaceReportDownloader- Parameters:
data- data in the form of byte arrayresourceName- resource name
-
download
Description copied from interface:ReportDownloaderDownloads passed byte array.- Specified by:
downloadin interfaceReportDownloader- Parameters:
data- data in the form of byte arrayresourceName- resource nameformat- download format, can be null
-