Changeset 3408 for DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/AnnotationDao.java
- Timestamp:
- 08/18/13 16:21:58 (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
r3407 r3408 21 21 import eu.dasish.annotation.schema.Annotation; 22 22 import eu.dasish.annotation.schema.AnnotationInfo; 23 import eu.dasish.annotation.schema.Permission; 23 24 import eu.dasish.annotation.schema.ResourceREF; 25 import eu.dasish.annotation.schema.UserWithPermission; 24 26 import java.sql.SQLException; 25 27 import java.sql.Timestamp; … … 50 52 * @param annotationID 51 53 * @return the Annotation object with empty list of sources 52 * constructing a complete Annotation object from there sult and "retrieveSourceIDs" is done in "CompoundRequests"54 * constructing a complete Annotation object from there sult and "retrieveSourceIDs" is done in "DaoDispatchter" 53 55 * 54 56 */ … … 59 61 * 60 62 * @param annotationId 61 * @return 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) 63 * @return removed annotation rows (should be 1) 65 64 */ 66 65 67 public int []deleteAnnotation(Number annotationId) throws SQLException;66 public int deleteAnnotation(Number annotationId) throws SQLException; 68 67 68 /** 69 * 70 * @param annotationId 71 * @return # removed annotation_source rows for given annotationID 72 */ 73 74 public int deleteAllAnnotationSource(Number annotationId) throws SQLException; 69 75 70 76 … … 131 137 public int addAnnotationSourcePair(Number annotationID, Number sourceID) throws SQLException; 132 138 139 public int deleteAnnotationPrincipalPermissions(Number annotationID) throws SQLException ; 140 141 /** 142 * 143 * @param annotationID 144 * @param userID 145 * @param permission 146 * @return the amount of rows added to the table annotations_principals_permissions 147 */ 148 public int addAnnotationPrincipalPermission(Number annotationID, Number userID, Permission permission) throws SQLException; 149 150 /** 151 * 152 * @param annotationId 153 * @return retrieves all the pairs (user-permission) for "annotationId" from the table annotations_principals permissions 154 */ 155 public List<Map<Number, String>> retrievePermissions(Number annotationId); 156 133 157 }
Note: See TracChangeset
for help on using the changeset viewer.