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.
|
TimeZone |
getTimeZone(CoreSession repo) |
public static final org.apache.commons.logging.Log log
public UserLocaleProvider()
public Locale getLocale(CoreSession repo)
getLocale
in interface LocaleProvider
public Locale getLocale(DocumentModel userProfileDoc)
LocaleProvider
getLocale
in interface LocaleProvider
public TimeZone getTimeZone(CoreSession repo)
getTimeZone
in interface LocaleProvider
Copyright © 2015 Nuxeo SA. All rights reserved.