Class PrincipalLocaleResolver

java.lang.Object
ch.tocco.nice2.userbase.impl.locale.PrincipalLocaleResolver
All Implemented Interfaces:
LocaleResolver

@Component @Order(1000) public class PrincipalLocaleResolver extends Object implements LocaleResolver
  • Constructor Details

    • PrincipalLocaleResolver

      public PrincipalLocaleResolver()
  • Method Details

    • getPreferredLocales

      public Set<Locale> getPreferredLocales()
      Returns the preferred locales for the currently logged in user. Returns none if not logged in (anonymous), or if none available.
      Specified by:
      getPreferredLocales in interface LocaleResolver
      Returns:
      Unmodifiable, may be empty.