nl.surfnet.coin.api.service
Interface PersonService

All Known Implementing Classes:
MockServiceImpl, PersonServiceImpl

public interface PersonService


Method Summary
 GroupMembersEntry getGroupMembers(String groupId, String onBehalfOf, String spEntityId, Integer count, Integer startIndex, String sortBy)
          Get the group members of the given group.
 PersonEntry getPerson(String userId, String onBehalfOf, String spEntityId)
          Get the OpenSocial Person.
 

Method Detail

getPerson

@PreAuthorize(value="#onBehalfOf == null or #userId.equals(#onBehalfOf)")
PersonEntry getPerson(String userId,
                                   String onBehalfOf,
                                   String spEntityId)
Get the OpenSocial Person. Note that the onBehalfOf can be null.

Parameters:
userId - the unique identifier
onBehalfOf - the unique identifier of the user on behalf of whom the request is made.
spEntityId - the entity that performs the request
Returns:
the PersonEntry

getGroupMembers

@PostAuthorize(value="#onBehalf == null or returnObject.isMember(#onBehalfOf)")
GroupMembersEntry getGroupMembers(String groupId,
                                                String onBehalfOf,
                                                String spEntityId,
                                                Integer count,
                                                Integer startIndex,
                                                String sortBy)
Get the group members of the given group. Note that the onBehalfOf can be null.

Parameters:
groupId - String the unique identifier for the group
onBehalfOf - the unique identifier of the user on behalf of whom the request is made.
spEntityId - the entity that performs the request
count - nr of records to fetch
startIndex - first record nr.
sortBy - field to sort by.
Returns:
an ArrayList containing Person's


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