Search in sources :

Example 11 with DeleteUnidentifiedModelException

use of easytests.core.services.exceptions.DeleteUnidentifiedModelException in project easy-tests by malinink.

the class QuizzesService method delete.

@Override
public void delete(QuizModelInterface quizModel) {
    final QuizEntity quizEntity = this.map(quizModel);
    if (quizEntity.getId() == null) {
        throw new DeleteUnidentifiedModelException();
    }
    this.quizzesMapper.delete(quizEntity);
}
Also used : QuizEntity(easytests.core.entities.QuizEntity) DeleteUnidentifiedModelException(easytests.core.services.exceptions.DeleteUnidentifiedModelException)

Aggregations

DeleteUnidentifiedModelException (easytests.core.services.exceptions.DeleteUnidentifiedModelException)11 AnswerEntity (easytests.core.entities.AnswerEntity)1 IssueEntity (easytests.core.entities.IssueEntity)1 IssueStandardQuestionTypeOptionEntity (easytests.core.entities.IssueStandardQuestionTypeOptionEntity)1 IssueStandardTopicPriorityEntity (easytests.core.entities.IssueStandardTopicPriorityEntity)1 PointEntity (easytests.core.entities.PointEntity)1 QuestionEntity (easytests.core.entities.QuestionEntity)1 QuizEntity (easytests.core.entities.QuizEntity)1 SolutionEntity (easytests.core.entities.SolutionEntity)1 TesteeEntity (easytests.core.entities.TesteeEntity)1 TopicEntity (easytests.core.entities.TopicEntity)1 UserEntity (easytests.core.entities.UserEntity)1