public interface LocaleProvider
Modifier and Type | Method and Description |
---|---|
Locale |
getLocale(CoreSession session) |
Locale |
getLocale(DocumentModel userProfileDoc)
Gets the locale stored in the given user profile.
|
Locale |
getLocaleWithDefault(CoreSession session) |
Locale |
getLocaleWithDefault(DocumentModel userProfileDoc) |
Locale |
getLocaleWithDefault(String requestedLocale)
Returns the default locale for given requested locale.
|
TimeZone |
getTimeZone(CoreSession session) |
Locale getLocale(CoreSession session)
Locale getLocale(DocumentModel userProfileDoc)
Locale getLocaleWithDefault(CoreSession session)
Locale getLocaleWithDefault(DocumentModel userProfileDoc)
TimeZone getTimeZone(CoreSession session)
Locale getLocaleWithDefault(String requestedLocale)
Checks if requested locale is part of supported locales, and fall-backs on a default locale if not (or if requested locale is empty).
Copyright © 2019 Nuxeo. All rights reserved.