use of easytests.core.options.AnswersOptions in project easy-tests by malinink.
the class AnswersController method getQuestionModel.
private QuestionModelInterface getQuestionModel(Integer id, Boolean forDelete) {
final QuestionsOptionsInterface questionsOptions = this.questionsOptionsBuilder.forAuth().withAnswers(new AnswersOptions());
final QuestionModelInterface questionModel = this.questionsService.find(id, questionsOptions);
// checkModel(questionModel, topicId);
if (forDelete) {
return this.questionsService.find(id, this.questionsOptionsBuilder.forDelete());
}
return questionModel;
}
Aggregations