Package org.nuclos.api.provider
Class ReportProvider
java.lang.Object
org.nuclos.api.provider.ReportProvider
ReportProvider provides methods for executing reports
This Class is usually used in Rule-classes and allows API access only
- Author:
- Matthias Reichart
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NuclosFilerun(OutputFormat format) This method runs theReportthat belongs to the givenOutputFormatand returns the generatedNuclosFilestatic NuclosFilerun(OutputFormat format, Map<String, Object> params) Providing the parameters this method runs theReportthat belongs to the givenOutputFormatand returns the generatedNuclosFilestatic NuclosFilerun(OutputFormat format, Map<String, Object> params, NuclosLocale locale) Providing the parameters this method runs theReportthat belongs to the givenOutputFormatand returns the generatedNuclosFilecontaining all localized data in the given locale languagestatic NuclosFilerun(OutputFormat format, NuclosLocale locale) This method runs theReportthat belongs to the givenOutputFormatand returns the generatedNuclosFilecontaining all localized data in the given locale languagestatic NuclosFilevoidsetReportService(ReportService repService)
-
Constructor Details
-
ReportProvider
public ReportProvider()
-
-
Method Details
-
setReportService
-
run
This method runs theReportthat belongs to the givenOutputFormatand returns the generatedNuclosFile- Parameters:
format-OutputFormat- ReportOutputFormat stored in the generated report class- Returns:
NuclosFile- Throws:
BusinessException
-
run
public static NuclosFile run(OutputFormat format, Map<String, Object> params) throws BusinessExceptionProviding the parameters this method runs theReportthat belongs to the givenOutputFormatand returns the generatedNuclosFile- Parameters:
format-OutputFormat- ReportOutputFormat stored in the generated report classparams-Map- Parameters for the report- Returns:
NuclosFile- Throws:
BusinessException
-
run
This method runs theReportthat belongs to the givenOutputFormatand returns the generatedNuclosFilecontaining all localized data in the given locale language- Parameters:
format-OutputFormat- ReportOutputFormat stored in the generated report classlocale-NuclosLocale- Data locale- Returns:
NuclosFile- Throws:
BusinessException
-
run
public static NuclosFile run(OutputFormat format, Map<String, Object> params, NuclosLocale locale) throws BusinessExceptionProviding the parameters this method runs theReportthat belongs to the givenOutputFormatand returns the generatedNuclosFilecontaining all localized data in the given locale language- Parameters:
format-OutputFormat- ReportOutputFormat stored in the generated report classparams-Map- Parameters for the reportlocale-NuclosLocale- Data locale- Returns:
NuclosFile- Throws:
BusinessException
-
run
public static NuclosFile run(UID outputFormatId, Map<String, Object> params, NuclosLocale locale) throws BusinessException- Throws:
BusinessException
-