Blue Mind
Release 1.0

net.bluemind.core.api.contact
Class ContactChanges

java.lang.Object
  extended by net.bluemind.core.api.contact.ContactChanges
All Implemented Interfaces:
Serializable

public class ContactChanges
extends Object
implements Serializable

Instances of this class are obtained by calling IAddressBook#doSync(net.bluemind.core.api.AccessToken, ClientContactChanges, Date) It contains the changes (creations, updates and deletes) that the caller must apply on its version of the contacts. It provides access via getChangeResults() to the results of the operations submitted through the doSync call. ContactChanges also returns the point in time that must be used for the next doSync call.

See Also:
Serialized Form

Constructor Summary
ContactChanges()
          Creates a new contact changes.
 
Method Summary
 List<ChangeResult> getChangeResults()
           
 Date getLastSync()
          Returns the point in time to use for the next IAddressBook#doSync(net.bluemind.core.api.AccessToken, ClientContactChanges, Date) call.
 Set<DeletedContact> getRemoved()
           
 List<Contact> getUpdated()
           
 void setChangeResults(List<ChangeResult> changeResults)
           
 void setLastSync(Date lastSync)
          Sets the point in time for the next doSync call.
 void setRemoved(Set<DeletedContact> removed)
           
 void setUpdated(List<Contact> updated)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactChanges

public ContactChanges()
Creates a new contact changes. The object is not usable directly and must be filled by calling setLastSync(Date), setChangeResults(List), setUpdated(List), setRemoved(Set) and setChangeResults(List).

Method Detail

getLastSync

public Date getLastSync()
Returns the point in time to use for the next IAddressBook#doSync(net.bluemind.core.api.AccessToken, ClientContactChanges, Date) call.

Returns:

setLastSync

public void setLastSync(Date lastSync)
Sets the point in time for the next doSync call. This is only called by doSync implementation.

Parameters:
lastSync -

getUpdated

public List<Contact> getUpdated()

setUpdated

public void setUpdated(List<Contact> updated)

getRemoved

public Set<DeletedContact> getRemoved()

setRemoved

public void setRemoved(Set<DeletedContact> removed)

getChangeResults

public List<ChangeResult> getChangeResults()

setChangeResults

public void setChangeResults(List<ChangeResult> changeResults)

Blue Mind
Release 1.0