Class DefaultAnswerController

java.lang.Object
io.dialob.session.rest.DefaultAnswerController
All Implemented Interfaces:
QuestionnaireActionsService, AnswerController

public class DefaultAnswerController extends Object implements AnswerController, QuestionnaireActionsService
  • Method Details

    • setWarningThreshold

      public void setWarningThreshold(long warningThreshold)
    • getState

      public org.springframework.http.ResponseEntity<io.dialob.api.proto.Actions> getState(String sessionId)
      Specified by:
      getState in interface AnswerController
    • answers

      public org.springframework.http.ResponseEntity<io.dialob.api.proto.Actions> answers(@NonNull String sessionId, io.dialob.api.proto.Actions actions)
      Specified by:
      answers in interface AnswerController
    • getQuestionnaireSession

      @NonNull protected QuestionnaireSession getQuestionnaireSession(String sessionId)
    • createQuestionnaireNotFoundResponse

      protected org.springframework.http.ResponseEntity<io.dialob.api.proto.Actions> createQuestionnaireNotFoundResponse(String sessionId, @Nullable io.dialob.db.spi.exceptions.DocumentNotFoundException e)
    • createUpdateConflictResponse

      protected org.springframework.http.ResponseEntity<io.dialob.api.proto.Actions> createUpdateConflictResponse(String sessionId, @NonNull io.dialob.db.spi.exceptions.DocumentConflictException e)
    • answerQuestion

      @NonNull public io.dialob.api.proto.Actions answerQuestion(@NonNull String questionnaireId, String revision, @NonNull List<io.dialob.api.proto.Action> actions)
      Specified by:
      answerQuestion in interface QuestionnaireActionsService