2 * Copyright (C) 2016 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
.remote
.controller
;
11 import io
.swagger
.annotations
.Api
;
13 import java
.security
.Principal
;
15 import org
.springframework
.beans
.factory
.annotation
.Autowired
;
16 import org
.springframework
.stereotype
.Controller
;
17 import org
.springframework
.web
.bind
.annotation
.RequestMapping
;
18 import org
.springframework
.web
.bind
.annotation
.RequestMethod
;
20 import eu
.etaxonomy
.cdm
.api
.service
.IUserService
;
21 import eu
.etaxonomy
.cdm
.model
.common
.User
;
24 * @author a.kohlbecker
30 @RequestMapping(value
= {"/user"})
31 public class UserController
extends AbstractController
<User
, IUserService
> {
38 public void setService(IUserService service
) {
39 this.service
= service
;
42 @RequestMapping(value
="me", method
=RequestMethod
.GET
)
43 public Principal
doGetCurrentUser(Principal principal
) {