Class 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
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UserPrincipalBasedLocaleProvider

        public UserPrincipalBasedLocaleProvider()
        Initialize locale provider. No actions are performed.
    • 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 interface com.anaptecs.jeaf.xfun.api.locale.LocaleProvider
        Returns:
        Locale Locale that for the current user. The method never returns null.