comparison gwt-client/src/main/java/org/dive4elements/river/client/server/auth/User.java @ 5838:5aa05a7a34b7

Rename modules to more fitting names.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 15:23:37 +0200
parents flys-client/src/main/java/org/dive4elements/river/client/server/auth/User.java@821a02bbfb4e
children 172338b1407f
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
1 package org.dive4elements.river.client.server.auth;
2
3 import java.util.List;
4
5 /**
6 * User representation after a succesfull login
7 */
8 public interface User {
9
10 /**
11 * Returns the username as String
12 */
13 public String getName();
14
15 /**
16 * Returns the password of the user as String
17 */
18 public String getPassword();
19
20 /**
21 * Returns True if the authentication for the user
22 * has expired.
23 */
24 public boolean hasExpired();
25
26 /**
27 * Returns a list of roles corresponsing the the user
28 */
29 public List<String> getRoles();
30
31
32 /**
33 * Returns true if the user is allowed access the feature
34 */
35 public boolean canUseFeature(String feature);
36
37 /**
38 * Returns the users account name
39 */
40 public String getAccount();
41 }
42 // vim:set ts=4 sw=4 si et fenc=utf8 tw=80:

http://dive4elements.wald.intevation.org