public class

PropertySetUserLocaleStore

extends Object
implements UserLocaleStore
java.lang.Object
   ↳ com.atlassian.jira.user.PropertySetUserLocaleStore

Summary

Public Constructors
PropertySetUserLocaleStore(ApplicationProperties applicationProperties, UserPropertyManager userPropertyManager, UserKeyService userKeys)
Public Methods
@Nonnull Locale getDefaultLocale()
Return the Locale to use for a user without a locale.
@Nonnull Locale getLocale(ApplicationUser user)
Return the Locale associated with the passed user.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.user.UserLocaleStore

Public Constructors

public PropertySetUserLocaleStore (ApplicationProperties applicationProperties, UserPropertyManager userPropertyManager, UserKeyService userKeys)

Public Methods

@Nonnull public Locale getDefaultLocale ()

Return the Locale to use for a user without a locale.

Returns
  • the default locale of JIRA.

@Nonnull public Locale getLocale (ApplicationUser user)

Return the Locale associated with the passed user.

Parameters
user the user for the query.
Returns
  • the Locale associated with the passed user.