org.apertereports.dashboard.html
Interface ReportDataProvider

All Known Implementing Classes:
ReportViewComponent

public interface ReportDataProvider

Marks a class a controller of report templates and the generator data.


Method Summary
 ReportConfig generateDrilldownReportConfig(Map<String,List<String>> parameters)
          Generates a temporary drilldown configuration for given parameters.
 Pair<net.sf.jasperreports.engine.JasperPrint,byte[]> provideReportData(ReportConfig config, ReportConstants.ReportType format, boolean cached)
          Provides a generated report out of a ReportConfig.
 ReportTemplate provideReportTemplate(ReportConfig config)
          Provides a Jasper Reports template based on a given ReportConfig.
 

Method Detail

provideReportData

Pair<net.sf.jasperreports.engine.JasperPrint,byte[]> provideReportData(ReportConfig config,
                                                                       ReportConstants.ReportType format,
                                                                       boolean cached)
Provides a generated report out of a ReportConfig. The data is usually cached somewhere to boost the performance.

Parameters:
config - Input config
format - Output format
cached - Should the data be taken from a cache or generated directly
Returns:
A pair of JasperPrint and bytes of report data

provideReportTemplate

ReportTemplate provideReportTemplate(ReportConfig config)
Provides a Jasper Reports template based on a given ReportConfig.

Parameters:
config - Input config
Returns:
A report template

generateDrilldownReportConfig

ReportConfig generateDrilldownReportConfig(Map<String,List<String>> parameters)
Generates a temporary drilldown configuration for given parameters.

Parameters:
parameters - Input parameters
Returns:
A report config


Copyright © 2011-2012. All Rights Reserved.