Mercurial > hg > AnnotationManagerN4J
diff 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 |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/itgroup/annotations/restlet/BaseRestlet.java Tue Nov 20 18:23:52 2012 +0100 +++ b/src/main/java/de/mpiwg/itgroup/annotations/restlet/BaseRestlet.java Tue Nov 20 19:16:43 2012 +0100 @@ -99,6 +99,8 @@ public static String GROUPS_URI_PREFIX = ""; public static final String GROUPS_URI_KEY = "annotationmanager.uris.groups"; + public static final String ANNOTATIONS_URI_KEY = "annotationmanager.uris.annotations"; + /** * constructor * @@ -217,6 +219,10 @@ if (tup != null) { BaseRestlet.TAGS_URI_PREFIX = tup; } + String aup = (String) sc.getAttribute(ANNOTATIONS_URI_KEY); + if (aup != null) { + AnnotationStore.ANNOTATION_URI_PREFIX = aup; + } } else { logger.error("Unable to get ServletContext!"); }