Ignore:
Timestamp:
Nov 20, 2012, 6:16:43 PM (11 years ago)
Author:
casties
Branch:
default
Message:

make annotation uri in store configurable. fix npe with no tags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/mpiwg/itgroup/annotations/restlet/BaseRestlet.java

    r58 r59  
    9999    public static String GROUPS_URI_PREFIX = "";
    100100    public static final String GROUPS_URI_KEY = "annotationmanager.uris.groups";
     101
     102    public static final String ANNOTATIONS_URI_KEY = "annotationmanager.uris.annotations";
    101103
    102104    /**
     
    218220                BaseRestlet.TAGS_URI_PREFIX = tup;
    219221            }
     222            String aup = (String) sc.getAttribute(ANNOTATIONS_URI_KEY);
     223            if (aup != null) {
     224                AnnotationStore.ANNOTATION_URI_PREFIX = aup;
     225            }
    220226        } else {
    221227            logger.error("Unable to get ServletContext!");
Note: See TracChangeset for help on using the changeset viewer.