Class TextQuestionAnswerSaver

java.lang.Object
ch.tocco.nice2.optional.evaluation.impl.flow.AbstractAnswerSaver
ch.tocco.nice2.optional.evaluation.impl.flow.TextQuestionAnswerSaver
All Implemented Interfaces:
AnswerSaver

@Component public class TextQuestionAnswerSaver extends AbstractAnswerSaver
  • Constructor Details Link icon

  • Method Details Link icon

    • saveAnswer Link icon

      public void saveAnswer(Entity evaluationPartyAssignment, Entity question, List<String> answers)
    • mapToAnswerList Link icon

      public List<String> mapToAnswerList(Object answer)
      Description copied from interface: AnswerSaver
      The legacy widget always sends the answer as List (also for text and single choice answer). This method maps the REST answer format to the legacy format used by the AnswerSaver itself