annotate flys-client/src/main/java/de/intevation/flys/client/server/RemoteServiceServlet.java @ 3689:c938e568c4a2 2.9

merged flys-backend/2.9
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:44 +0200
parents fed914a42a10
children a050cb5f303f
rev   line source
3548
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
1 package de.intevation.flys.client.server;
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
2
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
3 import de.intevation.flys.client.server.auth.User;
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
4
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
5 import javax.servlet.http.HttpSession;
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
6
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
7 public class RemoteServiceServlet
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
8 extends com.google.gwt.user.server.rpc.RemoteServiceServlet
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
9 {
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
10 /**
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
11 * Return the current logged in user from the HTTP Session
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
12 */
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
13 public User getUser() {
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
14 HttpSession session = this.getThreadLocalRequest().getSession();
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
15 return (User)session.getAttribute("user");
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
16 }
fed914a42a10 Merged revisions 5373,5377-5378 via svnmerge from
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
17 }

http://dive4elements.wald.intevation.org