Ignore:
Timestamp:
Sep 26, 2012, 12:56:42 PM (12 years ago)
Author:
casties
Branch:
default
Message:

saving and loading resource targets should work now (no searching yet)

File:
1 edited

Legend:

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

    r22 r40  
    188188            jo.put("text", annot.getBodyText());
    189189            jo.put("uri", annot.getTargetBaseUri());
     190            if (annot.getResourceUri() != null) {
     191                jo.put("resource", annot.getResourceUri());
     192            }
    190193
    191194            /*
     
    442445        }
    443446        /*
     447         * resource uri
     448         */
     449        if (jo.has("resource")) {
     450            annot.setResourceUri(jo.getString("resource"));
     451        }
     452        /*
    444453         * annotation text
    445454         */
Note: See TracChangeset for help on using the changeset viewer.