Package org.ametys.plugins.minisurvey
Class GetDynamicInformationAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.plugins.minisurvey.GetDynamicInformationAction
-
- All Implemented Interfaces:
Component,LogEnabled,Serviceable,Action
public class GetDynamicInformationAction extends ServiceableAction
Action to get dynamic information about a survey
-
-
Field Summary
Fields Modifier and Type Field Description private SurveyAccessHelper_accessHelperprivate CurrentUserProvider_currentUserProviderprivate AmetysObjectResolver_resolverprivate SurveyAnswerDao_surveyAnswerDAOprivate SurveyDAO_surveyDAO-
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 GetDynamicInformationAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private String_getStatus(Date startDate, Date endDate)private boolean_hasAnswered(Survey survey, Request request)Mapact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)voidservice(ServiceManager smanager)-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_resolver
private AmetysObjectResolver _resolver
-
_surveyAnswerDAO
private SurveyAnswerDao _surveyAnswerDAO
-
_surveyDAO
private SurveyDAO _surveyDAO
-
_accessHelper
private SurveyAccessHelper _accessHelper
-
_currentUserProvider
private CurrentUserProvider _currentUserProvider
-
-
Constructor Detail
-
GetDynamicInformationAction
public GetDynamicInformationAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableAction- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
_getStatus
private String _getStatus(Date startDate, Date endDate)
-
_hasAnswered
private boolean _hasAnswered(Survey survey, Request request)
-
-