public interface PersonService
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_FILTER
Retrieves all friends.
|
static String |
HAS_APP_FILTER
Retrieves all friends with any data for this application.
|
static String |
IS_WITH_FRIENDS_FILTER
Will filter the people requested by checking if they are friends with the given idSpec.
|
static String |
TOP_FRIENDS_FILTER
Retrieves only the user's top friends.
|
static String |
TOP_FRIENDS_SORT
When used will sort people by the container's definition of top friends.
|
| Modifier and Type | Method and Description |
|---|---|
Future<RestfulCollection<Person>> |
getPeople(Set<UserId> userIds,
GroupId groupId,
CollectionOptions collectionOptions,
Set<String> fields,
SecurityToken token)
Returns a list of people that correspond to the passed in person ids.
|
Future<Person> |
getPerson(UserId id,
Set<String> fields,
SecurityToken token)
Returns a person that corresponds to the passed in person id.
|
static final String TOP_FRIENDS_SORT
static final String TOP_FRIENDS_FILTER
static final String HAS_APP_FILTER
static final String ALL_FILTER
static final String IS_WITH_FRIENDS_FILTER
Future<RestfulCollection<Person>> getPeople(Set<UserId> userIds, GroupId groupId, CollectionOptions collectionOptions, Set<String> fields, SecurityToken token) throws ProtocolException
userIds - A set of usersgroupId - The groupcollectionOptions - How to filter, sort and paginate the collection being fetchedfields - The profile details to fetch. Empty set implies alltoken - The gadget token @return a list of people.ProtocolExceptionFuture<Person> getPerson(UserId id, Set<String> fields, SecurityToken token) throws ProtocolException
id - The id of the person to fetch.fields - The fields to fetch.token - The gadget tokenProtocolExceptionCopyright © 2007-2012. All Rights Reserved.