public class UserLocaleProvider extends DefaultLocaleProvider
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) |
getDefaultLocale, getDefaultTimezone, getLocaleWithDefault
public static final org.apache.commons.logging.Log log
public UserLocaleProvider()
public Locale getLocale(CoreSession repo)
getLocale
in interface LocaleProvider
getLocale
in class DefaultLocaleProvider
public Locale getLocale(DocumentModel userProfileDoc)
LocaleProvider
getLocale
in interface LocaleProvider
getLocale
in class DefaultLocaleProvider
public TimeZone getTimeZone(CoreSession repo)
getTimeZone
in interface LocaleProvider
getTimeZone
in class DefaultLocaleProvider
public Locale getLocaleWithDefault(CoreSession session)
getLocaleWithDefault
in interface LocaleProvider
getLocaleWithDefault
in class DefaultLocaleProvider
public Locale getLocaleWithDefault(DocumentModel userProfileDoc)
getLocaleWithDefault
in interface LocaleProvider
getLocaleWithDefault
in class DefaultLocaleProvider
Copyright © 2018 Nuxeo. All rights reserved.