Mercurial > hg > AnnotationManagerN4J
comparison src/main/java/de/mpiwg/itgroup/annotations/restlet/BaseRestlet.java @ 59:e2f86ef9b871
make annotation uri in store configurable. fix npe with no tags.
| author | casties |
|---|---|
| date | Tue, 20 Nov 2012 19:16:43 +0100 |
| parents | f5c0e6df7e88 |
| children | 99d9afcfd04d |
comparison
equal
deleted
inserted
replaced
| 58:f5c0e6df7e88 | 59:e2f86ef9b871 |
|---|---|
| 96 /** | 96 /** |
| 97 * prefix to create uris for groups in store. | 97 * prefix to create uris for groups in store. |
| 98 */ | 98 */ |
| 99 public static String GROUPS_URI_PREFIX = ""; | 99 public static String GROUPS_URI_PREFIX = ""; |
| 100 public static final String GROUPS_URI_KEY = "annotationmanager.uris.groups"; | 100 public static final String GROUPS_URI_KEY = "annotationmanager.uris.groups"; |
| 101 | |
| 102 public static final String ANNOTATIONS_URI_KEY = "annotationmanager.uris.annotations"; | |
| 101 | 103 |
| 102 /** | 104 /** |
| 103 * constructor | 105 * constructor |
| 104 * | 106 * |
| 105 * @param context | 107 * @param context |
| 215 } | 217 } |
| 216 String tup = (String) sc.getAttribute(TAGS_URI_KEY); | 218 String tup = (String) sc.getAttribute(TAGS_URI_KEY); |
| 217 if (tup != null) { | 219 if (tup != null) { |
| 218 BaseRestlet.TAGS_URI_PREFIX = tup; | 220 BaseRestlet.TAGS_URI_PREFIX = tup; |
| 219 } | 221 } |
| 222 String aup = (String) sc.getAttribute(ANNOTATIONS_URI_KEY); | |
| 223 if (aup != null) { | |
| 224 AnnotationStore.ANNOTATION_URI_PREFIX = aup; | |
| 225 } | |
| 220 } else { | 226 } else { |
| 221 logger.error("Unable to get ServletContext!"); | 227 logger.error("Unable to get ServletContext!"); |
| 222 } | 228 } |
| 223 } | 229 } |
| 224 | 230 |
