Class ItemChange
- java.lang.Object
-
- microsoft.exchange.webservices.data.sync.Change
-
- microsoft.exchange.webservices.data.sync.ItemChange
-
public final class ItemChange extends Change
Represents a change on an item as returned by a synchronization operation.
-
-
Constructor Summary
Constructors Constructor Description ItemChange()Initializes a new instance of ItemChange.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceIdcreateId()Creates an ItemId instance.booleangetIsRead()Gets the IsRead property for the item that the change applies to.ItemgetItem()Gets the item the change applies to.ItemIdgetItemId()Gets the Id of the item the change applies to.voidsetIsRead(boolean isRead)Sets the checks if is read.-
Methods inherited from class microsoft.exchange.webservices.data.sync.Change
getChangeType, getId, getServiceObject, setChangeType, setId, setServiceObject
-
-
-
-
Constructor Detail
-
ItemChange
public ItemChange()
Initializes a new instance of ItemChange.
-
-
Method Detail
-
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
public 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
-
-