Mercurial > hg > AnnotationManagerN4J
comparison src/main/java/de/mpiwg/itgroup/annotations/Person.java @ 88:b406507a953d
upped version to 0.5.
can use display name and groups from auth token.
author | casties |
---|---|
date | Tue, 03 Feb 2015 19:01:27 +0100 |
parents | 2beafb8e19e4 |
children | 9140017e8962 |
comparison
equal
deleted
inserted
replaced
87:2beafb8e19e4 | 88:b406507a953d |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.mpiwg.itgroup.annotations; | 1 package de.mpiwg.itgroup.annotations; |
5 | 2 |
6 /* | 3 /* |
7 * #%L | 4 * #%L |
8 * AnnotationManager | 5 * AnnotationManager |
23 * License along with this program. If not, see | 20 * License along with this program. If not, see |
24 * <http://www.gnu.org/licenses/lgpl-3.0.html>. | 21 * <http://www.gnu.org/licenses/lgpl-3.0.html>. |
25 * #L% | 22 * #L% |
26 */ | 23 */ |
27 | 24 |
25 import java.util.Set; | |
26 | |
28 import de.mpiwg.itgroup.annotations.restlet.BaseRestlet; | 27 import de.mpiwg.itgroup.annotations.restlet.BaseRestlet; |
29 | 28 |
30 /** | 29 /** |
31 * @author casties | 30 * @author casties |
32 * | 31 * |
33 */ | 32 */ |
34 public class Person extends Actor { | 33 public class Person extends Actor { |
35 | 34 |
35 public Set<String> groups; | |
36 | |
36 public Person() { | 37 public Person() { |
37 } | 38 } |
38 | 39 |
39 public Person(String id) { | 40 public Person(String id) { |
40 super(); | 41 super(); |
89 if (id != null) { | 90 if (id != null) { |
90 name = application.getFullNameForId(id); | 91 name = application.getFullNameForId(id); |
91 } | 92 } |
92 return name; | 93 return name; |
93 } | 94 } |
95 | |
96 /** | |
97 * Returns the anonymous Person. | |
98 * | |
99 * @return | |
100 */ | |
101 public static Person getAnonymous() { | |
102 return new Person("anonymous"); | |
103 } | |
94 | 104 |
95 /* (non-Javadoc) | 105 /* (non-Javadoc) |
96 * @see java.lang.Object#toString() | 106 * @see java.lang.Object#toString() |
97 */ | 107 */ |
98 @Override | 108 @Override |