nl.surfnet.coin.api.service
Class MockGroupServiceImpl

java.lang.Object
  extended by nl.surfnet.coin.api.service.MockGroupServiceImpl
All Implemented Interfaces:
GroupService

public class MockGroupServiceImpl
extends Object
implements GroupService


Constructor Summary
MockGroupServiceImpl()
           
 
Method Summary
protected static Group20 createGroup()
           
 GroupEntry getGroup(String userId, String groupId, String onBehalfOf)
          Get specific Group
 Group20Entry getGroup20(String userId, String groupId, String onBehalfOf)
          Get specific Group
 GroupEntry getGroups(String userId, String onBehalfOf, Integer count, Integer startIndex, String sortBy)
          Get Persons' Groups
 Group20Entry getGroups20(String userId, String onBehalfOf, Integer count, Integer startIndex, String sortBy)
          Get Persons' Groups
 Group20Entry getGroups20ByIds(String personId, String[] ids, Integer count, Integer startIndex)
          Get a list of Group20's by the given list of group ids
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockGroupServiceImpl

public MockGroupServiceImpl()
Method Detail

getGroups

public GroupEntry getGroups(String userId,
                            String onBehalfOf,
                            Integer count,
                            Integer startIndex,
                            String sortBy)
Description copied from interface: GroupService
Get Persons' Groups

Specified by:
getGroups in interface GroupService
Parameters:
userId - the unique identifier
onBehalfOf - the unique identifier of the user that is going to make the request
count - nr of records to return
startIndex - first record of result set
sortBy - field to sort by
Returns:
List containing the Groups

getGroups20

public Group20Entry getGroups20(String userId,
                                String onBehalfOf,
                                Integer count,
                                Integer startIndex,
                                String sortBy)
Description copied from interface: GroupService
Get Persons' Groups

Specified by:
getGroups20 in interface GroupService
Parameters:
userId - the unique identifier
onBehalfOf - the unique identifier of the user that is going to make the request
count - nr of records to return
startIndex - first record of result set
sortBy - field to sort by
Returns:
List containing the Groups

getGroup

public GroupEntry getGroup(String userId,
                           String groupId,
                           String onBehalfOf)
Description copied from interface: GroupService
Get specific Group

Specified by:
getGroup in interface GroupService
Parameters:
userId - the unique identifier
groupId - the unique identifier
onBehalfOf - the unique identifier of the user that is going to make the request

getGroup20

public Group20Entry getGroup20(String userId,
                               String groupId,
                               String onBehalfOf)
Description copied from interface: GroupService
Get specific Group

Specified by:
getGroup20 in interface GroupService
Parameters:
userId - the unique identifier
groupId - the unique identifier
onBehalfOf - the unique identifier of the user that is going to make the request

getGroups20ByIds

public Group20Entry getGroups20ByIds(String personId,
                                     String[] ids,
                                     Integer count,
                                     Integer startIndex)
Description copied from interface: GroupService
Get a list of Group20's by the given list of group ids

Specified by:
getGroups20ByIds in interface GroupService
Parameters:
personId - the personId
ids - the array of ids
count - nr of records to return
startIndex - first record of result set
Returns:
the list of groups.

createGroup

protected static Group20 createGroup()


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