Project

General

Profile

Download (964 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.service;
10

    
11
import org.springframework.beans.factory.annotation.Autowired;
12

    
13
import com.vaadin.spring.annotation.SpringComponent;
14

    
15
import eu.etaxonomy.cdm.api.utility.UserHelper;
16

    
17
/**
18
 * Provides access to the UserHelper bean.
19
 *
20
 * @author a.kohlbecker
21
 * @since May 23, 2017
22
 *
23
 */
24
@SpringComponent
25
public class UserHelperAccess {
26

    
27
    private static UserHelper userHelper;
28

    
29
    @Autowired
30
    public void setUserUelper(UserHelper userHelper){
31
        UserHelperAccess.userHelper = userHelper;
32
    }
33

    
34
    /**
35
     * Static accessor method to obtain the UserHelper bean
36
     *
37
     * @return
38
     */
39
    public static UserHelper userHelper() {
40
       return userHelper;
41
    }
42

    
43
}
(7-7/7)