Package org.ametys.web.languages
Class WebLanguagesManager
- java.lang.Object
-
- org.ametys.web.languages.WebLanguagesManager
-
- All Implemented Interfaces:
Component
,Serviceable
public class WebLanguagesManager extends Object implements Serviceable, Component
Mangage existing languages
-
-
Constructor Summary
Constructors Constructor Description WebLanguagesManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Language>
getAvailableLanguages()
Get the list of possible languages (delegate to org.ametys.cms.languages.LanguagesManager)Map<String,Language>
getLanguages(String siteName)
Get the available languages limited to thoses available in the given SiteMap<String,Language>
getLanguages(Site site)
Get the available languages limited to thoses available in the given Sitevoid
service(ServiceManager manager)
-
-
-
Constructor Detail
-
WebLanguagesManager
public WebLanguagesManager()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getAvailableLanguages
public Map<String,Language> getAvailableLanguages()
Get the list of possible languages (delegate to org.ametys.cms.languages.LanguagesManager)- Returns:
- the association language-code language-object
-
getLanguages
public Map<String,Language> getLanguages(Site site)
Get the available languages limited to thoses available in the given Site- Parameters:
site
- The site to look at- Returns:
- the association language-code language-object
-
getLanguages
public Map<String,Language> getLanguages(String siteName)
Get the available languages limited to thoses available in the given Site- Parameters:
siteName
- The site to look at- Returns:
- the association language-code language-object
-
-