Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/auth/DefaultUser.java @ 2980:cc126abafeab
Cosmetics in plain authentication
flys-client/trunk@4978 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 13 Jul 2012 09:42:38 +0000 |
parents | 98514ab2c9ba |
children | d700f6492386 |
comparison
equal
deleted
inserted
replaced
2979:193a113888d4 | 2980:cc126abafeab |
---|---|
12 protected List<String> roles; | 12 protected List<String> roles; |
13 | 13 |
14 public DefaultUser() { | 14 public DefaultUser() { |
15 } | 15 } |
16 | 16 |
17 public DefaultUser(String name, String password, boolean expired, List<String> roles) { | 17 public DefaultUser( |
18 String name, | |
19 String password, | |
20 boolean expired, | |
21 List<String> roles | |
22 ) { | |
18 this.name = name; | 23 this.name = name; |
19 this.password = password; | 24 this.password = password; |
20 this.expired = expired; | 25 this.expired = expired; |
21 this.roles = roles; | 26 this.roles = roles; |
22 } | 27 } |
23 | 28 |
24 @Override | 29 @Override |
25 public String getName() { | 30 public String getName() { |
26 return name; | 31 return name; |
48 this.expired = expired; | 53 this.expired = expired; |
49 } | 54 } |
50 | 55 |
51 @Override | 56 @Override |
52 public List<String> getRoles() { | 57 public List<String> getRoles() { |
53 // return clone of the list? | 58 // XXX: return clone of the list? |
54 return this.roles; | 59 return this.roles; |
55 } | 60 } |
56 | 61 |
57 public void setRoles(List<String> roles) { | 62 public void setRoles(List<String> roles) { |
58 this.roles = roles; | 63 this.roles = roles; |