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
-
Method Summary
Modifier and TypeMethodDescriptionstatic NuclosFile
run
(OutputFormat format) This method runs theReport
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
static NuclosFile
run
(OutputFormat format, Map<String, Object> params) Providing the parameters this method runs theReport
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
static NuclosFile
run
(OutputFormat format, Map<String, Object> params, NuclosLocale locale) Providing the parameters this method runs theReport
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
containing all localized data in the given locale languagestatic NuclosFile
run
(OutputFormat format, NuclosLocale locale) This method runs theReport
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
containing all localized data in the given locale languagestatic NuclosFile
void
setReportService
(ReportService repService)
-
Constructor Details
-
ReportProvider
public ReportProvider()
-
-
Method Details
-
setReportService
-
run
This method runs theReport
that belongs to the givenOutputFormat
and 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 theReport
that belongs to the givenOutputFormat
and 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 theReport
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
containing 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 theReport
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
containing 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
-