nl.surfnet.coin.shindig.spi
Class PersonServiceImpl

java.lang.Object
  extended by nl.surfnet.coin.shindig.spi.AbstractRestDelegationService
      extended by nl.surfnet.coin.shindig.spi.PersonServiceImpl
All Implemented Interfaces:
PersonService

@Component(value="personService")
public class PersonServiceImpl
extends AbstractRestDelegationService
implements PersonService

Implementation of shindig PersonService connecting to the EngineBlock PHP endpoint


Field Summary
 
Fields inherited from class nl.surfnet.coin.shindig.spi.AbstractRestDelegationService
UTF_8
 
Fields inherited from interface org.apache.shindig.social.opensocial.spi.PersonService
ALL_FILTER, HAS_APP_FILTER, IS_WITH_FRIENDS_FILTER, TOP_FRIENDS_FILTER, TOP_FRIENDS_SORT
 
Constructor Summary
PersonServiceImpl()
           
 
Method Summary
 Future<org.apache.shindig.protocol.RestfulCollection<Person>> getPeople(Set<UserId> userIds, GroupId groupId, CollectionOptions collectionOptions, Set<String> fields, org.apache.shindig.auth.SecurityToken token)
           
 Future<Person> getPerson(UserId id, Set<String> fields, org.apache.shindig.auth.SecurityToken token)
           
 void setErrorMessageMailer(nl.surfnet.coin.shared.service.ErrorMessageMailer errorMessageMailer)
           
protected  void setGroupService(GroupService groupService)
           
 void setOpenSocialId(OpenSocialValidator openSocialValidator)
           
 
Methods inherited from class nl.surfnet.coin.shindig.spi.AbstractRestDelegationService
executeHttpGet, getEnvironment, getObjectMapper, getServiceProviderContext, getVirtualOrganizationContext, logApiCall, setEnvironment, setHttpClientProvider, setLogService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonServiceImpl

public PersonServiceImpl()
Method Detail

getPeople

public Future<org.apache.shindig.protocol.RestfulCollection<Person>> getPeople(Set<UserId> userIds,
                                                                               GroupId groupId,
                                                                               CollectionOptions collectionOptions,
                                                                               Set<String> fields,
                                                                               org.apache.shindig.auth.SecurityToken token)
                                                                        throws org.apache.shindig.protocol.ProtocolException
Specified by:
getPeople in interface PersonService
Throws:
org.apache.shindig.protocol.ProtocolException

getPerson

public Future<Person> getPerson(UserId id,
                                Set<String> fields,
                                org.apache.shindig.auth.SecurityToken token)
                         throws org.apache.shindig.protocol.ProtocolException
Specified by:
getPerson in interface PersonService
Throws:
org.apache.shindig.protocol.ProtocolException

setOpenSocialId

public void setOpenSocialId(OpenSocialValidator openSocialValidator)
Parameters:
openSocialValidator - the openSocialId to set

setErrorMessageMailer

public void setErrorMessageMailer(nl.surfnet.coin.shared.service.ErrorMessageMailer errorMessageMailer)

setGroupService

protected void setGroupService(GroupService groupService)
Parameters:
groupService - the groupService to set


Copyright © 2007-2012. All Rights Reserved.