Project

General

Profile

Download (973 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
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.
8
*/
9
package eu.etaxonomy.cdm.vaadin.permission;
10

    
11
import org.springframework.context.annotation.Bean;
12
import org.springframework.context.annotation.Configuration;
13

    
14
import com.vaadin.spring.annotation.UIScope;
15

    
16
/**
17
 * @author a.kohlbecker
18
 * @since Apr 24, 2017
19
 *
20
 */
21
@Configuration
22
public class AnnotationBasedAccessControlConfiguration {
23

    
24
    @Bean
25
    @UIScope
26
    public AnnotationBasedAccessControlBean annotationBasedAccessControlBean() {
27
        return new AnnotationBasedAccessControlBean();
28
    }
29

    
30
    @Bean
31
    @UIScope // TODO move into own @Configuration class?
32
    public AccessRestrictedViewControlBean accessRestrictedViewControlBean() {
33
        return new AccessRestrictedViewControlBean();
34
    }
35

    
36
}
(4-4/8)