public class WebLanguagesManager extends Object implements Serviceable, Component
Modifier and Type | Field and Description |
---|---|
private LanguagesManager |
_languagesManager |
private SiteManager |
_siteManager |
static String |
ROLE
The avalon role
|
Constructor and Description |
---|
WebLanguagesManager() |
Modifier and Type | Method and Description |
---|---|
Map<String,Language> |
getAvailableLanguages()
Get the list of possible languages (delegate to org.ametys.cms.languages.LanguagesManager)
|
Map<String,Language> |
getLanguages(Site site)
Get the available languages limited to thoses available in the given Site
|
Map<String,Language> |
getLanguages(String siteName)
Get the available languages limited to thoses available in the given Site
|
void |
service(ServiceManager manager) |
private LanguagesManager _languagesManager
private SiteManager _siteManager
public WebLanguagesManager()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public Map<String,Language> getAvailableLanguages()
public Map<String,Language> getLanguages(Site site)
site
- The site to look atpublic Map<String,Language> getLanguages(String siteName)
siteName
- The site to look at