annotate flys-client/src/main/java/de/intevation/flys/client/server/RemoteServiceServlet.java @ 4205:0dd8963cec9c

Set also the width of the GaugeTree when resizing the GaugePanel GWT is no longer able to calculate and set the correct width of the GaugeTree since the GaugeTree is added via a Canvas wrapper. Therefore set the width manually when resizing the GaugeTree.
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 22 Oct 2012 15:33:16 +0200
parents 887d7001eeec
children
rev   line source
3691
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
1 package de.intevation.flys.client.server;
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
2
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
3 import de.intevation.flys.client.server.auth.User;
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
4
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
5 import javax.servlet.http.HttpSession;
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
6
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
7 public class RemoteServiceServlet
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
8 extends com.google.gwt.user.server.rpc.RemoteServiceServlet
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
9 {
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
10 /**
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
11 * Return the current logged in user from the HTTP Session
3696
a050cb5f303f Cosmetics
Christian Lins <christian.lins@intevation.de>
parents: 3691
diff changeset
12 */
3691
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
13 public User getUser() {
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
14 HttpSession session = this.getThreadLocalRequest().getSession();
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
15 return (User)session.getAttribute("user");
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
16 }
b0c1d9e06a69 Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
17 }
3849
887d7001eeec Cosmetics, docs.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3696
diff changeset
18 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org