microsoft.exchange.webservices.data
Class NotificationEvent

java.lang.Object
  extended by microsoft.exchange.webservices.data.NotificationEvent
Direct Known Subclasses:
FolderEvent, ItemEvent

public abstract class NotificationEvent
extends java.lang.Object

Represents an event as exposed by push and pull notifications.


Constructor Summary
protected NotificationEvent(EventType eventType, java.util.Date timestamp)
          Initializes a new instance.
 
Method Summary
 EventType getEventType()
          gets the eventType.
 FolderId getOldParentFolderId()
          gets the oldParentFolderId.
 FolderId getParentFolderId()
          gets the parentFolderId.
 java.util.Date getTimestamp()
          gets the timestamp.
protected  void internalLoadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Load from XML.
protected  void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader, java.lang.String xmlElementName)
          Loads this NotificationEvent from XML.
protected  void setOldParentFolderId(FolderId oldParentFolderId)
          Sets the oldParentFolderId.
protected  void setParentFolderId(FolderId parentFolderId)
          Sets the parentFolderId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationEvent

protected NotificationEvent(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 ServiceXmlDeserializationException,
                                   javax.xml.stream.XMLStreamException,
                                   java.lang.InstantiationException,
                                   java.lang.IllegalAccessException,
                                   java.lang.Exception
Load from XML.

Parameters:
reader - the reader
Throws:
ServiceXmlDeserializationException - the service xml deserialization exception
javax.xml.stream.XMLStreamException - the xML stream exception
java.lang.InstantiationException - the instantiation exception
java.lang.IllegalAccessException - the illegal access exception
java.lang.Exception - the exception

loadFromXml

protected void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader,
                           java.lang.String xmlElementName)
                    throws java.lang.Exception
Loads this NotificationEvent from XML.

Parameters:
reader - the reader
xmlElementName - the xml element name
Throws:
java.lang.Exception - the exception

getEventType

public EventType getEventType()
gets the eventType.

Returns:
the eventType.

getTimestamp

public java.util.Date getTimestamp()
gets the timestamp.

Returns:
the timestamp.

getParentFolderId

public FolderId getParentFolderId()
gets the parentFolderId.

Returns:
the parentFolderId.

setParentFolderId

protected void setParentFolderId(FolderId parentFolderId)
Sets the parentFolderId.

Parameters:
parentFolderId - the new parent folder id

getOldParentFolderId

public FolderId getOldParentFolderId()
gets the oldParentFolderId.

Returns:
the oldParentFolderId.

setOldParentFolderId

protected void setOldParentFolderId(FolderId oldParentFolderId)
Sets the oldParentFolderId.

Parameters:
oldParentFolderId - the new old parent folder id