TMessage
- the generic typepublic abstract class ResponseObject<TMessage extends EmailMessage> extends ServiceObject
Modifier | Constructor and Description |
---|---|
protected |
ResponseObject(Item referenceItem)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
ServiceObjectSchema |
getSchema()
Internal method to return the schema associated with this type of object.
|
protected List<Item> |
internalCreate(FolderId destinationFolderId,
MessageDisposition messageDisposition)
Create the response object.
|
protected void |
internalDelete(DeleteMode deleteMode,
SendCancellationsMode sendCancellationsMode,
AffectedTaskOccurrence affectedTaskOccurrences)
Deletes the object.
|
protected void |
internalLoad(PropertySet propertySet)
Loads the specified set of property on the object.
|
TMessage |
save()
Saves the response in the Drafts folder.
|
TMessage |
save(FolderId destinationFolderId)
Saves the response in the specified folder.
|
TMessage |
save(WellKnownFolderName destinationFolderName)
Saves the response in the specified folder.
|
void |
send()
Sends this response without saving a copy.
|
void |
sendAndSaveCopy()
Sends this response and saves a copy in the Sent Items folder.
|
void |
sendAndSaveCopy(FolderId destinationFolderId)
Sends this response and saves a copy in the specified folder.
|
void |
sendAndSaveCopy(WellKnownFolderName destinationFolderName)
Sends this response and saves a copy in the specified folder.
|
addServiceObjectChangedEvent, changed, clearChangeLog, clearServiceObjectChangedEvent, getChangeXmlElementName, getDeleteFieldXmlElementName, getExtendedProperties, getId, getIdPropertyDefinition, getIsCustomDateTimeScopingRequired, getIsTimeZoneHeaderRequired, getLoadedPropertyDefinitions, getMinimumRequiredServerVersion, getObjectFromPropertyDefinition, getPropertyBag, getService, getSetFieldXmlElementName, getXmlElementName, getXmlElementNameOverride, isDirty, isNew, load, load, loadFromXml, loadFromXml, removeServiceObjectChangedEvent, schema, setService, throwIfThisIsNew, throwIfThisIsNotNew, tryGetExtendedProperty, tryGetProperty, tryGetProperty, validate, writeToXml, writeToXmlForUpdate
protected ResponseObject(Item referenceItem) throws Exception
referenceItem
- the reference itemException
- the exceptionpublic ServiceObjectSchema getSchema()
getSchema
in class ServiceObject
protected void internalLoad(PropertySet propertySet)
internalLoad
in class ServiceObject
propertySet
- the property setprotected void internalDelete(DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode, AffectedTaskOccurrence affectedTaskOccurrences)
internalDelete
in class ServiceObject
deleteMode
- the delete modesendCancellationsMode
- the send cancellations modeaffectedTaskOccurrences
- the affected task occurrencesprotected List<Item> internalCreate(FolderId destinationFolderId, MessageDisposition messageDisposition) throws Exception
destinationFolderId
- the destination folder idmessageDisposition
- the message dispositionException
- the exceptionpublic TMessage save(FolderId destinationFolderId) throws Exception
destinationFolderId
- the destination folder idException
- the exceptionpublic TMessage save(WellKnownFolderName destinationFolderName) throws Exception
destinationFolderName
- the destination folder nameException
- the exceptionpublic TMessage save() throws Exception
Exception
- the exceptionpublic void send() throws Exception
Exception
- the exceptionpublic void sendAndSaveCopy(FolderId destinationFolderId) throws Exception
destinationFolderId
- the destination folder idException
- the exceptionpublic void sendAndSaveCopy(WellKnownFolderName destinationFolderName) throws Exception
destinationFolderName
- the destination folder nameException
- the exceptionpublic void sendAndSaveCopy() throws Exception
Exception
- the exceptionCopyright © 2012–2015 Microsoft. All rights reserved.