public interface PersonManager
| Modifier and Type | Method and Description |
|---|---|
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
|
boolean savePerson(String userId, Person user) throws SocialDataException
userId - The userId of the person whose details to be storeduser - The person details to be storedSocialDataExceptionboolean updatePerson(String userId, Person user) throws SocialDataException
userId - The userId of the person whose details to be modifieduser - The person details to be modifiedSocialDataExceptionboolean removePerson(String userId) throws SocialDataException
userId - The userId of the person to be deletedSocialDataExceptionPerson getPerson(String userId) throws SocialDataException
userId - SocialDataExceptionPerson[] 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 allSocialDataExceptionPerson getPerson(String userId, String[] fields) throws SocialDataException
userId - The userId of the persons whose details to be fetchedfields - The fields to be fetchedSocialDataExceptionCopyright © 2015 WSO2. All Rights Reserved.