Class LocaleServiceImpl
- java.lang.Object
-
- de.digitalcollections.cudami.server.business.impl.service.LocaleServiceImpl
-
- All Implemented Interfaces:
LocaleService
@Service public class LocaleServiceImpl extends java.lang.Object implements LocaleService
Service for Locale handling.
-
-
Constructor Summary
Constructors Constructor Description LocaleServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDefaultLanguage()java.util.LocalegetDefaultLocale()java.util.List<java.lang.String>getSupportedLanguages()java.util.List<java.util.Locale>getSupportedLocales()
-
-
-
Method Detail
-
getDefaultLanguage
public java.lang.String getDefaultLanguage()
- Specified by:
getDefaultLanguagein interfaceLocaleService- Returns:
- default language of content managed in cudami (ISO-2-code, e.g. "de", "en")
-
getDefaultLocale
public java.util.Locale getDefaultLocale()
- Specified by:
getDefaultLocalein interfaceLocaleService- Returns:
- default locale of content managed in cudami
-
getSupportedLanguages
public java.util.List<java.lang.String> getSupportedLanguages()
- Specified by:
getSupportedLanguagesin interfaceLocaleService- Returns:
- list of all languages supported by cudami
-
getSupportedLocales
public java.util.List<java.util.Locale> getSupportedLocales()
- Specified by:
getSupportedLocalesin interfaceLocaleService- Returns:
- list of all locales supported by cudami
-
-