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
_resolver
Ametys object resolver.protected SiteManager
_siteManager
The 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 Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
protected ModifiableTraversableAmetysObject
getSurveyRootNode(String siteName, String lang)
Get the root node for surveysvoid
service(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:
service
in interfaceServiceable
- Overrides:
service
in 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
-
-