Class DefaultLocaleManager
java.lang.Object
com.atlassian.confluence.languages.DefaultLocaleManager
- All Implemented Interfaces:
LocaleManager
Deprecated.
-
Field Summary
Fields inherited from interface com.atlassian.confluence.languages.LocaleManager
DEFAULT_LOCALE -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.since 7.5DefaultLocaleManager(GlobalSettingsManager globalSettingsManager, UserAccessor userAccessor, LanguageManager languageManager, com.atlassian.vcache.VCacheFactory cacheFactory) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetLocale(com.atlassian.user.User user) Deprecated.Returns the user's locale if they have one set in their preferences, otherwise returns the site default locale.final @NonNull LocaleInfogetLocaleInfo(@Nullable com.atlassian.user.User user) Deprecated.Deprecated.Deprecated.final voidinvalidateLocaleInfoCache(@Nullable com.atlassian.user.User user) Deprecated.voidsetCacheFactory(com.atlassian.vcache.VCacheFactory cacheFactory) Deprecated.voidsetCacheManager(com.atlassian.cache.CacheManager cacheManager) Deprecated.since 5.10 UsesetCacheFactory(VCacheFactory)voidsetGlobalSettingsManager(GlobalSettingsManager globalSettingsManager) Deprecated.voidsetLanguage(String language) Deprecated.Should set the language string as given by Locale (en-gb for example) in a THREAD LOCAL cache.voidsetLanguageManager(LanguageManager languageManager) Deprecated.voidsetRequestLanguages(String languageString) Deprecated.Should set the language string from the request in a THREAD LOCAL cache.voidsetUserAccessorGenerator(Supplier<UserAccessor> userAccessorSupplier) Deprecated.
-
Constructor Details
-
DefaultLocaleManager
public DefaultLocaleManager(GlobalSettingsManager globalSettingsManager, UserAccessor userAccessor, LanguageManager languageManager, com.atlassian.vcache.VCacheFactory cacheFactory) Deprecated.- Since:
- 7.5
-
DefaultLocaleManager
Deprecated.since 7.5
-
-
Method Details
-
setUserAccessorGenerator
Deprecated.- Since:
- 7.0.1
-
setCacheManager
Deprecated.since 5.10 UsesetCacheFactory(VCacheFactory) -
setCacheFactory
public void setCacheFactory(com.atlassian.vcache.VCacheFactory cacheFactory) Deprecated.- Since:
- 5.10
-
setLanguageManager
Deprecated. -
invalidateLocaleInfoCache
public final void invalidateLocaleInfoCache(@Nullable com.atlassian.user.User user) Deprecated.- Specified by:
invalidateLocaleInfoCachein interfaceLocaleManager
-
getLocaleInfo
Deprecated.- Specified by:
getLocaleInfoin interfaceLocaleManager- Returns:
- a locale info with requested , selected and selection reason
-
getLocale
Deprecated.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:
getLocalein interfaceLocaleManager
-
getSiteDefaultLocale
Deprecated.- Specified by:
getSiteDefaultLocalein interfaceLocaleManager- Returns:
- The default site locale, or
LocaleManager.DEFAULT_LOCALEif none is set.
-
setGlobalSettingsManager
Deprecated. -
getUserAccessor
Deprecated. -
setRequestLanguages
Deprecated.Description copied from interface:LocaleManagerShould set the language string from the request in a THREAD LOCAL cache.- Specified by:
setRequestLanguagesin interfaceLocaleManager- Parameters:
languageString- comma- or semicolon-separated languages
-
setLanguage
Deprecated.Description copied from interface:LocaleManagerShould set the language string as given by Locale (en-gb for example) in a THREAD LOCAL cache. Does nothing if the language string is invalid.- Specified by:
setLanguagein interfaceLocaleManager- Parameters:
language- target language
-
DefaultLocaleManager