Changeset 5553 for ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/impl/database/GroupService.java
- Timestamp:
- 08/15/14 16:02:36 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/impl/database/GroupService.java
r5549 r5553 1 1 package clarin.cmdi.componentregistry.impl.database; 2 2 3 import clarin.cmdi.componentregistry.ItemNotFoundException; 3 4 import clarin.cmdi.componentregistry.UserUnauthorizedException; 4 5 import java.util.List; … … 49 50 List<String> listGroupNames(); 50 51 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); 58 54 59 55 /** … … 88 84 * @return database ID of group membership row 89 85 */ 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; 91 89 92 90 /** … … 130 128 boolean userGroupMember(String principalName, String groupId); 131 129 130 public Number getGroupIdByName(String groupName) throws ItemNotFoundException; 131 132 public String getGroupNameById(long groupId) throws ItemNotFoundException; 132 133 }
Note: See TracChangeset
for help on using the changeset viewer.