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
Abstract action for manipulate survey
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverAmetys object resolver.protected SiteManagerThe site managerFields inherited from class org.ametys.core.observation.AbstractNotifierAction
_observationManagerFields inherited from class org.apache.cocoon.acting.ServiceableAction
managerFields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract 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
_getCurrentUserMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_resolver
Ametys object resolver. -
_siteManager
The site manager
-
-
Constructor Details
-
AbstractSurveyAction
public AbstractSurveyAction()
-
-
Method Details
-
service
- 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 javax.jcr.RepositoryException Get the root node for surveys- Parameters:
siteName- the site namelang- the language- Returns:
- the root node
- Throws:
javax.jcr.RepositoryException- if an error occurs while manipulating the repository
-