microsoft.exchange.webservices.data
Class PostReply

java.lang.Object
  extended by microsoft.exchange.webservices.data.ServiceObject
      extended by microsoft.exchange.webservices.data.PostReply

public final class PostReply
extends ServiceObject

Represents a reply to a post item.


Constructor Summary
protected PostReply(Item referenceItem)
          Initializes a new instance of the class.
 
Method Summary
 MessageBody getBody()
          Gets the body of the post reply.
 MessageBody getBodyPrefix()
          Gets the body prefix that should be prepended to the original post item's body.
protected  ExchangeVersion getMinimumRequiredServerVersion()
          Gets the minimum required server version.
 ServiceObjectSchema getSchema()
          Internal method to return the schema associated with this type of object.
 java.lang.String getSubject()
          Gets the subject of the post reply.
protected  PostItem internalCreate(FolderId parentFolderId, MessageDisposition messageDisposition)
          Create a PostItem response.
protected  void internalDelete(DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode, AffectedTaskOccurrence affectedTaskOccurrences)
          Deletes the object.
protected  void internalLoad(PropertySet propertySet)
          Loads the specified set of properties on the object.
 PostItem save()
          Saves the post reply in the same folder as the original post item.
 PostItem save(FolderId destinationFolderId)
          Saves the post reply in the same folder as the original post item.
 PostItem save(WellKnownFolderName destinationFolderName)
          Saves the post reply in a specified folder.
 void setBody(MessageBody value)
          Sets the body.
 void setBodyPrefix(MessageBody value)
          Sets the body prefix.
 void setSubject(java.lang.String value)
          Sets the subject.
 
Methods inherited from class microsoft.exchange.webservices.data.ServiceObject
addServiceObjectChangedEvent, changed, clearChangeLog, clearServiceObjectChangedEvent, getChangeXmlElementName, getDeleteFieldXmlElementName, getExtendedProperties, getId, getIdPropertyDefinition, getIsCustomDateTimeScopingRequired, getIsTimeZoneHeaderRequired, getLoadedPropertyDefinitions, getObjectFromPropertyDefinition, getPropertyBag, getService, getSetFieldXmlElementName, getXmlElementName, getXmlElementNameOverride, isDirty, isNew, load, load, loadFromXml, loadFromXml, removeServiceObjectChangedEvent, schema, setService, throwIfThisIsNew, throwIfThisIsNotNew, tryGetExtendedProperty, tryGetProperty, tryGetProperty, validate, writeToXml, writeToXmlForUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostReply

protected PostReply(Item referenceItem)
             throws java.lang.Exception
Initializes a new instance of the class.

Parameters:
referenceItem - the reference item
Throws:
java.lang.Exception - the exception
Method Detail

getSchema

public ServiceObjectSchema getSchema()
Internal method to return the schema associated with this type of object.

Specified by:
getSchema in class ServiceObject
Returns:
The schema associated with this type of object.

getMinimumRequiredServerVersion

protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the minimum required server version.

Specified by:
getMinimumRequiredServerVersion in class ServiceObject
Returns:
Earliest Exchange version in which this service object type is supported.

internalCreate

protected PostItem internalCreate(FolderId parentFolderId,
                                  MessageDisposition messageDisposition)
                           throws java.lang.Exception
Create a PostItem response.

Parameters:
parentFolderId - the parent folder id
messageDisposition - the message disposition
Returns:
Created PostItem.
Throws:
java.lang.Exception - the exception

internalLoad

protected void internalLoad(PropertySet propertySet)
                     throws InvalidOperationException
Loads the specified set of properties on the object.

Specified by:
internalLoad in class ServiceObject
Parameters:
propertySet - the property set
Throws:
InvalidOperationException - the invalid operation exception

internalDelete

protected void internalDelete(DeleteMode deleteMode,
                              SendCancellationsMode sendCancellationsMode,
                              AffectedTaskOccurrence affectedTaskOccurrences)
                       throws InvalidOperationException
Deletes the object.

Specified by:
internalDelete in class ServiceObject
Parameters:
deleteMode - the delete mode
sendCancellationsMode - the send cancellations mode
affectedTaskOccurrences - the affected task occurrences
Throws:
InvalidOperationException - the invalid operation exception

save

public PostItem save()
              throws java.lang.Exception
Saves the post reply in the same folder as the original post item. Calling this method results in a call to EWS.

Returns:
A PostItem representing the posted reply
Throws:
java.lang.Exception - the exception

save

public PostItem save(FolderId destinationFolderId)
              throws java.lang.Exception
Saves the post reply in the same folder as the original post item. Calling this method results in a call to EWS.

Parameters:
destinationFolderId - the destination folder id
Returns:
A PostItem representing the posted reply
Throws:
java.lang.Exception - the exception

save

public PostItem save(WellKnownFolderName destinationFolderName)
              throws java.lang.Exception
Saves the post reply in a specified folder. Calling this method results in a call to EWS.

Parameters:
destinationFolderName - the destination folder name
Returns:
A PostItem representing the posted reply.
Throws:
java.lang.Exception - the exception

getSubject

public java.lang.String getSubject()
                            throws java.lang.Exception
Gets the subject of the post reply.

Returns:
the subject
Throws:
java.lang.Exception - the exception

setSubject

public void setSubject(java.lang.String value)
                throws java.lang.Exception
Sets the subject.

Parameters:
value - the new subject
Throws:
java.lang.Exception - the exception

getBody

public MessageBody getBody()
                    throws java.lang.Exception
Gets the body of the post reply.

Returns:
the body
Throws:
java.lang.Exception - the exception

setBody

public void setBody(MessageBody value)
             throws java.lang.Exception
Sets the body.

Parameters:
value - the new body
Throws:
java.lang.Exception - the exception

getBodyPrefix

public MessageBody getBodyPrefix()
                          throws java.lang.Exception
Gets the body prefix that should be prepended to the original post item's body.

Returns:
the body prefix
Throws:
java.lang.Exception - the exception

setBodyPrefix

public void setBodyPrefix(MessageBody value)
                   throws java.lang.Exception
Sets the body prefix.

Parameters:
value - the new body prefix
Throws:
java.lang.Exception - the exception