|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersonService
Interface that defines how shindig gathers people information.
| Field Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
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
| Method Detail |
|---|
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.
ProtocolException
Future<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 token
ProtocolException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||