Interface AnswerEventQuestionActionService
- All Known Implementing Classes:
AnswerEventQuestionActionServiceImpl
public interface AnswerEventQuestionActionService
-
Method Summary
Modifier and TypeMethodDescriptiongetStore
(EntityExplorerActionSelection selection) Returns allEvent_question_answers
s from the related event.void
saveAnswers
(EntityExplorerActionSelection selection, Map<String, String> questionValues) Saves all theEvent_question_answers
s.
-
Method Details
-
getStore
Returns allEvent_question_answers
s from the related event. If the registration already has some relatedEvent_question_answer
s, it sets these. How this is done depends on theEvent_question_type
. If it is a choice question (Multiple choice, Single choice) the flagselected
on the BeanRegistrationAnswerOption
will be set. If the question is of the type text, the propertyanswer
on the Bean will be set.- Parameters:
selection
- the selectedRegistration
- Returns:
- the questions of the related event with preselected values if existing
-
saveAnswers
Saves all theEvent_question_answers
s. If an answer was selected before and is not selected anymore now, the existing answer will be removed.- Parameters:
selection
- the selectedRegistration
questionValues
- the answers with its values
-