com.vodafone360.people.service.io.api
Class Contacts

java.lang.Object
  extended by com.vodafone360.people.service.io.api.Contacts

public class Contacts
extends java.lang.Object

Implementation of People server APIs associated with handling of Contacts


Field Summary
private static java.lang.String FUNCTION_BULK_UPDATE_CONTACTS
           
private static java.lang.String FUNCTION_DELETE_CONTACT_DETAILS
           
private static java.lang.String FUNCTION_DELETE_CONTACTS
           
private static java.lang.String FUNCTION_GET_CONTACT_CHANGES
           
private static java.lang.String FUNCTION_GET_ME
           
private static java.lang.String FUNCTION_GET_MY_CHANGES
           
private static java.lang.String FUNCTION_SET_ME
           
 
Constructor Summary
Contacts()
           
 
Method Summary
static int bulkUpdateContacts(BaseEngine engine, java.util.List<Contact> contactlist)
          Implementation of contacts/bulkupdatecontacts API.
static int deleteContactDetails(BaseEngine engine, java.lang.Long contactid, java.util.List<ContactDetail> detaillist)
          Implementation of contacts/deletecontactdetails API.
static int deleteContacts(BaseEngine engine, java.util.List<java.lang.Long> contactidlist)
          Implementation of contacts/deletecontacts API.
static int getContactsChanges(BaseEngine engine, java.lang.Integer pagenumber, java.lang.Integer maxpagesize, java.lang.Long fromrevision, java.lang.Long torevision, boolean batchRequest)
          Implementation of contacts/getcontactschanges API.
static int getMe(BaseEngine engine)
          Implementation of contacts/getme API.
static int getMyChanges(BaseEngine engine, java.lang.Long fromrevision)
          Implementation of contacts/getmychanges.
static int setMe(BaseEngine engine, java.util.List<ContactDetail> detaillist, java.lang.String aboutme, java.lang.Integer gender)
          Implementation of contacts/setme API.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FUNCTION_BULK_UPDATE_CONTACTS

private static final java.lang.String FUNCTION_BULK_UPDATE_CONTACTS
See Also:
Constant Field Values

FUNCTION_DELETE_CONTACT_DETAILS

private static final java.lang.String FUNCTION_DELETE_CONTACT_DETAILS
See Also:
Constant Field Values

FUNCTION_DELETE_CONTACTS

private static final java.lang.String FUNCTION_DELETE_CONTACTS
See Also:
Constant Field Values

FUNCTION_GET_CONTACT_CHANGES

private static final java.lang.String FUNCTION_GET_CONTACT_CHANGES
See Also:
Constant Field Values

FUNCTION_GET_ME

private static final java.lang.String FUNCTION_GET_ME
See Also:
Constant Field Values

FUNCTION_GET_MY_CHANGES

private static final java.lang.String FUNCTION_GET_MY_CHANGES
See Also:
Constant Field Values

FUNCTION_SET_ME

private static final java.lang.String FUNCTION_SET_ME
See Also:
Constant Field Values
Constructor Detail

Contacts

public Contacts()
Method Detail

deleteContactDetails

public static int deleteContactDetails(BaseEngine engine,
                                       java.lang.Long contactid,
                                       java.util.List<ContactDetail> detaillist)
Implementation of contacts/deletecontactdetails API. Parameters are; [auth], Long contactid, List detaillist

Parameters:
engine - Handle to ContactSync engine
contactid -
detaillist -
Returns:
request id generated for this request.

deleteContacts

public static int deleteContacts(BaseEngine engine,
                                 java.util.List<java.lang.Long> contactidlist)
Implementation of contacts/deletecontacts API. Parameters are; [auth], List contactidlist

Parameters:
engine - Handle to ContactSync engine
contactidlist - List of contact ids to be deleted.
Returns:
request id generated for this request.

bulkUpdateContacts

public static int bulkUpdateContacts(BaseEngine engine,
                                     java.util.List<Contact> contactlist)
Implementation of contacts/bulkupdatecontacts API. Parameters are; [auth], List contactlist

Parameters:
engine - Handle to ContactSync engine
contactlist - List containing the contacts to be updated on server.
Returns:
request id generated for this request.

getContactsChanges

public static int getContactsChanges(BaseEngine engine,
                                     java.lang.Integer pagenumber,
                                     java.lang.Integer maxpagesize,
                                     java.lang.Long fromrevision,
                                     java.lang.Long torevision,
                                     boolean batchRequest)
Implementation of contacts/getcontactschanges API. Parameters are; [auth], Integer pagenumber, Integer maxpagesize, Long fromrevision, Long torevision

Parameters:
engine - Handle to ContactSync engine
pagenumber - Page number to request contact changes for.
maxpagesize - Maximum number of contacts retrieved per page.
fromrevision - Starting revision number.
torevision - Final revision number.
batchRequest - If true, this API call will not send the request until the connection thread is kicked. This allows batching of requests.
Returns:
request id generated for this request.

getMe

public static int getMe(BaseEngine engine)
Implementation of contacts/getme API. Parameters are; [auth]

Parameters:
engine - Handle to ContactSync engine
Returns:
Request ID generated for this request.

getMyChanges

public static int getMyChanges(BaseEngine engine,
                               java.lang.Long fromrevision)
Implementation of contacts/getmychanges. Parameters are; [auth], Long fromrevision

Parameters:
engine - Handle to ContactSync engine
fromrevision - Start revision.
Returns:
request id generated for this request.

setMe

public static int setMe(BaseEngine engine,
                        java.util.List<ContactDetail> detaillist,
                        java.lang.String aboutme,
                        java.lang.Integer gender)
Implementation of contacts/setme API. Parameters are; [auth], List detaillist, String aboutme [opt]

Parameters:
engine - Handle to ContactSync engine
detaillist - List of ContactDetails for the Me profile.
aboutme - AboutMe string.
gender - - gender.
Returns:
request id generated for this request.


JavaDoc