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 Locale getLocale(CoreSession repo) throws ClientException
getLocale
in interface LocaleProvider
ClientException
public Locale getLocale(DocumentModel userProfileDoc) throws ClientException
LocaleProvider
getLocale
in interface LocaleProvider
ClientException
public TimeZone getTimeZone(CoreSession repo) throws ClientException
getTimeZone
in interface LocaleProvider
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.