comparison flys-client/src/main/java/org/dive4elements/river/client/server/auth/User.java @ 5834:f507086aa94b

Repaired internal references.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 12:31:32 +0200
parents flys-client/src/main/java/de/intevation/flys/client/server/auth/User.java@1387cdeb8d93
children 821a02bbfb4e
comparison
equal deleted inserted replaced
5833:a2bdc0f524e8 5834:f507086aa94b
1 package de.intevation.flys.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