Package org.ametys.plugins.survey.answer
Class ProcessInputAction.SurveyInput
- java.lang.Object
-
- org.ametys.plugins.survey.data.SurveySession
-
- org.ametys.plugins.survey.answer.ProcessInputAction.SurveyInput
-
- Enclosing class:
- ProcessInputAction
public class ProcessInputAction.SurveyInput extends SurveySession
Survey session with answers.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<ProcessInputAction.SurveyInputAnswer>
_inputAnswers
Answers.-
Fields inherited from class org.ametys.plugins.survey.data.SurveySession
_answers, _id, _ipAddress, _login, _population, _submittedAt, _surveyId
-
-
Constructor Summary
Constructors Constructor Description SurveyInput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,ProcessInputAction.SurveyInputAnswer>
getAnswerMap()
Get the answers as a Map indexed by question ID.List<ProcessInputAction.SurveyInputAnswer>
getAnswers()
Get the answers.void
setAnswerList(List<ProcessInputAction.SurveyInputAnswer> answers)
Set the answers.-
Methods inherited from class org.ametys.plugins.survey.data.SurveySession
getId, getIpAddress, getLogin, getPopulation, getSubmittedAt, getSurveyId, getUser, setAnswers, setId, setIpAddress, setLogin, setPopulation, setSubmittedAt, setSurveyId, setUser
-
-
-
-
Field Detail
-
_inputAnswers
protected List<ProcessInputAction.SurveyInputAnswer> _inputAnswers
Answers.
-
-
Constructor Detail
-
SurveyInput
public SurveyInput()
-
-
Method Detail
-
getAnswers
public List<ProcessInputAction.SurveyInputAnswer> getAnswers()
Description copied from class:SurveySession
Get the answers.- Overrides:
getAnswers
in classSurveySession
- Returns:
- the answers
-
getAnswerMap
public Map<String,ProcessInputAction.SurveyInputAnswer> getAnswerMap()
Get the answers as a Map indexed by question ID.- Returns:
- the answer Map.
-
setAnswerList
public void setAnswerList(List<ProcessInputAction.SurveyInputAnswer> answers)
Set the answers.- Parameters:
answers
- the answers to set
-
-