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

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

@Component(value="oauthGroupService")
public class GroupServiceThreeLeggedOAuth10a
extends AbstractGroupService
implements OauthGroupService

Implementation for a OauthGroupService using 3-legged OAuth


Field Summary
protected  OpenConextJsonParser parser
           
 
Constructor Summary
GroupServiceThreeLeggedOAuth10a()
           
 
Method Summary
 Group20 getGroup20(GroupProviderUserOauth oauth, GroupProvider groupProvider, String groupId)
          Gets a specific Group20 for the users oauth configuration
 Group20Entry getGroup20Entry(GroupProviderUserOauth oauth, GroupProvider groupProvider, int limit, int offset)
          Gets a Group20Entry for the user's oauth configuration
 List<Group20> getGroup20List(GroupProviderUserOauth oauth, GroupProvider provider)
          Gets a List of Group20's for the user's oauth configuration
 List<Person> getGroupMembers(GroupProviderUserOauth oauth, GroupProvider provider, String groupId)
          Gets a List of for the user's oauth configuration
 GroupMembersEntry getGroupMembersEntry(GroupProviderUserOauth oauth, GroupProvider provider, String groupId, int limit, int offset)
          Gets group members with paginating information for the user's oauth configuration
 
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
 

Field Detail

parser

protected OpenConextJsonParser parser
Constructor Detail

GroupServiceThreeLeggedOAuth10a

public GroupServiceThreeLeggedOAuth10a()
Method Detail

getGroup20Entry

public Group20Entry getGroup20Entry(GroupProviderUserOauth oauth,
                                    GroupProvider groupProvider,
                                    int limit,
                                    int offset)
Description copied from interface: OauthGroupService
Gets a Group20Entry for the user's oauth configuration

Specified by:
getGroup20Entry in interface OauthGroupService
Parameters:
oauth - GroupProviderUserOauth configuration for a user
groupProvider - GroupProvider for the settings
limit - maximum amount of Group20's in the resultset
offset - start index
Returns:
Group20Entry

getGroup20List

public List<Group20> getGroup20List(GroupProviderUserOauth oauth,
                                    GroupProvider provider)
Description copied from interface: OauthGroupService
Gets a List of Group20's for the user's oauth configuration

Specified by:
getGroup20List in interface OauthGroupService
Parameters:
oauth - GroupProviderUserOauth configuration for a user
provider - GroupProvider for the settings
Returns:
List of Group20's, can be empty

getGroup20

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

Specified by:
getGroup20 in interface OauthGroupService
Parameters:
oauth - GroupProviderUserOauth configuration for a user
groupProvider - GroupProvider for the settings
groupId - identifier of the external group
Returns:
Group20, can be null

getGroupMembers

public List<Person> getGroupMembers(GroupProviderUserOauth oauth,
                                    GroupProvider provider,
                                    String groupId)
Description copied from interface: OauthGroupService
Gets a List of for the user's oauth configuration

Specified by:
getGroupMembers in interface OauthGroupService
Parameters:
oauth - GroupProviderUserOauth configuration for a user
provider - GroupProvider for the settings
groupId - the groupId as we know it in SURFconext context (e.g. urn:collab:group:myuniversity.nl:testgroup)
Returns:
List of Group20's, can be empty

getGroupMembersEntry

public GroupMembersEntry getGroupMembersEntry(GroupProviderUserOauth oauth,
                                              GroupProvider provider,
                                              String groupId,
                                              int limit,
                                              int offset)
Description copied from interface: OauthGroupService
Gets group members with paginating information for the user's oauth configuration

Specified by:
getGroupMembersEntry in interface OauthGroupService
Parameters:
oauth - GroupProviderUserOauth configuration for a user
provider - 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.