Changeset 63:9f8c9611848a in AnnotationManagerN4J for src/main/java/de/mpiwg/itgroup/annotations/neo4j/AnnotationStore.java
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/de/mpiwg/itgroup/annotations/neo4j/AnnotationStore.java
r59 r63 790 790 * @param uri 791 791 * @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) { 797 795 List<Annotation> annotations = new ArrayList<Annotation>(); 798 796 if (targetUri != null) { 799 797 // there should be only one 800 Node target = getNode Index(NodeTypes.TARGET).get("uri", targetUri).getSingle();798 Node target = getNodeFromIndex("uri", targetUri, NodeTypes.TARGET); 801 799 if (target != null) { 802 800 Iterable<Relationship> relations = target.getRelationships(RelationTypes.ANNOTATES); … … 829 827 } 830 828 // TODO: if both uri and user are given we should intersect 829 831 830 return annotations; 832 831 }
Note: See TracChangeset
for help on using the changeset viewer.