Interface PersonManager
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
Modifier and TypeMethodDescriptionPerson[]getPeople(String[] userIds, String groupId, FilterOptions filterOptions, String[] fields) Returns an array of persons that correspond to the passed in useIdsFetches the person details for the given userIdReturns a person that corresponds to the passed in userIdsbooleanremovePerson(String userId) Removes the person from the storagebooleansavePerson(String userId, Person user) Persists the details of the personbooleanupdatePerson(String userId, Person user) Updates/Modify person details
-
Method Details
-
savePerson
Persists the details of the person- Parameters:
userId- The userId of the person whose details to be storeduser- The person details to be stored- Returns:
- Throws:
SocialDataException
-
updatePerson
Updates/Modify person details- Parameters:
userId- The userId of the person whose details to be modifieduser- The person details to be modified- Returns:
- Throws:
SocialDataException
-
removePerson
Removes the person from the storage- Parameters:
userId- The userId of the person to be deleted- Returns:
- Throws:
SocialDataException
-
getPerson
Fetches the person details for the given userId- Parameters:
userId-- Returns:
- A Person object for the given userId
- Throws:
SocialDataException
-
getPeople
Person[] getPeople(String[] userIds, String groupId, FilterOptions filterOptions, String[] fields) throws SocialDataException Returns an array of persons that correspond to the passed in useIds- Parameters:
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- Returns:
- An array of Person objects correspond tot the passed in userIds
- Throws:
SocialDataException
-
getPerson
Returns a person that corresponds to the passed in userIds- Parameters:
userId- The userId of the persons whose details to be fetchedfields- The fields to be fetched- Returns:
- A Person object for passes in details
- Throws:
SocialDataException
-