Package com.almis.awe.service
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 Summary
Constructors Constructor Description LocaleService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceData
changeLanguage(String language)
Change language to localesServiceData
getApplicationLocales()
Generate json object with application localsMap<String,String>
getLocaleResource(String language)
Generate json object with application locals-
Methods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
-
-
-
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
-
-