microsoft.exchange.webservices.data
Class ItemEvent

java.lang.Object
  extended by microsoft.exchange.webservices.data.NotificationEvent
      extended by microsoft.exchange.webservices.data.ItemEvent

public final class ItemEvent
extends NotificationEvent

Represents an event that applies to an item.


Constructor Summary
protected ItemEvent(EventType eventType, java.util.Date timestamp)
          Initializes a new instance.
 
Method Summary
 ItemId getItemId()
          Gets the Id of the item this event applies to.
 ItemId getOldItemId()
          Gets the Id of the item that was moved or copied.
protected  void internalLoadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Load from XML.
 
Methods inherited from class microsoft.exchange.webservices.data.NotificationEvent
getEventType, getOldParentFolderId, getParentFolderId, getTimestamp, loadFromXml, setOldParentFolderId, setParentFolderId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemEvent

protected ItemEvent(EventType eventType,
                    java.util.Date timestamp)
Initializes a new instance.

Parameters:
eventType - the event type
timestamp - the timestamp
Method Detail

internalLoadFromXml

protected void internalLoadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                            throws java.lang.Exception
Load from XML.

Overrides:
internalLoadFromXml in class NotificationEvent
Parameters:
reader - the reader
Throws:
java.lang.Exception - the exception

getItemId

public ItemId getItemId()
Gets the Id of the item this event applies to.

Returns:
itemId

getOldItemId

public ItemId getOldItemId()
Gets the Id of the item that was moved or copied. OldItemId is only meaningful when EventType is equal to either EventType.Moved or EventType.Copied. For all other event types, OldItemId is null.

Returns:
the old item id