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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NuclosFilerun(OutputFormat format, Long boId) This method runs thePrintoutthat belongs to the givenOutputFormatand returns the generatedNuclosFilestatic NuclosFileProviding the parameters this method runs thePrintoutthat belongs to the givenOutputFormatand returns the generatedNuclosFilestatic NuclosFilerun(OutputFormat format, Long boId, Map<String, Object> params, NuclosLocale locale) Providing the parameters this method runs thePrintoutthat belongs to the givenOutputFormatand returns the generatedNuclosFilecontaining all localized data in the given locale languagestatic NuclosFilerun(OutputFormat format, Long boId, NuclosLocale locale) This method runs thePrintoutthat belongs to the givenOutputFormatand returns the generatedNuclosFilecontaining all localized data in the given locale languagevoidsetPrintoutService(PrintoutService repService)
-
Constructor Details
-
PrintoutProvider
public PrintoutProvider()
-
-
Method Details
-
setPrintoutService
-
run
This method runs thePrintoutthat belongs to the givenOutputFormatand 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 thePrintoutthat belongs to the givenOutputFormatand returns the generatedNuclosFilecontaining 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 thePrintoutthat belongs to the givenOutputFormatand 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 thePrintoutthat belongs to the givenOutputFormatand returns the generatedNuclosFilecontaining 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
-