Class LocaleService

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class LocaleService
    extends ServiceConfig
    Manage application locales
    • Constructor Detail

      • LocaleService

        public LocaleService()
    • Method Detail

      • changeLanguage

        public ServiceData changeLanguage​(String language)
        Change language to locales
        Parameters:
        language - New language
        Returns:
        change language
      • getApplicationLocales

        public ServiceData getApplicationLocales()
                                          throws AWException
        Generate json object with application locals
        Returns:
        get application locales
        Throws:
        AWException - AWE exception
      • getLocaleResource

        public Map<String,​String> getLocaleResource​(String language)
        Generate json object with application locals
        Parameters:
        language - Language
        Returns:
        Locale resource