Package org.alfresco.service.cmr.i18n
Interface MessageLookup
-
- All Known Subinterfaces:
DictionaryService
- All Known Implementing Classes:
DictionaryComponent
,FilteredDictionaryComponent
,StaticMessageLookup
@AlfrescoPublicApi public interface MessageLookup
An object providing basic message lookup facilities. May (or may not) be directly conntect to resource bundles.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getMessage(String messageKey)
Get message from registered resource bundle.String
getMessage(String messageKey, Object... params)
Get a localised message string, parameterized using standard MessageFormatter.String
getMessage(String messageKey, Locale locale)
Get a localised message stringString
getMessage(String messageKey, Locale locale, Object... params)
Get a localised message string, parameterized using standard MessageFormatter.
-
-
-
Method Detail
-
getMessage
@NotAuditable String getMessage(String messageKey)
Get message from registered resource bundle.- Parameters:
messageKey
- message key- Returns:
- localised message string, null if not found
-
getMessage
@NotAuditable String getMessage(String messageKey, Locale locale)
Get a localised message string- Parameters:
messageKey
- the message keylocale
- override the current locale- Returns:
- the localised message string, null if not found
-
getMessage
@NotAuditable String getMessage(String messageKey, Object... params)
Get a localised message string, parameterized using standard MessageFormatter.- Parameters:
messageKey
- message keyparams
- format parameters- Returns:
- the localised string, null if not found
-
getMessage
@NotAuditable String getMessage(String messageKey, Locale locale, Object... params)
Get a localised message string, parameterized using standard MessageFormatter.- Parameters:
messageKey
- the message keylocale
- override current localeparams
- the localised message string- Returns:
- the localised string, null if not found
-
-