Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/services/UserService.java @ 25:2da6be38d8b6
Added a User interface and a default implementation to handle users in this client.
flys-client/trunk@1411 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 07 Mar 2011 13:40:37 +0000 |
parents | bc5d4d2297b9 |
children | 907b61e4d702 |
comparison
equal
deleted
inserted
replaced
24:8825ce0a537e | 25:2da6be38d8b6 |
---|---|
1 package de.intevation.flys.client.client.services; | 1 package de.intevation.flys.client.client.services; |
2 | 2 |
3 import com.google.gwt.user.client.rpc.RemoteService; | 3 import com.google.gwt.user.client.rpc.RemoteService; |
4 import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; | 4 import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; |
5 | 5 |
6 import de.intevation.artifacts.common.model.User; | 6 import de.intevation.flys.client.shared.model.User; |
7 | 7 |
8 | 8 |
9 /** | 9 /** |
10 * This interface describes services for the user. | 10 * This interface describes services for the user. |
11 * | 11 * |
15 public interface UserService extends RemoteService { | 15 public interface UserService extends RemoteService { |
16 | 16 |
17 /** | 17 /** |
18 * This method retrieves the user that is currently logged in. | 18 * This method retrieves the user that is currently logged in. |
19 * | 19 * |
20 * @param serverUrl The url of the artifact server. | |
21 * | |
20 * @return the current {@link User}. | 22 * @return the current {@link User}. |
21 */ | 23 */ |
22 User getCurrentUser(); | 24 User getCurrentUser(String serverUrl); |
23 } | 25 } |
24 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 26 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |