microsoft.exchange.webservices.data
Class ItemChange

java.lang.Object
  extended by microsoft.exchange.webservices.data.Change
      extended by microsoft.exchange.webservices.data.ItemChange

public final class ItemChange
extends Change

Represents a change on an item as returned by a synchronization operation.


Constructor Summary
protected ItemChange()
          Initializes a new instance of ItemChange.
 
Method Summary
protected  ServiceId createId()
          Creates an ItemId instance.
 boolean getIsRead()
          * Gets the IsRead property for the item that the change applies to.
 Item getItem()
          * Gets the item the change applies to.
 ItemId getItemId()
          * Gets the Id of the item the change applies to.
protected  void setIsRead(boolean isRead)
          Sets the checks if is read.
 
Methods inherited from class microsoft.exchange.webservices.data.Change
getChangeType, getId, getServiceObject, setChangeType, setId, setServiceObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemChange

protected ItemChange()
Initializes a new instance of ItemChange.

Method Detail

createId

protected ServiceId createId()
Creates an ItemId instance.

Specified by:
createId in class Change
Returns:
A ItemId.

getItem

public Item getItem()
* Gets the item the change applies to. Item is null when ChangeType is equal to either ChangeType.Delete or ChangeType.ReadFlagChange. In those cases, use the ItemId property to retrieve the Id of the item that was deleted or whose IsRead property changed.

Returns:
the item

getIsRead

public boolean getIsRead()
* Gets the IsRead property for the item that the change applies to. IsRead is only valid when ChangeType is equal to ChangeType.ReadFlagChange.

Returns:
the checks if is read

setIsRead

protected void setIsRead(boolean isRead)
Sets the checks if is read.

Parameters:
isRead - the new checks if is read

getItemId

public ItemId getItemId()
                 throws ServiceLocalException
* Gets the Id of the item the change applies to.

Returns:
the item id
Throws:
ServiceLocalException - the service local exception