Interface AnswerEventQuestionActionService

All Known Implementing Classes:
AnswerEventQuestionActionServiceImpl

public interface AnswerEventQuestionActionService
  • Method Details

    • getStore

      Returns all Event_question_answerss from the related event. If the registration already has some related Event_question_answers, it sets these. How this is done depends on the Event_question_type. If it is a choice question (Multiple choice, Single choice) the flag selected on the Bean RegistrationAnswerOption will be set. If the question is of the type text, the property answer on the Bean will be set.
      Parameters:
      selection - the selected Registration
      Returns:
      the questions of the related event with preselected values if existing
    • saveAnswers

      void saveAnswers(EntityExplorerActionSelection selection, Map<String,String> questionValues)
      Saves all the Event_question_answerss. If an answer was selected before and is not selected anymore now, the existing answer will be removed.
      Parameters:
      selection - the selected Registration
      questionValues - the answers with its values