Package io.dialob.session.rest
Class DefaultAnswerController
- java.lang.Object
-
- io.dialob.session.rest.DefaultAnswerController
-
- All Implemented Interfaces:
QuestionnaireActionsService,AnswerController
@RestController public class DefaultAnswerController extends Object implements AnswerController, QuestionnaireActionsService
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.dialob.api.proto.ActionsanswerQuestion(String questionnaireId, String revision, List<io.dialob.api.proto.Action> actions)org.springframework.http.ResponseEntity<io.dialob.api.proto.Actions>answers(String sessionId, io.dialob.api.proto.Actions actions)protected org.springframework.http.ResponseEntity<io.dialob.api.proto.Actions>createQuestionnaireNotFoundResponse(String sessionId, io.dialob.db.spi.exceptions.DocumentNotFoundException e)protected QuestionnaireSessiongetQuestionnaireSession(String sessionId)org.springframework.http.ResponseEntity<io.dialob.api.proto.Actions>getState(String sessionId)voidsetWarningThreshold(long warningThreshold)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.dialob.questionnaire.service.api.QuestionnaireActionsService
handleAction, isAcceptableAction
-
-
-
-
Method Detail
-
setWarningThreshold
public void setWarningThreshold(long warningThreshold)
-
getState
public org.springframework.http.ResponseEntity<io.dialob.api.proto.Actions> getState(String sessionId)
- Specified by:
getStatein interfaceAnswerController
-
answers
public org.springframework.http.ResponseEntity<io.dialob.api.proto.Actions> answers(@NonNull String sessionId, io.dialob.api.proto.Actions actions)- Specified by:
answersin interfaceAnswerController
-
getQuestionnaireSession
@NonNull protected QuestionnaireSession getQuestionnaireSession(String sessionId)
-
createQuestionnaireNotFoundResponse
protected org.springframework.http.ResponseEntity<io.dialob.api.proto.Actions> createQuestionnaireNotFoundResponse(String sessionId, io.dialob.db.spi.exceptions.DocumentNotFoundException 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:
answerQuestionin interfaceQuestionnaireActionsService
-
-