Class UserPrincipalBasedLocaleProvider
- java.lang.Object
-
- com.anaptecs.jeaf.core.servicechannel.jaas.UserPrincipalBasedLocaleProvider
-
- All Implemented Interfaces:
com.anaptecs.jeaf.xfun.api.locale.LocaleProvider
public class UserPrincipalBasedLocaleProvider extends java.lang.Object implements com.anaptecs.jeaf.xfun.api.locale.LocaleProvider
This class implements a JEAF Locale Provider that supports user specific language settings based on the JEAFUserPrincipal. Therefore the class uses the principal of the current user.- Author:
- JEAF Development Team
-
-
Constructor Summary
Constructors Constructor Description UserPrincipalBasedLocaleProvider()
Initialize locale provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Locale
getCurrentLocale()
Method returns the locale of the current user.
-
-
-
Method Detail
-
getCurrentLocale
public java.util.Locale getCurrentLocale()
Method returns the locale of the current user. Therefore the JEAFUserPrincipal of the current user is determined.- Specified by:
getCurrentLocale
in interfacecom.anaptecs.jeaf.xfun.api.locale.LocaleProvider
- Returns:
- Locale Locale that for the current user. The method never returns null.
-
-