2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.cdm
.api
.service
;
11 import java
.util
.List
;
13 import org
.springframework
.beans
.factory
.annotation
.Autowired
;
14 import org
.springframework
.stereotype
.Service
;
15 import org
.springframework
.transaction
.annotation
.Transactional
;
17 import eu
.etaxonomy
.cdm
.model
.validation
.EntityConstraintViolation
;
18 import eu
.etaxonomy
.cdm
.model
.validation
.Severity
;
19 import eu
.etaxonomy
.cdm
.persistence
.dao
.validation
.IEntityConstraintViolationDao
;
23 * @author ayco_holleman
28 @Transactional(readOnly
= true)
29 public class EntityConstraintViolationServiceImpl
extends ServiceBase
<EntityConstraintViolation
, IEntityConstraintViolationDao
> implements
30 IEntityConstraintViolationService
{
33 private IEntityConstraintViolationDao dao
;
37 protected void setDao(IEntityConstraintViolationDao dao
){
43 public List
<EntityConstraintViolation
> getConstraintViolations(){
44 return dao
.getConstraintViolations();
49 public List
<EntityConstraintViolation
> getConstraintViolations(String validatedEntityClass
){
50 return dao
.getConstraintViolations(validatedEntityClass
);
55 public List
<EntityConstraintViolation
> getConstraintViolations(String validatedEntityClass
, Severity severity
){
56 return dao
.getConstraintViolations(validatedEntityClass
, severity
);
61 public List
<EntityConstraintViolation
> getConstraintViolations(Severity severity
){
62 return dao
.getConstraintViolations(severity
);