2 * Copyright (C) 2012 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 org
.springframework
.beans
.factory
.annotation
.Autowired
;
12 import org
.springframework
.security
.access
.prepost
.PreAuthorize
;
13 import org
.springframework
.stereotype
.Service
;
14 import org
.springframework
.transaction
.annotation
.Transactional
;
16 import eu
.etaxonomy
.cdm
.model
.permission
.GrantedAuthorityImpl
;
17 import eu
.etaxonomy
.cdm
.persistence
.dao
.permission
.IGrantedAuthorityDao
;
20 * @author andreas kohlbecker
25 @Transactional(readOnly
= true)
26 @PreAuthorize("hasRole('ROLE_ADMIN') or hasRole('ROLE_USER_MANAGER')")
27 public class GrantedAuthorityServiceImpl
extends ServiceBase
<GrantedAuthorityImpl
, IGrantedAuthorityDao
> implements IGrantedAuthorityService
{
31 protected void setDao(IGrantedAuthorityDao dao
) {
39 public GrantedAuthorityImpl
findAuthorityString(String authorityString
) {
40 return dao
.findAuthorityString(authorityString
);