nl.surfnet.coin.teams.service.impl
Class GroupServiceBasicAuthentication

java.lang.Object
  extended by nl.surfnet.coin.teams.service.impl.AbstractGroupService
      extended by nl.surfnet.coin.teams.service.impl.GroupServiceBasicAuthentication
All Implemented Interfaces:
BasicAuthGroupService

@Component(value="basicAuthGroupService")
public class GroupServiceBasicAuthentication
extends AbstractGroupService
implements BasicAuthGroupService

Implementation for BasicAuthGroupService to supply external group providers based on basic auth


Constructor Summary
GroupServiceBasicAuthentication()
           
 
Method Summary
 Group20 getGroup20(GroupProvider groupProvider, String personId, String groupId)
          Gets a specific Group20 for the users oauth configuration
 Group20Entry getGroup20Entry(GroupProvider groupProvider, String personId, int limit, int offset)
          Gets a Group20Entry for the user's
 GroupMembersEntry getGroupMembersEntry(GroupProvider groupProvider, String personId, String groupId, int limit, int offset)
          Gets group members with paginating information for the user
 
Methods inherited from class nl.surfnet.coin.teams.service.impl.AbstractGroupService
getGroup20EntryFromResponse, getGroupMembersEntryFromResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupServiceBasicAuthentication

public GroupServiceBasicAuthentication()
Method Detail

getGroup20Entry

public Group20Entry getGroup20Entry(GroupProvider groupProvider,
                                    String personId,
                                    int limit,
                                    int offset)
Description copied from interface: BasicAuthGroupService
Gets a Group20Entry for the user's

Specified by:
getGroup20Entry in interface BasicAuthGroupService
Parameters:
groupProvider - GroupProvider for the settings
limit - maximum amount of Group20's in the resultset
offset - start index
Returns:
Group20Entry

getGroup20

public Group20 getGroup20(GroupProvider groupProvider,
                          String personId,
                          String groupId)
Description copied from interface: BasicAuthGroupService
Gets a specific Group20 for the users oauth configuration

Specified by:
getGroup20 in interface BasicAuthGroupService
Parameters:
groupProvider - GroupProvider for the settings
groupId - identifier of the external group
Returns:
Group20, can be null

getGroupMembersEntry

public GroupMembersEntry getGroupMembersEntry(GroupProvider groupProvider,
                                              String personId,
                                              String groupId,
                                              int limit,
                                              int offset)
Description copied from interface: BasicAuthGroupService
Gets group members with paginating information for the user

Specified by:
getGroupMembersEntry in interface BasicAuthGroupService
Parameters:
groupProvider - GroupProvider for the settings
groupId - the groupId as we know it in SURFconext context (e.g. urn:collab:group:myuniversity.nl:testgroup)
limit - maximum number of items
offset - starting point for paging
Returns:
GroupMembersEntry, can be null


Copyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.