use of easytests.core.services.exceptions.DeleteUnidentifiedModelException in project easy-tests by malinink.
the class SolutionsService method delete.
@Override
public void delete(SolutionModelInterface solutionModel) {
final SolutionEntity solutionEntity = this.map(solutionModel);
if (solutionEntity.getId() == null) {
throw new DeleteUnidentifiedModelException();
}
this.solutionsMapper.delete(solutionEntity);
}
use of easytests.core.services.exceptions.DeleteUnidentifiedModelException in project easy-tests by malinink.
the class TopicsService method delete.
@Override
public void delete(TopicModelInterface topicModel) {
final TopicEntity topicEntity = this.map(topicModel);
if (topicEntity.getId() == null) {
throw new DeleteUnidentifiedModelException();
}
this.topicsMapper.delete(topicEntity);
}
use of easytests.core.services.exceptions.DeleteUnidentifiedModelException in project easy-tests by malinink.
the class UsersService method delete.
@Override
public void delete(UserModelInterface userModel) {
final UserEntity userEntity = this.map(userModel);
if (userEntity.getId() == null) {
throw new DeleteUnidentifiedModelException();
}
this.usersMapper.delete(userEntity);
}
use of easytests.core.services.exceptions.DeleteUnidentifiedModelException in project easy-tests by malinink.
the class IssuesService method delete.
@Override
public void delete(IssueModelInterface issueModel) {
final IssueEntity issueEntity = this.map(issueModel);
if (issueEntity.getId() == null) {
throw new DeleteUnidentifiedModelException();
}
this.issuesMapper.delete(issueEntity);
}
use of easytests.core.services.exceptions.DeleteUnidentifiedModelException in project easy-tests by malinink.
the class AnswersService method delete.
@Override
public void delete(AnswerModelInterface answerModel) {
final AnswerEntity answerEntity = this.map(answerModel);
if (answerEntity.getId() == null) {
throw new DeleteUnidentifiedModelException();
}
this.answersMapper.delete(answerEntity);
}
Aggregations