org.exoplatform.social.opensocial.service
Class ExoPeopleService

java.lang.Object
  extended by org.exoplatform.social.opensocial.service.ExoService
      extended by org.exoplatform.social.opensocial.service.ExoPeopleService
All Implemented Interfaces:
org.apache.shindig.social.opensocial.spi.AppDataService, org.apache.shindig.social.opensocial.spi.PersonService

public class ExoPeopleService
extends ExoService
implements org.apache.shindig.social.opensocial.spi.PersonService, org.apache.shindig.social.opensocial.spi.AppDataService

The Class ExoPeopleService.


Field Summary
 
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
ExoPeopleService(com.google.inject.Injector injector)
          Instantiates a new exo people service.
 
Method Summary
 Future<Void> deletePersonData(org.apache.shindig.social.opensocial.spi.UserId user, org.apache.shindig.social.opensocial.spi.GroupId groupId, String appId, Set<String> fields, org.apache.shindig.auth.SecurityToken token)
          
 Future<org.apache.shindig.protocol.RestfulCollection<org.apache.shindig.social.opensocial.model.Person>> getPeople(Set<org.apache.shindig.social.opensocial.spi.UserId> userIds, org.apache.shindig.social.opensocial.spi.GroupId groupId, org.apache.shindig.social.opensocial.spi.CollectionOptions collectionOptions, Set<String> fields, org.apache.shindig.auth.SecurityToken token)
          
 Future<org.apache.shindig.social.opensocial.model.Person> getPerson(org.apache.shindig.social.opensocial.spi.UserId id, Set<String> fields, org.apache.shindig.auth.SecurityToken token)
          
 Future<org.apache.shindig.protocol.DataCollection> getPersonData(Set<org.apache.shindig.social.opensocial.spi.UserId> userIds, org.apache.shindig.social.opensocial.spi.GroupId groupId, String appId, Set<String> fields, org.apache.shindig.auth.SecurityToken token)
          
 Future<Void> updatePersonData(org.apache.shindig.social.opensocial.spi.UserId user, org.apache.shindig.social.opensocial.spi.GroupId groupId, String appId, Set<String> fields, Map<String,String> values, org.apache.shindig.auth.SecurityToken token)
          
 
Methods inherited from class org.exoplatform.social.opensocial.service.ExoService
getFriendsList, getHost, getIdentity, getIdentity, getIdSet, getIdSet, getPortalContainer, getPortalOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExoPeopleService

@Inject
public ExoPeopleService(com.google.inject.Injector injector)
Instantiates a new exo people service.

Parameters:
injector - the injector
Method Detail

getPeople

public Future<org.apache.shindig.protocol.RestfulCollection<org.apache.shindig.social.opensocial.model.Person>> getPeople(Set<org.apache.shindig.social.opensocial.spi.UserId> userIds,
                                                                                                                          org.apache.shindig.social.opensocial.spi.GroupId groupId,
                                                                                                                          org.apache.shindig.social.opensocial.spi.CollectionOptions collectionOptions,
                                                                                                                          Set<String> fields,
                                                                                                                          org.apache.shindig.auth.SecurityToken token)
                                                                                                                   throws org.apache.shindig.protocol.ProtocolException

Specified by:
getPeople in interface org.apache.shindig.social.opensocial.spi.PersonService
Throws:
org.apache.shindig.protocol.ProtocolException

getPerson

public Future<org.apache.shindig.social.opensocial.model.Person> getPerson(org.apache.shindig.social.opensocial.spi.UserId id,
                                                                           Set<String> fields,
                                                                           org.apache.shindig.auth.SecurityToken token)
                                                                    throws org.apache.shindig.protocol.ProtocolException

Specified by:
getPerson in interface org.apache.shindig.social.opensocial.spi.PersonService
Throws:
org.apache.shindig.protocol.ProtocolException

getPersonData

public Future<org.apache.shindig.protocol.DataCollection> getPersonData(Set<org.apache.shindig.social.opensocial.spi.UserId> userIds,
                                                                        org.apache.shindig.social.opensocial.spi.GroupId groupId,
                                                                        String appId,
                                                                        Set<String> fields,
                                                                        org.apache.shindig.auth.SecurityToken token)
                                                                 throws org.apache.shindig.protocol.ProtocolException

Specified by:
getPersonData in interface org.apache.shindig.social.opensocial.spi.AppDataService
Throws:
org.apache.shindig.protocol.ProtocolException

deletePersonData

public Future<Void> deletePersonData(org.apache.shindig.social.opensocial.spi.UserId user,
                                     org.apache.shindig.social.opensocial.spi.GroupId groupId,
                                     String appId,
                                     Set<String> fields,
                                     org.apache.shindig.auth.SecurityToken token)
                              throws org.apache.shindig.protocol.ProtocolException

Specified by:
deletePersonData in interface org.apache.shindig.social.opensocial.spi.AppDataService
Throws:
org.apache.shindig.protocol.ProtocolException

updatePersonData

public Future<Void> updatePersonData(org.apache.shindig.social.opensocial.spi.UserId user,
                                     org.apache.shindig.social.opensocial.spi.GroupId groupId,
                                     String appId,
                                     Set<String> fields,
                                     Map<String,String> values,
                                     org.apache.shindig.auth.SecurityToken token)
                              throws org.apache.shindig.protocol.ProtocolException

Specified by:
updatePersonData in interface org.apache.shindig.social.opensocial.spi.AppDataService
Throws:
org.apache.shindig.protocol.ProtocolException


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.