Ignore:
Timestamp:
02/20/14 15:52:16 (10 years ago)
Author:
olhsha
Message:

refactoring repetitive code for different sort of resources. Replaced with one code using enum type Resource

File:
1 edited

Legend:

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

    r3865 r4539  
    1818package eu.dasish.annotation.backend.dao;
    1919
     20
     21import java.util.List;
     22import java.util.Map;
    2023import java.util.UUID;
    2124
     
    2932    public void setServiceURI(String serviceURI);
    3033   
    31      /**
    32      *
    33      * @param externalID
    34      * @return internal identifier of the reTarget with externalID, or null if there is no reTarget with this identifier
    35      */
     34   
    3635    public Number getInternalID(UUID externalId);
    3736   
    38    
    39      /**
    40      *
    41      * @param uri
    42      * @return internal identifier of the reTarget with uri, or null if there is no reTarget with this uri
    43      */
     37 
    4438    public Number getInternalIDFromURI(String uri);
    4539   
    46     /**
    47      *
    48      * @param internalId
    49      * @return the UUID (external ID) of the reTarget with the "internalID".
    50      */
     40 
    5141    public UUID getExternalID(Number internalId);
    5242   
    53     /**
    54      *
    55      * @param externalID
    56      * @return returns the URI which is a concatenation of the serviceURI and externalID
    57      */
     43 
    5844    public String externalIDtoURI(String externalID);
    5945   
     
    7157     */
    7258    public String getURIFromInternalID(Number internalID);
     59   
     60    public List<Map<Number, String>>  getPermissions(Number resourceID);
    7361}
Note: See TracChangeset for help on using the changeset viewer.