Ignore:
Timestamp:
09/30/14 16:41:32 (10 years ago)
Author:
olhsha@mpi.nl
Message:

filtering annotations on link is now exact. also added the parameter "matchMode", so the search request may looks like one of the follows:

GET api/annotations?link=Sagrada&matchMode=contains
GET api/annotations?link=http://nl.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia&matchMode=exact
GET api/annotations?link=http://nl.wikipedia.org/wiki&matchMode=starts_with
GET api/annotations?link=_Fam%C3%ADlia&matchMode=ends_with
GET api/annotations?link=http://nl.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia

Issue 16 github is fixed: now the list of siblings of the target exclude the target itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/DBDispatcher.java

    r5661 r5686  
    1818package eu.dasish.annotation.backend.dao;
    1919
     20import eu.dasish.annotation.backend.MatchMode;
    2021import eu.dasish.annotation.backend.NotInDataBaseException;
    2122import eu.dasish.annotation.backend.PrincipalCannotBeDeleted;
     
    7778     * created after time-samp "after and before time-stamp "before".
    7879     */
    79     List<Number> getFilteredAnnotationIDs(UUID ownerId, String link, String text, Number inloggedPrincipalID, String  accessMode, String namespace, String after, String before) throws NotInDataBaseException;
     80    List<Number> getFilteredAnnotationIDs(UUID ownerId, String link, MatchMode matchMode, String text, Number inloggedPrincipalID, String  accessMode, String namespace, String after, String before) throws NotInDataBaseException;
    8081
    8182    AnnotationInfoList getAllAnnotationInfos();
     
    9697     * created after time-samp "after and before time-stamp "before".
    9798     */
    98     AnnotationInfoList getFilteredAnnotationInfos(UUID ownerId, String link, String text, Number inloggedPrincipalID, String access, String namespace, String after, String before) throws NotInDataBaseException;
     99    AnnotationInfoList getFilteredAnnotationInfos(UUID ownerId, String link, MatchMode matchMode, String text, Number inloggedPrincipalID, String access, String namespace, String after, String before) throws NotInDataBaseException;
    99100
    100101 
Note: See TracChangeset for help on using the changeset viewer.