Ignore:
Timestamp:
12/19/13 14:36:04 (10 years ago)
Author:
olhsha
Message:

adding trasnactional, refactoring and fixing bugs in updated annotations, removing try-catch from resource methods (The Greek's advice)

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

    r4146 r4207  
    114114    public Permission  getPermission(Number annotationID, Number userID);
    115115   
    116     public List<Number> getAnnotationIDsForUserWithPermission(Number userID, String permissionString);
     116    public List<Number> getAnnotationIDsForUserWithPermission(Number userID, String[] permissionStrings);
    117117   
    118118   
     
    164164    /////// UPDATERS //////////////////
    165165   
    166     int updateAnnotationBodyText(Number annotationID, String text);
    167    
    168     /**
    169      *
    170      * @param annotationID
    171      * @param annotationBody
    172      * @return # of updated rows in "annotation" table after updating the annotation's body text with "newBodyText". Should return 1.
    173      */
    174     public int updateAnnotationBody(Number annotationID, AnnotationBody annotationBody);
     166   
     167    public int updateAnnotationBody(Number annotationID, String text, String mimeType, Boolean isXml);
    175168   
    176169   
     
    229222    */
    230223    public int deleteAnnotationPrincipalPermissions(Number annotationID);
     224   
     225    /*
     226     * HELPERS
     227     */
     228   
     229    public String[] retrieveBodyComponents(AnnotationBody annotationBody);
    231230
    232231}
Note: See TracChangeset for help on using the changeset viewer.