Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/auth/User.java @ 3485:71ba3cf3ec5e
Refactor Authentication to allow to pass the Freatures to the user class
The Features class can be used to receive the allowed features for the users
roles.
flys-client/trunk@5183 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Bjoern Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 10 Aug 2012 07:06:18 +0000 |
parents | 193a113888d4 |
children | 1387cdeb8d93 |
comparison
equal
deleted
inserted
replaced
3484:83845aa322ea | 3485:71ba3cf3ec5e |
---|---|
25 | 25 |
26 /** | 26 /** |
27 * Returns a list of roles corresponsing the the user | 27 * Returns a list of roles corresponsing the the user |
28 */ | 28 */ |
29 public List<String> getRoles(); | 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); | |
30 } | 36 } |
31 // vim:set ts=4 sw=4 si et fenc=utf8 tw=80: | 37 // vim:set ts=4 sw=4 si et fenc=utf8 tw=80: |