Package io.dialob.session.rest
Class DefaultAnswerController
java.lang.Object
io.dialob.session.rest.DefaultAnswerController
- All Implemented Interfaces:
QuestionnaireActionsService,AnswerController
public class DefaultAnswerController
extends Object
implements AnswerController, QuestionnaireActionsService
-
Method Summary
Modifier and TypeMethodDescriptionio.dialob.api.proto.ActionsanswerQuestion(String questionnaireId, String revision, List<io.dialob.api.proto.Action> actions) org.springframework.http.ResponseEntity<io.dialob.api.proto.Actions>protected org.springframework.http.ResponseEntity<io.dialob.api.proto.Actions>createQuestionnaireNotFoundResponse(String sessionId, io.dialob.db.spi.exceptions.DocumentNotFoundException e) protected org.springframework.http.ResponseEntity<io.dialob.api.proto.Actions>createUpdateConflictResponse(String sessionId, io.dialob.db.spi.exceptions.DocumentConflictException e) protected QuestionnaireSessiongetQuestionnaireSession(String sessionId) org.springframework.http.ResponseEntity<io.dialob.api.proto.Actions>voidsetWarningThreshold(long warningThreshold) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.dialob.questionnaire.service.api.QuestionnaireActionsService
handleAction, isAcceptableAction
-
Method Details
-
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
-
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:
answerQuestionin interfaceQuestionnaireActionsService
-