Class PostReply
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.service.ServiceObject
-
- microsoft.exchange.webservices.data.core.service.response.PostReply
-
public final class PostReply extends ServiceObject
Represents a reply to a post item.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageBodygetBody()Gets the body of the post reply.MessageBodygetBodyPrefix()Gets the body prefix that should be prepended to the original post item's body.ExchangeVersiongetMinimumRequiredServerVersion()Gets the minimum required server version.ServiceObjectSchemagetSchema()Internal method to return the schema associated with this type of object.StringgetSubject()Gets the subject of the post reply.protected PostIteminternalCreate(FolderId parentFolderId, MessageDisposition messageDisposition)Create a PostItem response.protected voidinternalDelete(DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode, AffectedTaskOccurrence affectedTaskOccurrences)Deletes the object.protected voidinternalLoad(PropertySet propertySet)Loads the specified set of property on the object.PostItemsave()Saves the post reply in the same folder as the original post item.PostItemsave(WellKnownFolderName destinationFolderName)Saves the post reply in a specified folder.PostItemsave(FolderId destinationFolderId)Saves the post reply in the same folder as the original post item.voidsetBody(MessageBody value)Sets the body.voidsetBodyPrefix(MessageBody value)Sets the body prefix.voidsetSubject(String value)Sets the subject.-
Methods inherited from class microsoft.exchange.webservices.data.core.service.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
-
-
-
-
Method Detail
-
getSchema
public ServiceObjectSchema getSchema()
Internal method to return the schema associated with this type of object.- Specified by:
getSchemain classServiceObject- Returns:
- The schema associated with this type of object.
-
getMinimumRequiredServerVersion
public ExchangeVersion getMinimumRequiredServerVersion()
Gets the minimum required server version.- Specified by:
getMinimumRequiredServerVersionin classServiceObject- Returns:
- Earliest Exchange version in which this service object type is supported.
-
internalCreate
protected PostItem internalCreate(FolderId parentFolderId, MessageDisposition messageDisposition) throws Exception
Create a PostItem response.- Parameters:
parentFolderId- the parent folder idmessageDisposition- the message disposition- Returns:
- Created PostItem.
- Throws:
Exception- the exception
-
internalLoad
protected void internalLoad(PropertySet propertySet) throws InvalidOperationException
Loads the specified set of property on the object.- Specified by:
internalLoadin classServiceObject- 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:
internalDeletein classServiceObject- Parameters:
deleteMode- the delete modesendCancellationsMode- the send cancellations modeaffectedTaskOccurrences- the affected task occurrences- Throws:
InvalidOperationException- the invalid operation exception
-
save
public PostItem save() throws 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:
Exception- the exception
-
save
public PostItem save(FolderId destinationFolderId) throws 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:
Exception- the exception
-
save
public PostItem save(WellKnownFolderName destinationFolderName) throws 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:
Exception- the exception
-
getSubject
public String getSubject() throws Exception
Gets the subject of the post reply.- Returns:
- the subject
- Throws:
Exception- the exception
-
setSubject
public void setSubject(String value) throws Exception
Sets the subject.- Parameters:
value- the new subject- Throws:
Exception- the exception
-
getBody
public MessageBody getBody() throws Exception
Gets the body of the post reply.- Returns:
- the body
- Throws:
Exception- the exception
-
setBody
public void setBody(MessageBody value) throws Exception
Sets the body.- Parameters:
value- the new body- Throws:
Exception- the exception
-
getBodyPrefix
public MessageBody getBodyPrefix() throws Exception
Gets the body prefix that should be prepended to the original post item's body.- Returns:
- the body prefix
- Throws:
Exception- the exception
-
setBodyPrefix
public void setBodyPrefix(MessageBody value) throws Exception
Sets the body prefix.- Parameters:
value- the new body prefix- Throws:
Exception- the exception
-
-