Package org.ametys.web.site
Class SiteConfigurationAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.web.site.SiteConfigurationAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class SiteConfigurationAction extends ServiceableAction
Get the site configuration parameters and their values
-
-
Field Summary
Fields Modifier and Type Field Description private static String
__LANG_PARAMETER_NAME
private static String
__SKIN_PARAMETER_NAME
protected LanguagesManager
_languagesManager
The available languages managerprotected SiteConfigurationManager
_siteConfigurationManager
The site configuration.protected SiteManager
_siteManager
The site manager.-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description SiteConfigurationAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Map<String,Object>
_insertLanguageParameterAfterSkinParameter(Map<String,Object> view2JSON)
private Map<String,Object>
_languages2JsonObject()
private Map<String,Object>
_values2json(String siteName)
Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
service(ServiceManager serviceManager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
__SKIN_PARAMETER_NAME
private static final String __SKIN_PARAMETER_NAME
- See Also:
- Constant Field Values
-
__LANG_PARAMETER_NAME
private static final String __LANG_PARAMETER_NAME
- See Also:
- Constant Field Values
-
_siteManager
protected SiteManager _siteManager
The site manager.
-
_siteConfigurationManager
protected SiteConfigurationManager _siteConfigurationManager
The site configuration.
-
_languagesManager
protected LanguagesManager _languagesManager
The available languages manager
-
-
Constructor Detail
-
SiteConfigurationAction
public SiteConfigurationAction()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
_values2json
private Map<String,Object> _values2json(String siteName)
-
_insertLanguageParameterAfterSkinParameter
private Map<String,Object> _insertLanguageParameterAfterSkinParameter(Map<String,Object> view2JSON)
-
_languages2JsonObject
private Map<String,Object> _languages2JsonObject()
-
-