Package org.nuclos.api.provider
Class PrintoutProvider
java.lang.Object
org.nuclos.api.provider.PrintoutProvider
PrintoutProvider
provides methods for executing printouts
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, Long boId) This method runs thePrintout
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
static NuclosFile
Providing the parameters this method runs thePrintout
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
static NuclosFile
run
(OutputFormat format, Long boId, Map<String, Object> params, NuclosLocale locale) Providing the parameters this method runs thePrintout
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
containing all localized data in the given locale languagestatic NuclosFile
run
(OutputFormat format, Long boId, NuclosLocale locale) This method runs thePrintout
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
containing all localized data in the given locale languagevoid
setPrintoutService
(PrintoutService repService)
-
Constructor Details
-
PrintoutProvider
public PrintoutProvider()
-
-
Method Details
-
setPrintoutService
-
run
This method runs thePrintout
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
- Parameters:
format
-OutputFormat
- OutputFormat stored in the generated printout class- Returns:
NuclosFile
- Throws:
BusinessException
-
run
public static NuclosFile run(OutputFormat format, Long boId, NuclosLocale locale) throws BusinessException This method runs thePrintout
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
containing all localized data in the given locale language- Parameters:
format
-OutputFormat
- OutputFormat stored in the generated printout classlocale
-NuclosLocale
- Language in which the localized data is displayed- Returns:
NuclosFile
- Throws:
BusinessException
-
run
public static NuclosFile run(OutputFormat format, Long boId, Map<String, Object> params) throws BusinessExceptionProviding the parameters this method runs thePrintout
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
- Parameters:
format
-OutputFormat
- OutputFormat stored in the generated printout classboId
-params
-Map
- Parameters for the printout- Returns:
NuclosFile
- Throws:
BusinessException
-
run
public static NuclosFile run(OutputFormat format, Long boId, Map<String, Object> params, NuclosLocale locale) throws BusinessExceptionProviding the parameters this method runs thePrintout
that belongs to the givenOutputFormat
and returns the generatedNuclosFile
containing all localized data in the given locale language- Parameters:
format
-OutputFormat
- OutputFormat stored in the generated printout classboId
-params
-Map
- Parameters for the printoutlocale
-NuclosLocale
- Language in which the localized data is displayed- Returns:
NuclosFile
- Throws:
BusinessException
-