Ignore:
Timestamp:
08/15/14 16:02:36 (10 years ago)
Author:
olhsha@mpi.nl
Message:

fixing serialisation issues for List<String>. Adding unit tests for goup service

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/impl/database/GroupService.java

    r5549 r5553  
    11package clarin.cmdi.componentregistry.impl.database;
    22
     3import clarin.cmdi.componentregistry.ItemNotFoundException;
    34import clarin.cmdi.componentregistry.UserUnauthorizedException;
    45import java.util.List;
     
    4950    List<String> listGroupNames();
    5051
    51     /**
    52      * Determines whether a user is the direct owner of a group
    53      * @param groupId
    54      * @param user
    55      * @return
    56      */
    57     boolean isUserOwnerOfGroup(long groupId, RegistryUser user);
     52   
     53    boolean isUserOwnerOfGroup(String groupName, String ownerPrincipalName);
    5854   
    5955    /**
     
    8884     * @return database ID of group membership row
    8985     */
    90     long makeMember(String userName, String groupName);
     86    long makeMember(String userName, String groupName) throws ItemNotFoundException;
     87   
     88   // long removeMember(String userName, String groupName) throws ItemNotFoundException;
    9189   
    9290    /**
     
    130128    boolean userGroupMember(String principalName, String groupId);
    131129   
     130    public  Number  getGroupIdByName(String groupName) throws ItemNotFoundException;
     131   
     132    public  String  getGroupNameById(long groupId) throws ItemNotFoundException;
    132133}
Note: See TracChangeset for help on using the changeset viewer.