Ignore:
Timestamp:
Nov 23, 2012, 4:55:04 PM (11 years ago)
Author:
casties
Branch:
default
Message:

fixed bug with new rectangle shapes. added limit, offset and sortBy parameters to annotator/ and annotator/search.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/mpiwg/itgroup/annotations/neo4j/AnnotationStore.java

    r59 r63  
    790790     * @param uri
    791791     * @param userUri
    792      * @param limit
    793      * @param offset
    794      * @return
    795      */
    796     public List<Annotation> searchAnnotationByUriUser(String targetUri, String userUri, String limit, String offset) {
     792     * @return
     793     */
     794    public List<Annotation> searchAnnotationByUriUser(String targetUri, String userUri) {
    797795        List<Annotation> annotations = new ArrayList<Annotation>();
    798796        if (targetUri != null) {
    799797            // there should be only one
    800             Node target = getNodeIndex(NodeTypes.TARGET).get("uri", targetUri).getSingle();
     798            Node target = getNodeFromIndex("uri", targetUri, NodeTypes.TARGET);
    801799            if (target != null) {
    802800                Iterable<Relationship> relations = target.getRelationships(RelationTypes.ANNOTATES);
     
    829827        }
    830828        // TODO: if both uri and user are given we should intersect
     829       
    831830        return annotations;
    832831    }
Note: See TracChangeset for help on using the changeset viewer.