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
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()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LocaleServiceImpl
public LocaleServiceImpl()
-
-
Method Details
-
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
-