Package org.ametys.web.languages
Class WebLanguagesManager
java.lang.Object
org.ametys.web.languages.WebLanguagesManager
- All Implemented Interfaces:
Component
,Serviceable
Mangage existing languages
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the list of possible languages (delegate to org.ametys.cms.languages.LanguagesManager)getLanguages
(String siteName) Get the available languages limited to thoses available in the given SitegetLanguages
(Site site) Get the available languages limited to thoses available in the given Sitevoid
service
(ServiceManager manager)
-
Field Details
-
ROLE
The avalon role
-
-
Constructor Details
-
WebLanguagesManager
public WebLanguagesManager()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getAvailableLanguages
Get the list of possible languages (delegate to org.ametys.cms.languages.LanguagesManager)- Returns:
- the association language-code language-object
-
getLanguages
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
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
-