public class

TestingLocaleManager

extends DefaultLocaleManager
java.lang.Object
   ↳ com.atlassian.confluence.languages.DefaultLocaleManager
     ↳ com.atlassian.confluence.it.TestingLocaleManager

Summary

[Expand]
Inherited Fields
From interface com.atlassian.confluence.languages.LocaleManager
Public Constructors
TestingLocaleManager()
Public Methods
Locale getLocale(User user)
Returns the user's locale if they have one set in their preferences, otherwise returns the site default locale.
[Expand]
Inherited Methods
From class com.atlassian.confluence.languages.DefaultLocaleManager
From class java.lang.Object
From interface com.atlassian.confluence.languages.LocaleManager

Public Constructors

public TestingLocaleManager ()

Public Methods

public Locale getLocale (User user)

Returns the user's locale if they have one set in their preferences, otherwise returns the site default locale. Caches the result in the thread-local cache so we only check the preference or settings once per request.