Class LocaleService

java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.LocaleService
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class LocaleService extends ServiceConfig
Manage application locales
  • Constructor Details

    • LocaleService

      public LocaleService()
  • Method Details

    • 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