Mercurial > lada > lada-server
annotate src/main/java/de/intevation/lada/util/auth/UserInfo.java @ 711:3ec358698b4d
Code style and documentation.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 22 Jul 2015 16:03:03 +0200 |
parents | b2db32812260 |
children | 244c54d16957 |
rev | line source |
---|---|
711
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
580
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
580
diff
changeset
|
2 * Software engineering by Intevation GmbH |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
580
diff
changeset
|
3 * |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
580
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
580
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
580
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
580
diff
changeset
|
7 */ |
580
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
8 package de.intevation.lada.util.auth; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
9 |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
10 import java.util.ArrayList; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
11 import java.util.List; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
12 |
711
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
580
diff
changeset
|
13 /** |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
580
diff
changeset
|
14 * Container for user specific information. |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
580
diff
changeset
|
15 * |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
580
diff
changeset
|
16 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
580
diff
changeset
|
17 */ |
580
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
18 public class UserInfo { |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
19 private String name; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
20 private List<String> messstellen; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
21 private List<String> netzbetreiber; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
22 private List<String> roles; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
23 |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
24 public UserInfo() { |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
25 messstellen = new ArrayList<String>(); |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
26 netzbetreiber = new ArrayList<String>(); |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
27 } |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
28 |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
29 /** |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
30 * @return the name |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
31 */ |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
32 public String getName() { |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
33 return name; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
34 } |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
35 |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
36 /** |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
37 * @param name the name to set |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
38 */ |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
39 public void setName(String name) { |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
40 this.name = name; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
41 } |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
42 |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
43 /** |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
44 * @return the messstellen |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
45 */ |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
46 public List<String> getMessstellen() { |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
47 return messstellen; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
48 } |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
49 |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
50 /** |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
51 * @param messstellen the messstellen to set |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
52 */ |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
53 public void setMessstellen(List<String> messstellen) { |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
54 this.messstellen = messstellen; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
55 } |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
56 |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
57 /** |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
58 * @return the netzbetreiber |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
59 */ |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
60 public List<String> getNetzbetreiber() { |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
61 return netzbetreiber; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
62 } |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
63 |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
64 /** |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
65 * @param netzbetreiber the netzbetreiber to set |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
66 */ |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
67 public void setNetzbetreiber(List<String> netzbetreiber) { |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
68 this.netzbetreiber = netzbetreiber; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
69 } |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
70 |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
71 /** |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
72 * @return the roles |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
73 */ |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
74 public List<String> getRoles() { |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
75 return roles; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
76 } |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
77 |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
78 /** |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
79 * @param roles the roles to set |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
80 */ |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
81 public void setRoles(List<String> roles) { |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
82 this.roles = roles; |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
83 } |
b2db32812260
Added OpenId authorization and user info class.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
84 } |