Project

General

Profile

Download (1.15 KB) Statistics
| Branch: | Tag: | Revision:
1 04b569ef Andreas Kohlbecker
// $Id$
2
/**
3
* Copyright (C) 2012 EDIT
4
* European Distributed Institute of Taxonomy
5
* http://www.e-taxonomy.eu
6
*
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.
9
*/
10
package eu.etaxonomy.cdm.api.service;
11
12
import org.springframework.beans.factory.annotation.Autowired;
13 f512ae07 Andreas Kohlbecker
import org.springframework.security.access.prepost.PreAuthorize;
14 04b569ef Andreas Kohlbecker
import org.springframework.stereotype.Service;
15
import org.springframework.transaction.annotation.Propagation;
16
import org.springframework.transaction.annotation.Transactional;
17
18
import eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl;
19
import eu.etaxonomy.cdm.persistence.dao.common.IGrantedAuthorityDao;
20
21
/**
22
 * @author andreas kohlbecker
23
 * @date Sep 13, 2012
24
 *
25
 */
26
@Service
27 77b4a247 Andreas Kohlbecker
@Transactional(readOnly = true)
28 f512ae07 Andreas Kohlbecker
@PreAuthorize("hasRole('ROLE_ADMIN') or hasRole('ROLE_USER_MANAGER')")
29 04b569ef Andreas Kohlbecker
public class GrantedAuthorityServiceImpl extends ServiceBase<GrantedAuthorityImpl, IGrantedAuthorityDao> implements IGrantedAuthorityService {
30
31
    @Override
32
    @Autowired
33
    protected void setDao(IGrantedAuthorityDao dao) {
34
        this.dao = dao;
35
    }
36
37
38
}