Class TestingLocaleManager

java.lang.Object
com.atlassian.confluence.languages.DefaultLocaleManager
com.atlassian.confluence.it.TestingLocaleManager
All Implemented Interfaces:
LocaleManager

public class TestingLocaleManager extends DefaultLocaleManager
  • Constructor Details

    • TestingLocaleManager

      public TestingLocaleManager()
  • Method Details

    • getLocale

      public Locale getLocale(com.atlassian.user.User user)
      Description copied from class: DefaultLocaleManager
      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.
      Specified by:
      getLocale in interface LocaleManager
      Overrides:
      getLocale in class DefaultLocaleManager