public class UserLocaleProvider extends Object implements LocaleProvider
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
UserLocaleProvider() |
| Modifier and Type | Method and Description |
|---|---|
Locale |
getLocale(CoreSession repo) |
Locale |
getLocale(DocumentModel userProfileDoc)
Gets the locale stored in the given user profile.
|
Locale |
getLocaleWithDefault(CoreSession session) |
Locale |
getLocaleWithDefault(DocumentModel userProfileDoc) |
TimeZone |
getTimeZone(CoreSession repo) |
public static final org.apache.commons.logging.Log log
public UserLocaleProvider()
public Locale getLocale(CoreSession repo)
getLocale in interface LocaleProviderpublic Locale getLocale(DocumentModel userProfileDoc)
LocaleProvidergetLocale in interface LocaleProviderpublic TimeZone getTimeZone(CoreSession repo)
getTimeZone in interface LocaleProviderpublic Locale getLocaleWithDefault(CoreSession session)
getLocaleWithDefault in interface LocaleProviderpublic Locale getLocaleWithDefault(DocumentModel userProfileDoc)
getLocaleWithDefault in interface LocaleProviderCopyright © 2016 Nuxeo SA. All rights reserved.