annotate src/main/java/de/mpiwg/itgroup/annotations/Annotation.java @ 103:f83eb8b335b1

fix problem with anonymous being different.
author casties
date Thu, 09 Feb 2017 21:17:04 +0100
parents acd44dfec9c8
children 7417f5915181
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
1 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
2 *
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
3 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
4 package de.mpiwg.itgroup.annotations;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
5
70
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
6 /*
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
7 * #%L
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
8 * AnnotationManager
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
9 * %%
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
10 * Copyright (C) 2012 - 2014 MPIWG Berlin
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
11 * %%
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
12 * This program is free software: you can redistribute it and/or modify
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
13 * it under the terms of the GNU Lesser General Public License as
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
14 * published by the Free Software Foundation, either version 3 of the
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
15 * License, or (at your option) any later version.
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
16 *
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
17 * This program is distributed in the hope that it will be useful,
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
20 * GNU General Lesser Public License for more details.
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
21 *
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
22 * You should have received a copy of the GNU General Lesser Public
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
23 * License along with this program. If not, see
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
24 * <http://www.gnu.org/licenses/lgpl-3.0.html>.
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
25 * #L%
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
26 */
2b1e6df5e21a added lgpl_v3 license information.
casties
parents: 50
diff changeset
27
50
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
28 import java.io.UnsupportedEncodingException;
16
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
29 import java.util.Set;
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
30
50
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
31 import org.apache.commons.codec.binary.Base64;
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
32
15
58357a4b86de ASSIGNED - # 249: Annotations shared in groups
casties
parents: 14
diff changeset
33 import de.mpiwg.itgroup.annotations.neo4j.AnnotationStore;
58357a4b86de ASSIGNED - # 249: Annotations shared in groups
casties
parents: 14
diff changeset
34
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
35 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
36 * @author casties
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
37 *
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
38 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
39 public class Annotation {
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
40 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
41 * The URI of this annotation.
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
42 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
43 protected String uri;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
44
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
45 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
46 * The annotation (body) text.
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
47 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
48 protected String bodyText;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
49
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
50 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
51 * The URI of the annotation text
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
52 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
53 protected String bodyUri;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
54
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
55 /**
48
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
56 * The annotation target.
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
57 */
48
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
58 protected Target target;
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
59
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
60 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
61 * The fragment part of the annotation target.
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
62 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
63 protected String targetFragment;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
64
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
65 /**
40
03e0f7574224 saving and loading resource targets should work now (no searching yet)
casties
parents: 20
diff changeset
66 * The types of annotation target fragments.
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
67 *
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
68 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
69 public static enum FragmentTypes {
84
6bf38b5e30a8 also stores polygon shape image annotations.
casties
parents: 76
diff changeset
70 XPOINTER, AREA, WKT
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
71 };
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
72
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
73 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
74 * The type of the annotation target fragment.
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
75 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
76 protected FragmentTypes fragmentType;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
77
76
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
78 /**
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
79 * The selected text of the annotation target.
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
80 */
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
81 protected String quote;
40
03e0f7574224 saving and loading resource targets should work now (no searching yet)
casties
parents: 20
diff changeset
82
03e0f7574224 saving and loading resource targets should work now (no searching yet)
casties
parents: 20
diff changeset
83 /**
48
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
84 * The Resource that is annotated e.g. a book.
40
03e0f7574224 saving and loading resource targets should work now (no searching yet)
casties
parents: 20
diff changeset
85 * The target is part of this resource e.g. a page of a book.
03e0f7574224 saving and loading resource targets should work now (no searching yet)
casties
parents: 20
diff changeset
86 */
48
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
87 protected Resource resource;
40
03e0f7574224 saving and loading resource targets should work now (no searching yet)
casties
parents: 20
diff changeset
88
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
89 /**
9
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
90 * The creator of this annotation.
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
91 */
9
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
92 protected Actor creator;
5
bbf0cc5bee29 version 0.2 really works now
casties
parents: 4
diff changeset
93
bbf0cc5bee29 version 0.2 really works now
casties
parents: 4
diff changeset
94 /**
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
95 * The creation date of this annotation.
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
96 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
97 protected String created;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
98
10
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
99 /**
95
acd44dfec9c8 added last update field for annotations in database.
casties
parents: 84
diff changeset
100 * The last update date of this annotation.
acd44dfec9c8 added last update field for annotations in database.
casties
parents: 84
diff changeset
101 */
acd44dfec9c8 added last update field for annotations in database.
casties
parents: 84
diff changeset
102 protected String updated;
acd44dfec9c8 added last update field for annotations in database.
casties
parents: 84
diff changeset
103
acd44dfec9c8 added last update field for annotations in database.
casties
parents: 84
diff changeset
104 /**
10
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
105 * The user or group that has admin permissions.
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
106 * null means any user.
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
107 */
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
108 protected Actor adminPermission;
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
109
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
110 /**
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
111 * The user or group that has delete permissions.
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
112 * null means any user.
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
113 */
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
114 protected Actor deletePermission;
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
115
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
116 /**
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
117 * The user or group that has update permissions.
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
118 * null means any user.
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
119 */
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
120 protected Actor updatePermission;
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
121
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
122 /**
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
123 * The user or group that has read permissions.
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
124 * null means any user.
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
125 */
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
126 protected Actor readPermission;
16
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
127
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
128 /**
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
129 * List of tags on this Annotation.
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
130 */
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
131 protected Set<String> tags;
14
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
132
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
133 /**
20
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
134 * Returns if the requested action is allowed for the given user on this annotation.
14
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
135 *
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
136 * @param action
15
58357a4b86de ASSIGNED - # 249: Annotations shared in groups
casties
parents: 14
diff changeset
137 * @param user
58357a4b86de ASSIGNED - # 249: Annotations shared in groups
casties
parents: 14
diff changeset
138 * @param store AnnotationStore to check group membership
14
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
139 * @return
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
140 */
15
58357a4b86de ASSIGNED - # 249: Annotations shared in groups
casties
parents: 14
diff changeset
141 public boolean isActionAllowed(String action, Person user, AnnotationStore store) {
14
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
142 if (action.equals("read")) {
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
143 Actor reader = getReadPermission();
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
144 if (reader == null) {
20
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
145 // if not specified then everybody is allowed
14
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
146 return true;
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
147 } else {
15
58357a4b86de ASSIGNED - # 249: Annotations shared in groups
casties
parents: 14
diff changeset
148 return reader.isEquivalentWith(user, store);
14
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
149 }
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
150 } else if (action.equals("update")) {
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
151 // require at least an authenticated user
15
58357a4b86de ASSIGNED - # 249: Annotations shared in groups
casties
parents: 14
diff changeset
152 if (user == null) return false;
14
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
153 Actor updater = getUpdatePermission();
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
154 if (updater == null) {
20
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
155 // if not specified then everybody is allowed
14
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
156 return true;
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
157 } else {
15
58357a4b86de ASSIGNED - # 249: Annotations shared in groups
casties
parents: 14
diff changeset
158 return updater.isEquivalentWith(user, store);
14
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
159 }
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
160 } else if (action.equals("delete")) {
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
161 // require at least an authenticated user
15
58357a4b86de ASSIGNED - # 249: Annotations shared in groups
casties
parents: 14
diff changeset
162 if (user == null) return false;
20
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
163 Actor deleter = getDeletePermission();
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
164 if (deleter == null) {
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
165 // if not specified then only creator is allowed
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
166 deleter = creator;
14
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
167 }
20
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
168 return deleter.isEquivalentWith(user, store);
14
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
169 } else if (action.equals("admin")) {
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
170 // require at least an authenticated user
15
58357a4b86de ASSIGNED - # 249: Annotations shared in groups
casties
parents: 14
diff changeset
171 if (user == null) return false;
14
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
172 Actor admin = getAdminPermission();
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
173 if (admin == null) {
20
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
174 // if not specified then only creator is allowed
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
175 admin = creator;
14
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
176 }
20
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
177 return admin.isEquivalentWith(user, store);
14
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
178 }
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
179 return false;
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
180 }
629e15b345aa permissions mostly work. need more server-side checking.
casties
parents: 10
diff changeset
181
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
182 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
183 * @return the uri
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
184 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
185 public String getUri() {
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
186 return uri;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
187 }
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
188
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
189 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
190 * @param uri the uri to set
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
191 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
192 public void setUri(String uri) {
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
193 this.uri = uri;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
194 }
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
195
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
196 /**
50
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
197 * Returns an URL-compatible id.
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
198 * Currently the uri as base64 encoded string.
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
199 * @return
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
200 */
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
201 public String getUrlId() {
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
202 if (uri == null) return null;
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
203 try {
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
204 return Base64.encodeBase64URLSafeString(uri.getBytes("UTF-8"));
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
205 } catch (UnsupportedEncodingException e) {
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
206 return null;
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
207 }
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
208 }
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
209
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
210 public static String decodeId(String id) {
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
211 if (id == null) return null;
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
212 try {
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
213 return new String(Base64.decodeBase64(id), "UTF-8");
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
214 } catch (UnsupportedEncodingException e) {
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
215 return null;
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
216 }
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
217 }
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
218
64aa756c60cc annotations ui can show and delete annotations now.
casties
parents: 48
diff changeset
219 /**
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
220 * @return the bodyText
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
221 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
222 public String getBodyText() {
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
223 return bodyText;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
224 }
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
225
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
226 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
227 * @param bodyText the bodyText to set
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
228 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
229 public void setBodyText(String bodyText) {
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
230 this.bodyText = bodyText;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
231 }
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
232
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
233 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
234 * @return the bodyUri
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
235 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
236 public String getBodyUri() {
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
237 return bodyUri;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
238 }
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
239
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
240 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
241 * @param bodyUri the bodyUri to set
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
242 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
243 public void setBodyUri(String bodyUri) {
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
244 this.bodyUri = bodyUri;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
245 }
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
246
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
247 /**
48
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
248 * @return the target
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
249 */
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
250 public Target getTarget() {
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
251 return target;
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
252 }
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
253
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
254 /**
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
255 * @param target the target to set
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
256 */
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
257 public void setTarget(Target target) {
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
258 this.target = target;
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
259 }
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
260
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
261 /**
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
262 * @return the targetBaseUri
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
263 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
264 public String getTargetBaseUri() {
48
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
265 if (target == null) return null;
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
266 return target.getUri();
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
267 }
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
268
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
269 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
270 * @return the targetFragment
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
271 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
272 public String getTargetFragment() {
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
273 return targetFragment;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
274 }
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
275
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
276 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
277 * @param targetFragment the targetFragment to set
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
278 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
279 public void setTargetFragment(String targetFragment) {
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
280 this.targetFragment = targetFragment;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
281 }
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
282
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
283 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
284 * @return the targetType
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
285 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
286 public FragmentTypes getFragmentType() {
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
287 return fragmentType;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
288 }
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
289
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
290 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
291 * @param fragmentType the fragmentType to set
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
292 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
293 public void setFragmentType(FragmentTypes fragmentType) {
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
294 this.fragmentType = fragmentType;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
295 }
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
296
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
297 /**
76
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
298 * @return the quote
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
299 */
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
300 public String getQuote() {
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
301 return quote;
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
302 }
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
303
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
304 /**
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
305 * @param quote the quote to set
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
306 */
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
307 public void setQuote(String quote) {
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
308 this.quote = quote;
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
309 }
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
310
4e2dc67997a0 save text quote from Annotator.
casties
parents: 70
diff changeset
311 /**
48
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
312 * @return the resource
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
313 */
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
314 public Resource getResource() {
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
315 return resource;
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
316 }
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
317
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
318 /**
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
319 * @param resource the resource to set
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
320 */
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
321 public void setResource(Resource resource) {
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
322 this.resource = resource;
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
323 }
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
324
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
325 /**
40
03e0f7574224 saving and loading resource targets should work now (no searching yet)
casties
parents: 20
diff changeset
326 * @return the resourceUri
03e0f7574224 saving and loading resource targets should work now (no searching yet)
casties
parents: 20
diff changeset
327 */
03e0f7574224 saving and loading resource targets should work now (no searching yet)
casties
parents: 20
diff changeset
328 public String getResourceUri() {
48
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
329 if (resource == null) return null;
0e00bf8e27fb targets and resources of Annotation object are objects now.
casties
parents: 40
diff changeset
330 return resource.getUri();
40
03e0f7574224 saving and loading resource targets should work now (no searching yet)
casties
parents: 20
diff changeset
331 }
03e0f7574224 saving and loading resource targets should work now (no searching yet)
casties
parents: 20
diff changeset
332
03e0f7574224 saving and loading resource targets should work now (no searching yet)
casties
parents: 20
diff changeset
333 /**
9
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
334 * @return the creator
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
335 */
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
336 public Actor getCreator() {
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
337 return creator;
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
338 }
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
339
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
340 /**
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
341 * @param creator the creator to set
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
342 */
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
343 public void setCreator(Actor creator) {
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
344 this.creator = creator;
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
345 }
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
346
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
347 /**
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
348 * @return the creatorUri
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
349 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
350 public String getCreatorUri() {
9
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
351 if (creator != null) {
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
352 return creator.getUri();
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
353 }
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
354 return null;
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
355 }
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
356
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
357 /**
5
bbf0cc5bee29 version 0.2 really works now
casties
parents: 4
diff changeset
358 * @return the creatorName
bbf0cc5bee29 version 0.2 really works now
casties
parents: 4
diff changeset
359 */
bbf0cc5bee29 version 0.2 really works now
casties
parents: 4
diff changeset
360 public String getCreatorName() {
9
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
361 if (creator != null) {
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
362 return creator.getName();
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
363 }
b2bfc3bc9ba8 new internal actor class for creator.
casties
parents: 8
diff changeset
364 return null;
5
bbf0cc5bee29 version 0.2 really works now
casties
parents: 4
diff changeset
365 }
bbf0cc5bee29 version 0.2 really works now
casties
parents: 4
diff changeset
366
bbf0cc5bee29 version 0.2 really works now
casties
parents: 4
diff changeset
367 /**
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
368 * @return the created
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
369 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
370 public String getCreated() {
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
371 return created;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
372 }
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
373
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
374 /**
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
375 * @param created the created to set
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
376 */
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
377 public void setCreated(String created) {
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
378 this.created = created;
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
379 }
10
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
380
95
acd44dfec9c8 added last update field for annotations in database.
casties
parents: 84
diff changeset
381 public String getUpdated() {
acd44dfec9c8 added last update field for annotations in database.
casties
parents: 84
diff changeset
382 return updated;
acd44dfec9c8 added last update field for annotations in database.
casties
parents: 84
diff changeset
383 }
acd44dfec9c8 added last update field for annotations in database.
casties
parents: 84
diff changeset
384
acd44dfec9c8 added last update field for annotations in database.
casties
parents: 84
diff changeset
385 public void setUpdated(String updated) {
acd44dfec9c8 added last update field for annotations in database.
casties
parents: 84
diff changeset
386 this.updated = updated;
acd44dfec9c8 added last update field for annotations in database.
casties
parents: 84
diff changeset
387 }
acd44dfec9c8 added last update field for annotations in database.
casties
parents: 84
diff changeset
388
acd44dfec9c8 added last update field for annotations in database.
casties
parents: 84
diff changeset
389 /**
10
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
390 * @return the adminPermission
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
391 */
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
392 public Actor getAdminPermission() {
20
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
393 if (adminPermission != null) {
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
394 return adminPermission;
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
395 } else {
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
396 // if not specified then only creator is allowed
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
397 return this.creator;
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
398 }
10
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
399 }
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
400
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
401 /**
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
402 * @param adminPermission the adminPermission to set
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
403 */
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
404 public void setAdminPermission(Actor adminPermission) {
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
405 this.adminPermission = adminPermission;
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
406 }
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
407
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
408 /**
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
409 * @return the deletePermission
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
410 */
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
411 public Actor getDeletePermission() {
20
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
412 if (deletePermission != null) {
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
413 return deletePermission;
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
414 } else {
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
415 // if not specified then only creator is allowed
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
416 return this.creator;
715aa11d138b fixes in permission handling: admin and delete default to creator.
casties
parents: 16
diff changeset
417 }
10
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
418 }
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
419
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
420 /**
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
421 * @param deletePermission the deletePermission to set
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
422 */
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
423 public void setDeletePermission(Actor deletePermission) {
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
424 this.deletePermission = deletePermission;
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
425 }
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
426
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
427 /**
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
428 * @return the updatePermission
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
429 */
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
430 public Actor getUpdatePermission() {
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
431 return updatePermission;
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
432 }
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
433
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
434 /**
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
435 * @param updatePermission the updatePermission to set
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
436 */
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
437 public void setUpdatePermission(Actor updatePermission) {
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
438 this.updatePermission = updatePermission;
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
439 }
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
440
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
441 /**
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
442 * @return the readPermission
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
443 */
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
444 public Actor getReadPermission() {
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
445 return readPermission;
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
446 }
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
447
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
448 /**
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
449 * @param readPermission the readPermission to set
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
450 */
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
451 public void setReadPermission(Actor readPermission) {
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
452 this.readPermission = readPermission;
90911b2da322 more work on permissions...
casties
parents: 9
diff changeset
453 }
16
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
454
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
455 /**
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
456 * @return the tags
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
457 */
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
458 public Set<String> getTags() {
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
459 return tags;
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
460 }
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
461
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
462 /**
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
463 * @param tags the tags to set
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
464 */
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
465 public void setTags(Set<String> tags) {
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
466 this.tags = tags;
794077e6288c CLOSED - # 252: Tags for Annotations
casties
parents: 15
diff changeset
467 }
4
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
468
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
469
3599b29c393f store seems to work now :-)
casties
parents:
diff changeset
470 }