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
-
Field Summary
Fields inherited from interface ch.tocco.nice2.textresources.spi.LocaleResolver
HIGH_PRIORITY, LOW_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the preferredlocales
for the currently logged in user.
-
Constructor Details
-
PrincipalLocaleResolver
public PrincipalLocaleResolver()
-
-
Method Details
-
getPreferredLocales
Returns the preferredlocales
for the currently logged in user. Returns none if not logged in (anonymous), or if none available.- Specified by:
getPreferredLocales
in interfaceLocaleResolver
- Returns:
- Unmodifiable, may be empty.
-