public class

MockUserLocaleStore

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

Summary

Public Constructors
MockUserLocaleStore()
MockUserLocaleStore(Locale defaultLocale)
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.
MockUserLocaleStore setLocale(Principal user, Locale locale)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.user.UserLocaleStore

Public Constructors

public MockUserLocaleStore ()

public MockUserLocaleStore (Locale defaultLocale)

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.

public MockUserLocaleStore setLocale (Principal user, Locale locale)