Interface ReportLanguageHandler
-
- All Superinterfaces:
Prioritizable
public interface ReportLanguageHandler extends Prioritizable
Provides a way for specific reports to overwrite this behavior making possible to select a different language based on some ad-hoc logic Classes that implement this interface should declare the qualifier to define the file extension that they can handle
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ReportLanguageHandler.Qualifier
Defines the qualifier used to provide a report's language The Qualifier will be composed of two fields: Type and Value.static interface
ReportLanguageHandler.Qualifiers
Containing annotation type to support repeatingReportLanguageHandler.Qualifier
.static class
ReportLanguageHandler.ReportType
Enum to define the report types supported (PROCESS_DEFINITION, AD_PROCESS, DOCUMENT, MANUAL)static class
ReportLanguageHandler.Selector
A class used to select the correct language implementation to overwrite the specific report language
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getLanguage(Map<?,?> parameters)
Returns the language value based on an ad-hoc logic.-
Methods inherited from interface org.openbravo.base.Prioritizable
getPriority
-
-
-
-
Method Detail
-
getLanguage
String getLanguage(Map<?,?> parameters) throws OBException
Returns the language value based on an ad-hoc logic.- Parameters:
parameters
- Report parameters with the required information to to get the language based on the implemented logic- Returns:
- Language to use in the desired report
- Throws:
OBException
-
-