public class

BootstrapUserLocaleStore

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

Class Overview

Used when JIRA has no access to the database. At that stage each user will be using the JIRA default locale. The implementation will be replaced with a complete implementation once JIRA is in a state to do so.

Summary

Public Constructors
BootstrapUserLocaleStore(ApplicationProperties properties)
Public Methods
@Nonnull Locale getDefaultLocale()
Return the Locale to use for a user without a locale.
@Nonnull Locale getLocale(User user)
Return the Locale associated with the passed user.
@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 BootstrapUserLocaleStore (ApplicationProperties properties)

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 (User user)

Return the Locale associated with the passed user.

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

@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.