Class AbstractSurveyAction
- java.lang.Object
 - 
- org.apache.avalon.framework.logger.AbstractLogEnabled
 - 
- org.apache.cocoon.acting.AbstractAction
 - 
- org.apache.cocoon.acting.ServiceableAction
 - 
- org.ametys.core.util.cocoon.AbstractCurrentUserProviderServiceableAction
 - 
- org.ametys.core.observation.AbstractNotifierAction
 - 
- org.ametys.plugins.survey.actions.AbstractSurveyAction
 
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 Component,LogEnabled,Serviceable,ThreadSafe,Action
- Direct Known Subclasses:
 GetSurveyActionUrl
public abstract class AbstractSurveyAction extends AbstractNotifierAction
Abstract action for manipulate survey 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected AmetysObjectResolver_resolverAmetys object resolver.protected SiteManager_siteManagerThe site manager- 
Fields inherited from class org.ametys.core.observation.AbstractNotifierAction
_observationManager 
- 
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 AbstractSurveyAction() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Mapact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)protected ModifiableTraversableAmetysObjectgetSurveyRootNode(String siteName, String lang)Get the root node for surveysvoidservice(ServiceManager serviceManager)- 
Methods inherited from class org.ametys.core.util.cocoon.AbstractCurrentUserProviderServiceableAction
_getCurrentUser 
- 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger 
 - 
 
 - 
 
- 
- 
Field Detail
- 
_resolver
protected AmetysObjectResolver _resolver
Ametys object resolver. 
- 
_siteManager
protected SiteManager _siteManager
The site manager 
 - 
 
- 
Constructor Detail
- 
AbstractSurveyAction
public AbstractSurveyAction()
 
 - 
 
- 
Method Detail
- 
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classAbstractNotifierAction- Throws:
 ServiceException
 
- 
act
public abstract Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
 Exception
 
- 
getSurveyRootNode
protected ModifiableTraversableAmetysObject getSurveyRootNode(String siteName, String lang) throws RepositoryException
Get the root node for surveys- Parameters:
 siteName- the site namelang- the language- Returns:
 - the root node
 - Throws:
 RepositoryException- if an error occurs while manipulating the repository
 
 - 
 
 -