public class DefaultLocaleProvider extends Object implements LocaleProvider
Constructor and Description |
---|
DefaultLocaleProvider() |
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 DefaultLocaleProvider()
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
public Locale getLocaleWithDefault(CoreSession session)
getLocaleWithDefault
in interface LocaleProvider
public Locale getLocaleWithDefault(DocumentModel userProfileDoc)
getLocaleWithDefault
in interface LocaleProvider
Copyright © 2016 Nuxeo SA. All rights reserved.