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 void
void
Downloads passed byte array.void
download
(byte[] data, String resourceName, DownloadFormat format) Downloads passed byte array.void
Downloads a file from theFileStorage
retrieved byFileStorageLocator
using storage name from FileRef.void
download
(FileRef fileReference, DownloadFormat format) Downloads a file from theFileStorage
retrieved byFileStorageLocator
using storage name from FileRef.void
download
(DownloadDataProvider dataProvider, String resourceName) Downloads an arbitrary resource defined by a DownloadDataProvider.void
download
(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:ReportDownloader
Downloads an arbitrary resource defined by a DownloadDataProvider.- Specified by:
download
in interfaceReportDownloader
- Parameters:
dataProvider
- resource providerresourceName
- resource nameformat
- download format, can be null
-
download
Description copied from interface:ReportDownloader
Downloads an arbitrary resource defined by a DownloadDataProvider.- Specified by:
download
in interfaceReportDownloader
- Parameters:
dataProvider
- resource providerresourceName
- resource name
-
download
Description copied from interface:ReportDownloader
Downloads a file from theFileStorage
retrieved byFileStorageLocator
using storage name from FileRef.- Specified by:
download
in interfaceReportDownloader
- Parameters:
fileReference
- file reference
-
download
Description copied from interface:ReportDownloader
Downloads a file from theFileStorage
retrieved byFileStorageLocator
using storage name from FileRef.- Specified by:
download
in interfaceReportDownloader
- Parameters:
fileReference
- file referenceformat
- download format, can be null
-
download
Description copied from interface:ReportDownloader
Downloads passed byte array.- Specified by:
download
in interfaceReportDownloader
- Parameters:
data
- data in the form of byte arrayresourceName
- resource name
-
download
Description copied from interface:ReportDownloader
Downloads passed byte array.- Specified by:
download
in interfaceReportDownloader
- Parameters:
data
- data in the form of byte arrayresourceName
- resource nameformat
- download format, can be null
-