Package com.evolveum.midpoint.common
Class LocalizationServiceImpl
- java.lang.Object
-
- com.evolveum.midpoint.common.LocalizationServiceImpl
-
- All Implemented Interfaces:
LocalizationService
public class LocalizationServiceImpl extends Object implements LocalizationService
- Author:
- Viliam Repan (lazyman)., Radovan Semancik
-
-
Constructor Summary
Constructors Constructor Description LocalizationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Locale
getDefaultLocale()
Locale
getOverrideLocale()
void
init()
void
setOverrideLocale(Locale overrideLocale)
String
translate(PolyString polyString, Locale locale, boolean allowOrig)
String
translate(LocalizableMessageList msgList, Locale locale)
String
translate(LocalizableMessage msg, Locale locale)
String
translate(LocalizableMessage msg, Locale locale, String defaultMessage)
String
translate(SingleLocalizableMessage msg, Locale locale)
String
translate(String key, Object[] params, Locale locale)
String
translate(String key, Object[] params, Locale locale, String defaultMessage)
<T extends CommonException>
Ttranslate(T e)
Fills-in message and localizedMessage based on userFriendlyMessage, if needed.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.common.LocalizationService
translate, translate, translate
-
-
-
-
Method Detail
-
init
public void init()
-
getOverrideLocale
public Locale getOverrideLocale()
-
setOverrideLocale
public void setOverrideLocale(Locale overrideLocale)
-
translate
public String translate(String key, Object[] params, Locale locale)
- Specified by:
translate
in interfaceLocalizationService
-
translate
public String translate(String key, Object[] params, Locale locale, String defaultMessage)
- Specified by:
translate
in interfaceLocalizationService
-
translate
public String translate(LocalizableMessage msg, Locale locale, String defaultMessage)
- Specified by:
translate
in interfaceLocalizationService
-
translate
public String translate(LocalizableMessage msg, Locale locale)
- Specified by:
translate
in interfaceLocalizationService
-
translate
public String translate(LocalizableMessageList msgList, Locale locale)
-
translate
public String translate(SingleLocalizableMessage msg, Locale locale)
-
translate
public <T extends CommonException> T translate(T e)
Description copied from interface:LocalizationService
Fills-in message and localizedMessage based on userFriendlyMessage, if needed.- Specified by:
translate
in interfaceLocalizationService
-
translate
public String translate(PolyString polyString, Locale locale, boolean allowOrig)
- Specified by:
translate
in interfaceLocalizationService
-
getDefaultLocale
@NotNull public @NotNull Locale getDefaultLocale()
- Specified by:
getDefaultLocale
in interfaceLocalizationService
-
-