3 * Copyright (C) 2012 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.api
.service
;
12 import org
.springframework
.beans
.factory
.annotation
.Autowired
;
13 import org
.springframework
.security
.access
.prepost
.PreAuthorize
;
14 import org
.springframework
.stereotype
.Service
;
15 import org
.springframework
.transaction
.annotation
.Propagation
;
16 import org
.springframework
.transaction
.annotation
.Transactional
;
18 import eu
.etaxonomy
.cdm
.model
.common
.GrantedAuthorityImpl
;
19 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.IGrantedAuthorityDao
;
22 * @author andreas kohlbecker
27 @Transactional(propagation
= Propagation
.SUPPORTS
, readOnly
= true)
28 @PreAuthorize("hasRole('ROLE_ADMIN') or hasRole('ROLE_USER_MANAGER')")
29 public class GrantedAuthorityServiceImpl
extends ServiceBase
<GrantedAuthorityImpl
, IGrantedAuthorityDao
> implements IGrantedAuthorityService
{
33 protected void setDao(IGrantedAuthorityDao dao
) {