Mercurial > hg > AnnotationManagerN4J
comparison src/main/java/de/mpiwg/itgroup/annotations/Annotation.java @ 16:794077e6288c
CLOSED - # 252: Tags for Annotations
https://it-dev.mpiwg-berlin.mpg.de/tracs/mpdl-project-software/ticket/252
author | casties |
---|---|
date | Tue, 04 Sep 2012 20:02:59 +0200 |
parents | 58357a4b86de |
children | 715aa11d138b |
comparison
equal
deleted
inserted
replaced
15:58357a4b86de | 16:794077e6288c |
---|---|
1 /** | 1 /** |
2 * | 2 * |
3 */ | 3 */ |
4 package de.mpiwg.itgroup.annotations; | 4 package de.mpiwg.itgroup.annotations; |
5 | |
6 import java.util.List; | |
7 import java.util.Set; | |
5 | 8 |
6 import de.mpiwg.itgroup.annotations.neo4j.AnnotationStore; | 9 import de.mpiwg.itgroup.annotations.neo4j.AnnotationStore; |
7 | 10 |
8 /** | 11 /** |
9 * @author casties | 12 * @author casties |
79 /** | 82 /** |
80 * The user or group that has read permissions. | 83 * The user or group that has read permissions. |
81 * null means any user. | 84 * null means any user. |
82 */ | 85 */ |
83 protected Actor readPermission; | 86 protected Actor readPermission; |
84 | 87 |
88 /** | |
89 * List of tags on this Annotation. | |
90 */ | |
91 protected Set<String> tags; | |
85 | 92 |
86 /** | 93 /** |
87 * Returns if the requested action is allowed on this annotation. | 94 * Returns if the requested action is allowed on this annotation. |
88 * | 95 * |
89 * @param action | 96 * @param action |
315 * @param readPermission the readPermission to set | 322 * @param readPermission the readPermission to set |
316 */ | 323 */ |
317 public void setReadPermission(Actor readPermission) { | 324 public void setReadPermission(Actor readPermission) { |
318 this.readPermission = readPermission; | 325 this.readPermission = readPermission; |
319 } | 326 } |
327 | |
328 /** | |
329 * @return the tags | |
330 */ | |
331 public Set<String> getTags() { | |
332 return tags; | |
333 } | |
334 | |
335 /** | |
336 * @param tags the tags to set | |
337 */ | |
338 public void setTags(Set<String> tags) { | |
339 this.tags = tags; | |
340 } | |
320 | 341 |
321 | 342 |
322 } | 343 } |