Search in sources :

Example 6 with DeleteUnidentifiedModelException

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

the class PointsService method delete.

@Override
public void delete(PointModelInterface pointModel) {
    final PointEntity pointEntity = this.map(pointModel);
    if (pointEntity.getId() == null) {
        throw new DeleteUnidentifiedModelException();
    }
    this.pointsMapper.delete(pointEntity);
}
Also used : PointEntity(easytests.core.entities.PointEntity) DeleteUnidentifiedModelException(easytests.core.services.exceptions.DeleteUnidentifiedModelException)

Example 7 with DeleteUnidentifiedModelException

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

the class QuestionsService method delete.

@Override
public void delete(QuestionModelInterface questionModel) {
    final QuestionEntity questionEntity = this.map(questionModel);
    if (questionEntity.getId() == null) {
        throw new DeleteUnidentifiedModelException();
    }
    this.questionsMapper.delete(questionEntity);
}
Also used : QuestionEntity(easytests.core.entities.QuestionEntity) DeleteUnidentifiedModelException(easytests.core.services.exceptions.DeleteUnidentifiedModelException)

Example 8 with DeleteUnidentifiedModelException

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

the class TesteesService method delete.

@Override
public void delete(TesteeModelInterface testeeModel) {
    final TesteeEntity testeeEntity = this.map(testeeModel);
    if (testeeEntity.getId() == null) {
        throw new DeleteUnidentifiedModelException();
    }
    this.testeesMapper.delete(testeeEntity);
}
Also used : TesteeEntity(easytests.core.entities.TesteeEntity) DeleteUnidentifiedModelException(easytests.core.services.exceptions.DeleteUnidentifiedModelException)

Example 9 with DeleteUnidentifiedModelException

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

the class IssueStandardQuestionTypeOptionsService method delete.

@Override
public void delete(IssueStandardQuestionTypeOptionModelInterface questionTypeOptionModel) {
    final IssueStandardQuestionTypeOptionEntity questionTypeOptionEntity = this.map(questionTypeOptionModel);
    if (questionTypeOptionEntity.getId() == null) {
        throw new DeleteUnidentifiedModelException();
    }
    this.questionTypeOptionsMapper.delete(questionTypeOptionEntity);
}
Also used : IssueStandardQuestionTypeOptionEntity(easytests.core.entities.IssueStandardQuestionTypeOptionEntity) DeleteUnidentifiedModelException(easytests.core.services.exceptions.DeleteUnidentifiedModelException)

Example 10 with DeleteUnidentifiedModelException

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

the class IssueStandardTopicPrioritiesService method delete.

@Override
public void delete(IssueStandardTopicPriorityModelInterface topicPriorityModel) {
    final IssueStandardTopicPriorityEntity topicPriorityEntity = this.map(topicPriorityModel);
    if (topicPriorityEntity.getId() == null) {
        throw new DeleteUnidentifiedModelException();
    }
    this.topicPrioritiesMapper.delete(topicPriorityEntity);
}
Also used : IssueStandardTopicPriorityEntity(easytests.core.entities.IssueStandardTopicPriorityEntity) 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