Changeset 3407 for DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/AnnotationDao.java
- Timestamp:
- 08/17/13 21:09:17 (11 years ago)
- 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 19 19 20 20 import eu.dasish.annotation.backend.identifiers.AnnotationIdentifier; 21 import eu.dasish.annotation.backend.identifiers.UserIdentifier;22 21 import eu.dasish.annotation.schema.Annotation; 23 import eu.dasish.annotation.schema.AnnotationBody;24 22 import eu.dasish.annotation.schema.AnnotationInfo; 25 import eu.dasish.annotation.schema.NewOrExistingSourceInfo;26 import eu.dasish.annotation.schema.NewSourceInfo;27 23 import eu.dasish.annotation.schema.ResourceREF; 28 24 import java.sql.SQLException; … … 53 49 * 54 50 * @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 * 57 54 */ 58 Annotation getAnnotation(Number annotationID) throws SQLException;55 public Annotation getAnnotationWithoutSources(Number annotationID) throws SQLException; 59 56 60 57 … … 63 60 * @param annotationId 64 61 * @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) 70 65 */ 71 66 … … 102 97 * The first step for GET api/annotations?<filters> 103 98 */ 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 107 101 /** 108 102 * … … 135 129 public List<Number> retrieveSourceIDs(Number annotationID); 136 130 137 131 public int addAnnotationSourcePair(Number annotationID, Number sourceID) throws SQLException; 138 132 139 133 }
Note: See TracChangeset
for help on using the changeset viewer.