|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersonManager
This interface handles retrieval and storage of Person details
Implement this interface to according to the persistence storage of social data
Method Summary | |
---|---|
Person[] |
getPeople(String[] userIds,
String groupId,
FilterOptions filterOptions,
String[] fields)
Returns an array of persons that correspond to the passed in useIds |
Person |
getPerson(String userId)
Fetches the person details for the given userId |
Person |
getPerson(String userId,
String[] fields)
Returns a person that corresponds to the passed in userIds |
boolean |
removePerson(String userId)
Removes the person from the storage |
boolean |
savePerson(String userId,
Person user)
Persists the details of the person |
boolean |
updatePerson(String userId,
Person user)
Updates/Modify person details |
Method Detail |
---|
boolean savePerson(String userId, Person user) throws SocialDataException
userId
- The userId of the person whose details to be storeduser
- The person details to be stored
SocialDataException
boolean updatePerson(String userId, Person user) throws SocialDataException
userId
- The userId of the person whose details to be modifieduser
- The person details to be modified
SocialDataException
boolean removePerson(String userId) throws SocialDataException
userId
- The userId of the person to be deleted
SocialDataException
Person getPerson(String userId) throws SocialDataException
userId
-
SocialDataException
Person[] getPeople(String[] userIds, String groupId, FilterOptions filterOptions, String[] fields) throws SocialDataException
userIds
- Array of userIdsgroupId
- The groupfilterOptions
- How to filter, sort and paginate the collection being fetchedfields
- The profile details to fetch. Empty set implies all
SocialDataException
Person getPerson(String userId, String[] fields) throws SocialDataException
userId
- The userId of the persons whose details to be fetchedfields
- The fields to be fetched
SocialDataException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |