Ignore:
Timestamp:
11/18/14 17:52:24 (10 years ago)
Author:
olhsha@mpi.nl
Message:

refactoring. Adding ALL as an access mode.

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

    r5661 r5836  
    5858     
    5959 
    60     public List<Number> getAnnotationIDsForPermission(Number principalID, Access acess);
    61    
    62     public List<Number> getAnnotationIDsForPublicAccess(Access access);
     60    public List<Number> getAnnotationIDsPermissionAtLeast(Number principalID, Access acess);
     61   
     62   
     63    public List<Number> getAnnotationIDsPublicAtLeast(Access access);
    6364   
    6465   
     
    8586    public List<String> getAnnotationREFs(List<Number> annotationIDs);
    8687   
    87    
    88    
    89    
    90    
    91        /**
    92      *
    93      * @param annotationID
    94      * @return the list of the internal IDs of all the target Targets of "annotationID".
    95      */
    96     //public List<Number> retrieveTargetIDs(Number annotationID);   
    97    
     88 
    9889   
    9990    public Number  getOwner(Number annotationID);
     
    10697     */
    10798    public Access  getAccess(Number annotationID, Number principalID);
     99   
     100    public boolean  hasExplicitAccess(Number annotationID, Number principalID);
    108101   
    109102   
     
    148141     * Sets the "access" for the "principalID" w.r.t. the annotation with "annotationID".
    149142     */
    150     public int addAnnotationPrincipalAccess(Number annotationID, Number principalID, Access access);
     143    public int addPermission(Number annotationID, Number principalID, Access access);
    151144   
    152145   
     
    187180     * Sets the "access" for the "principalID" w.r.t. the annotation with "annotationID".
    188181     */
    189     public int updateAnnotationPrincipalAccess(Number annotationID, Number principalID, Access access);
    190    
    191    
    192     public int updatePublicAttribute(Number annotationID, Access access);
     182    public int updatePermission(Number annotationID, Number principalID, Access access);
     183   
     184   
     185    public int updatePublicAccess(Number annotationID, Access access);
    193186   
    194187   
     
    222215    * @throws SQLException
    223216    */
    224     public int deleteAnnotationPermissions(Number annotationID);
    225    
    226     public int deleteAnnotationPrincipalAccess(Number annotationID, Number principalID);
     217    public int deletePermissions(Number annotationID);
     218   
     219    public int deletePermission(Number annotationID, Number principalID);
    227220   
    228221    public int deleteAnnotationFromAllNotebooks(Number annotationID);
Note: See TracChangeset for help on using the changeset viewer.