public class PropertySetUserLocaleStore extends Object implements UserLocaleStore
Constructor and Description |
---|
PropertySetUserLocaleStore(ApplicationProperties applicationProperties,
UserPropertyManager userPropertyManager,
UserKeyService userKeys) |
Modifier and Type | Method and Description |
---|---|
Locale |
getDefaultLocale()
Return the
Locale to use for a user without a locale. |
Locale |
getLocale(ApplicationUser user)
Return the
Locale associated with the passed user. |
public PropertySetUserLocaleStore(ApplicationProperties applicationProperties, UserPropertyManager userPropertyManager, UserKeyService userKeys)
@Nonnull public Locale getDefaultLocale()
UserLocaleStore
Locale
to use for a user without a locale.getDefaultLocale
in interface UserLocaleStore
@Nonnull public Locale getLocale(ApplicationUser user)
UserLocaleStore
Locale
associated with the passed user.getLocale
in interface UserLocaleStore
user
- the user for the query.Locale
associated with the passed user.Copyright © 2002-2015 Atlassian. All Rights Reserved.