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.String getDefaultLanguage()  
    java.util.Locale getDefaultLocale()  
    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:
      getDefaultLanguage in interface LocaleService
      Returns:
      default language of content managed in cudami (ISO-2-code, e.g. "de", "en")
    • getDefaultLocale

      public java.util.Locale getDefaultLocale()
      Specified by:
      getDefaultLocale in interface LocaleService
      Returns:
      default locale of content managed in cudami
    • getSupportedLanguages

      public java.util.List<java.lang.String> getSupportedLanguages()
      Specified by:
      getSupportedLanguages in interface LocaleService
      Returns:
      list of all languages supported by cudami
    • getSupportedLocales

      public java.util.List<java.util.Locale> getSupportedLocales()
      Specified by:
      getSupportedLocales in interface LocaleService
      Returns:
      list of all locales supported by cudami