public class ContactAPI extends BaseAPI
| Constructor and Description |
|---|
ContactAPI(ResourceFactory resourceFactory) |
| Modifier and Type | Method and Description |
|---|---|
Profile |
getContact(int userId)
Returns all the contact details about the user with the given id.
|
<T,R> List<T> |
getContactField(int userId,
ProfileField<T,R> field)
Returns the value of a contact with the specific field
|
<T,F,R> List<T> |
getContacts(ProfileField<F,R> key,
F value,
Integer limit,
Integer offset,
ProfileType<T> type,
ContactOrder order)
Used to get a list of contacts for the user.
|
ContactTotal |
getContactTotal()
Returns the total number of contacts by organization.
|
<T,F,R> List<T> |
getOrganizationContacts(int organizationId,
ProfileField<F,R> key,
F value,
Integer limit,
Integer offset,
ProfileType<T> type,
ContactOrder order)
Returns all the profiles of the users contacts on the given organization
|
<T,F,R> List<T> |
getSpaceContacts(int spaceId,
ProfileField<F,R> key,
F value,
Integer limit,
Integer offset,
ProfileType<T> type,
ContactOrder order)
Returns all the profiles of the users contacts on the given space
|
getResourceFactorypublic ContactAPI(ResourceFactory resourceFactory)
public Profile getContact(int userId)
userId - The id of the userpublic <T,R> List<T> getContactField(int userId, ProfileField<T,R> field)
userId - The id of the userfield - The field for which data should be returnedpublic ContactTotal getContactTotal()
public <T,F,R> List<T> getContacts(ProfileField<F,R> key, F value, Integer limit, Integer offset, ProfileType<T> type, ContactOrder order)
key - The profile field if the contacts should be filteredvalue - The value for the field if the contacts should be filteredlimit - The maximum number of contacts to returnoffset - The offset into the list of contactstype - The format in which the contacts should be returnedorder - How the contacts should be orderedpublic <T,F,R> List<T> getOrganizationContacts(int organizationId, ProfileField<F,R> key, F value, Integer limit, Integer offset, ProfileType<T> type, ContactOrder order)
organizationId - The id of the organization the contacts should be returned
fromkey - The profile field if the contacts should be filteredvalue - The value for the field if the contacts should be filteredlimit - The maximum number of contacts to returnoffset - The offset into the list of contactstype - The format in which the contacts should be returnedorder - How the contacts should be orderedpublic <T,F,R> List<T> getSpaceContacts(int spaceId, ProfileField<F,R> key, F value, Integer limit, Integer offset, ProfileType<T> type, ContactOrder order)
spaceId - The id of the space the contacts should be returned fromkey - The profile field if the contacts should be filteredvalue - The value for the field if the contacts should be filteredlimit - The maximum number of contacts to returnoffset - The offset into the list of contactstype - The format in which the contacts should be returnedorder - How the contacts should be orderedCopyright © 2014. All Rights Reserved.