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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations