|
||||||||||
| 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 java.lang.String |
ALL_FILTER
Retrieves all friends. |
static java.lang.String |
HAS_APP_FILTER
Retrieves all friends with any data for this application. |
static java.lang.String |
IS_WITH_FRIENDS_FILTER
Will filter the people requested by checking if they are friends with the given idSpec. |
static java.lang.String |
TOP_FRIENDS_FILTER
Retrieves only the user's top friends. |
static java.lang.String |
TOP_FRIENDS_SORT
When used will sort people by the container's definition of top friends. |
| Method Summary | |
|---|---|
java.util.concurrent.Future<RestfulCollection<Person>> |
getPeople(java.util.Set<UserId> userIds,
GroupId groupId,
CollectionOptions collectionOptions,
java.util.Set<java.lang.String> fields,
SecurityToken token)
Returns a list of people that correspond to the passed in person ids. |
java.util.concurrent.Future<Person> |
getPerson(UserId id,
java.util.Set<java.lang.String> fields,
SecurityToken token)
Returns a person that corresponds to the passed in person id. |
java.util.concurrent.Future<Person> |
updatePerson(UserId id,
Person person,
SecurityToken token)
Updates person that corresponds to the passed in person id and updates him |
| Field Detail |
|---|
static final java.lang.String TOP_FRIENDS_SORT
static final java.lang.String TOP_FRIENDS_FILTER
static final java.lang.String HAS_APP_FILTER
static final java.lang.String ALL_FILTER
static final java.lang.String IS_WITH_FRIENDS_FILTER
| Method Detail |
|---|
java.util.concurrent.Future<RestfulCollection<Person>> getPeople(java.util.Set<UserId> userIds,
GroupId groupId,
CollectionOptions collectionOptions,
java.util.Set<java.lang.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
java.util.concurrent.Future<Person> getPerson(UserId id,
java.util.Set<java.lang.String> fields,
SecurityToken token)
throws ProtocolException
id - The id of the person to fetch.fields - The fields to fetch.token - The gadget token
ProtocolException
java.util.concurrent.Future<Person> updatePerson(UserId id,
Person person,
SecurityToken token)
throws ProtocolException
id - The id of the person to fetch.request - The request objectfields - 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 | |||||||||