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 Details

  • Constructor Details

  • 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 interface ReportDownloader
      Parameters:
      dataProvider - resource provider
      resourceName - resource name
      format - download format, can be null
    • download

      public void download(DownloadDataProvider dataProvider, String resourceName)
      Description copied from interface: ReportDownloader
      Downloads an arbitrary resource defined by a DownloadDataProvider.
      Specified by:
      download in interface ReportDownloader
      Parameters:
      dataProvider - resource provider
      resourceName - resource name
    • download

      public void download(FileRef fileReference)
      Description copied from interface: ReportDownloader
      Downloads a file from the FileStorage retrieved by FileStorageLocator using storage name from FileRef.
      Specified by:
      download in interface ReportDownloader
      Parameters:
      fileReference - file reference
    • download

      public void download(FileRef fileReference, @Nullable DownloadFormat format)
      Description copied from interface: ReportDownloader
      Downloads a file from the FileStorage retrieved by FileStorageLocator using storage name from FileRef.
      Specified by:
      download in interface ReportDownloader
      Parameters:
      fileReference - file reference
      format - download format, can be null
    • download

      public void download(byte[] data, String resourceName)
      Description copied from interface: ReportDownloader
      Downloads passed byte array.
      Specified by:
      download in interface ReportDownloader
      Parameters:
      data - data in the form of byte array
      resourceName - resource name
    • download

      public void download(byte[] data, String resourceName, @Nullable DownloadFormat format)
      Description copied from interface: ReportDownloader
      Downloads passed byte array.
      Specified by:
      download in interface ReportDownloader
      Parameters:
      data - data in the form of byte array
      resourceName - resource name
      format - download format, can be null