Ignore:
Timestamp:
08/11/14 16:07:55 (10 years ago)
Author:
olhsha@mpi.nl
Message:

Added group service. Tested via the tomcat on loclahots (test URI and postman), old unit tests are adjusted and work well. Todo: retest on localhost tomcat, look at run-time exceptions, add new unit tests, adjust front-end

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/persistence/ComponentDao.java

    r4098 r5549  
    1616public interface ComponentDao {
    1717
    18     /**
    19      * Get all public components
    20      *
    21      * @return
    22      */
    23     List<BaseDescription> getPublicComponentDescriptions();
    24 
     18   
    2519    /**
    2620     * Get all public profiles
     
    2822     * @return
    2923     */
    30     List<BaseDescription> getPublicProfileDescriptions();
     24    List<BaseDescription> getPublicBaseDescriptions(String prefix);
    3125
    3226    /**
     
    5751     *         public)
    5852     */
    59     boolean isInRegistry(String cmdId, Number userId);
     53    //boolean isAccessible(String cmdId, Number userId);
    6054
    6155    /**
     
    117111     * @return The description, if it exists; null otherwise
    118112     */
    119     BaseDescription getByCmdId(String id, Number userId)
    120             throws DataAccessException;
     113//    BaseDescription getByCmdId(String id, Number userId)
     114//          throws DataAccessException;
     115 
    121116
    122117    /**
     
    146141     *         not part of any group
    147142     */
    148     List<BaseDescription> getUserspaceComponents(Number userId)
     143    List<BaseDescription> getPrivateBaseDescriptions(Number userId, String prefix)
    149144            throws DataAccessException;
    150 
    151     /**
    152      *
    153      * @return All the user's profiles not in the public space and are also
    154      *         not part of any group
    155      */
    156     List<BaseDescription> getUserspaceProfiles(Number userId)
    157             throws DataAccessException;
    158 
     145 
    159146    void setDeleted(BaseDescription desc, boolean isDeleted)
    160147            throws DataAccessException;
     
    182169    List<String> getAllNonDeletedComponentIds();
    183170
     171    public List<BaseDescription> getAllNonDeletedDescriptions();
     172           
     173    // Olha was here
     174    public List<String> getAllItemIdsInGroup(String prefix, Long groupId);
    184175
    185176}
Note: See TracChangeset for help on using the changeset viewer.