Class NotificationEvent
- java.lang.Object
-
- microsoft.exchange.webservices.data.notification.NotificationEvent
-
- Direct Known Subclasses:
FolderEvent,ItemEvent
public abstract class NotificationEvent extends Object
Represents an event as exposed by push and pull notification.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNotificationEvent(EventType eventType, Date timestamp)Initializes a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventTypegetEventType()gets the eventType.FolderIdgetOldParentFolderId()gets the oldParentFolderId.FolderIdgetParentFolderId()gets the parentFolderId.DategetTimestamp()gets the timestamp.protected voidinternalLoadFromXml(EwsServiceXmlReader reader)Load from XML.protected voidloadFromXml(EwsServiceXmlReader reader, String xmlElementName)Loads this NotificationEvent from XML.protected voidsetOldParentFolderId(FolderId oldParentFolderId)Sets the oldParentFolderId.protected voidsetParentFolderId(FolderId parentFolderId)Sets the parentFolderId.
-
-
-
Constructor Detail
-
NotificationEvent
protected NotificationEvent(EventType eventType, Date timestamp)
Initializes a new instance.- Parameters:
eventType- the event typetimestamp- the timestamp
-
-
Method Detail
-
internalLoadFromXml
protected void internalLoadFromXml(EwsServiceXmlReader reader) throws Exception
Load from XML.- Parameters:
reader- the reader- Throws:
Exception- the exception
-
loadFromXml
protected void loadFromXml(EwsServiceXmlReader reader, String xmlElementName) throws Exception
Loads this NotificationEvent from XML.- Parameters:
reader- the readerxmlElementName- the xml element name- Throws:
Exception- the exception
-
getEventType
public EventType getEventType()
gets the eventType.- Returns:
- the eventType.
-
getTimestamp
public 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
-
-