Ignore:
Timestamp:
08/17/13 21:09:17 (11 years ago)
Author:
olhsha
Message:

refactored DAO-s: resource dao do not call each-other methods any more. Only the new Dispatcher method can do it. Not tested.

File:
1 edited

Legend:

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

    r3395 r3407  
    1919
    2020import eu.dasish.annotation.backend.identifiers.AnnotationIdentifier;
    21 import eu.dasish.annotation.backend.identifiers.UserIdentifier;
    2221import eu.dasish.annotation.schema.Annotation;
    23 import eu.dasish.annotation.schema.AnnotationBody;
    2422import eu.dasish.annotation.schema.AnnotationInfo;
    25 import eu.dasish.annotation.schema.NewOrExistingSourceInfo;
    26 import eu.dasish.annotation.schema.NewSourceInfo;
    2723import eu.dasish.annotation.schema.ResourceREF;
    2824import java.sql.SQLException;
     
    5349     *
    5450     * @param annotationID
    55      * @return annotation which has an annotation ID "annotationID"
    56      * if externalID is null or such annotation does not exist in the DB returns null;
     51     * @return the Annotation object with empty list of sources
     52     * constructing a complete Annotation object from theresult and "retrieveSourceIDs" is done in "CompoundRequests"
     53     *
    5754     */
    58     Annotation getAnnotation(Number annotationID) throws SQLException;
     55    public Annotation getAnnotationWithoutSources(Number annotationID) throws SQLException;
    5956   
    6057   
     
    6360     * @param annotationId
    6461     * @return
    65      * result[0] = # removed notebooks_annotations rows
    66      * result[1] = # removed "annotations_principals_perissions" rows
    67      * result[2] = # removed "annotatiobs_target_sources" rows
    68      * result[3] = # SAFELY removed "target_sources" rows (only unused)
    69      * result[4] = # removed annotation rows (should be 1)
     62     * result[0] = # removed "annotations_principals_perissions" rows
     63     * result[1] = # removed "annotatiobs_target_sources" rows
     64     * result[2] = # removed annotation rows (should be 1)
    7065     */
    7166   
     
    10297     * The first step for GET api/annotations?<filters>
    10398     */
    104     public List<Number> getFilteredAnnotationIDs(String link, String text, String access, String namespace, UserIdentifier owner, Timestamp after, Timestamp before);
    105    
    106    
     99    public List<Number> getFilteredAnnotationIDs(List<Number> annotationIDs, String text, String access, String namespace, Number ownerID, Timestamp after, Timestamp before);
     100       
    107101    /**
    108102     *
     
    135129    public List<Number> retrieveSourceIDs(Number annotationID);
    136130   
    137  
     131    public int addAnnotationSourcePair(Number annotationID, Number sourceID) throws SQLException;
    138132   
    139133}
Note: See TracChangeset for help on using the changeset viewer.