public abstract class MapiMessageItemBase extends MapiPropertyContainer implements IMapiMessageItem, com.aspose.ms.System.IDisposable
Represents the base class for all MapiMessageItem classes and keeps common collections of mapi properties, attachments, recipients.
Modifier and Type | Field and Description |
---|---|
protected MapiAttachmentCollection |
attachments
The collection of attachments.
|
protected MapiNamedPropertyMappingStorage |
namedPropertyMappingStorage
The named property mapping storage.
|
protected MapiMessagePropertyStream |
propertyStream
The property stream.
|
protected MapiRecipientCollection |
recipients
The collection of recipients.
|
protected MapiPropertyCollection |
subStorages
The MapiProperty collection.
|
Modifier | Constructor and Description |
---|---|
protected |
MapiMessageItemBase()
Initializes a new instance of the
MapiMessageItemBase class. |
protected |
MapiMessageItemBase(MapiPropertyCollection properties)
Initializes a new instance of the
MapiMessageItemBase class. |
Modifier and Type | Method and Description |
---|---|
protected void |
checkIsDisposed()
Checks if the object is disposed and raised exception in this case.
|
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
MapiAttachmentCollection |
getAttachments()
Gets the attachments in the message.
|
String |
getBilling()
Contains the billing information associated with an item.
|
String |
getBody()
Gets the message text.
|
String |
getBodyHtml()
Gets the
BodyRtf of the message converted to HTML, if present, otherwise an empty string. |
String |
getBodyRtf()
Gets or sets the RTF formatted message text.
|
int |
getBodyType()
Gets the type of the body.
|
String[] |
getCategories()
Contains keywords or categories for the message object.
|
String[] |
getCompanies()
Contains the names of the companies that are associated with an item.
|
String |
getMessageClass()
Gets a case-sensitive string that identifies the sender-defined message class, such as IPM.Note.
|
String |
getMileage()
Contains the mileage information that is associated with an item.
|
MapiPropertyCollection |
getNamedProperties()
Gets the named properties of message.
|
MapiNamedPropertyMappingStorage |
getNamedPropertyMapping()
Gets the named property mapping.
|
MapiPropertyStream |
getPropertyStream()
Gets the property stream.
|
MapiRecipientCollection |
getRecipients()
Gets the recipients of the message.
|
int |
getSensitivity()
Gets the Sensitivity.
|
String |
getSubject()
Gets or sets the subject of the message.
|
String |
getSubjectPrefix()
Gets a subject prefix that typically indicates some action on a message, such as "FW: " for forwarding.
|
MapiPropertyCollection |
getSubStorages()
Gets the sub storages.
|
protected void |
initNamedPropertyMappingStorage()
Inits the named property mapping storage.
|
void |
removeProperty(long tag)
Provides correctly removing property from all collections.
|
void |
setBilling(String value)
Contains the billing information associated with an item.
|
void |
setBody(String value)
Gets the message text.
|
void |
setBodyContent(String content,
int contentType)
Sets the content of the body.
|
void |
setBodyRtf(String value)
Gets or sets the RTF formatted message text.
|
void |
setCategories(String[] value)
Contains keywords or categories for the message object.
|
void |
setCompanies(String[] value)
Contains the names of the companies that are associated with an item.
|
void |
setMessageClass(String value)
Gets a case-sensitive string that identifies the sender-defined message class, such as IPM.Note.
|
void |
setMessageFlags(long flags)
Sets the message flags.
|
void |
setMileage(String value)
Contains the mileage information that is associated with an item.
|
void |
setNamedPropertyMapping(MapiNamedPropertyMappingStorage value)
Sets the named property mapping.
|
void |
setProperty(MapiProperty property)
Sets the property.
|
void |
setRecipients(MapiRecipientCollection value)
Gets the recipients of the message.
|
void |
setSensitivity(int value)
Gets the Sensitivity.
|
protected void |
setsIMapiMessageItemMembers(String messageClass,
String body,
String subject)
Sets MessageClass,Body and Subject.
|
void |
setSubject(String value)
Gets or sets the subject of the message.
|
protected void |
updateStorage(MapiPropertyCollection storages,
MapiPropertyStream propStream,
long key,
byte[] bytes)
Updates the storage.
|
protected void |
updateStorage(MapiPropertyCollection storages,
MapiPropertyStream propStream,
long key,
String data)
Updates the storage.
|
createMapiNode, getCodePage, getMyProperties, getProperties, getPropertyBoolean, getPropertyBytes, getPropertyDateTime, getPropertyInt32, getPropertyLong, getPropertyShort, getPropertyString, getPropertyString, isStoreUnicodeOk, setProperty, setProperty, setProperty, setProperty, setProperty, setPropertySet, tryGetPropertyData, tryGetPropertyDateTime, tryGetPropertyInt32, tryGetPropertyLong, tryGetPropertyString, tryGetPropertyString, tryGetPropertyString, tryGetPropertyString
protected final MapiAttachmentCollection attachments
The collection of attachments.
protected final MapiRecipientCollection recipients
The collection of recipients.
protected final MapiPropertyCollection subStorages
The MapiProperty collection.
protected MapiMessagePropertyStream propertyStream
The property stream.
protected MapiNamedPropertyMappingStorage namedPropertyMappingStorage
The named property mapping storage.
protected MapiMessageItemBase()
Initializes a new instance of the MapiMessageItemBase
class.
protected MapiMessageItemBase(MapiPropertyCollection properties)
Initializes a new instance of the MapiMessageItemBase
class.
properties
- MapiPropertyCollectionpublic void setProperty(MapiProperty property)
Sets the property.
setProperty
in class MapiPropertyContainer
property
- The property.com.aspose.ms.System.ArgumentNullException
- If property
is null.com.aspose.ms.System.ArgumentException
- If property data is null.com.aspose.ms.System.InvalidOperationException
- If data type is not supported.public MapiAttachmentCollection getAttachments()
Gets the attachments in the message.
Value: The attachment collection.MapiAttachmentCollection
object.public MapiPropertyStream getPropertyStream()
Gets the property stream.
Value: The property stream.MapiPropertyStream
object.public MapiPropertyCollection getNamedProperties()
Gets the named properties of message.
Value: The collection of named properties.MapiPropertyCollection
object.public MapiRecipientCollection getRecipients()
Gets the recipients of the message.
Value: The collection of recipients.MapiRecipientCollection
object.public void setRecipients(MapiRecipientCollection value)
Gets the recipients of the message.
Value: The collection of recipients.public MapiPropertyCollection getSubStorages()
Gets the sub storages.
Value: The sub storages.MapiPropertyCollection
object.public MapiNamedPropertyMappingStorage getNamedPropertyMapping()
Gets the named property mapping.
Value: The named property mapping.MapiNamedPropertyMappingStorage
object.public String getSubjectPrefix()
Gets a subject prefix that typically indicates some action on a message, such as "FW: " for forwarding.
Value: The string that represents subject prefix.String
object.public int getBodyType()
Gets the type of the body.
Value: The type of the body.public String getBodyRtf()
Gets or sets the RTF formatted message text.
Value: The string that represents message body rtf.String
object.public void setBodyRtf(String value)
Gets or sets the RTF formatted message text.
Value: The string that represents message body rtf.value
- a String
object.public String getBodyHtml()
Gets the BodyRtf
of the message converted to HTML, if present, otherwise an empty string.
String
object.public String[] getCompanies()
Contains the names of the companies that are associated with an item.
String
objects.public void setCompanies(String[] value)
Contains the names of the companies that are associated with an item.
value
- an array of String
objects.public String[] getCategories()
Contains keywords or categories for the message object.
String
objects.public void setCategories(String[] value)
Contains keywords or categories for the message object.
value
- an array of String
objects.public String getMileage()
Contains the mileage information that is associated with an item.
String
object.public void setMileage(String value)
Contains the mileage information that is associated with an item.
value
- a String
object.public String getBilling()
Contains the billing information associated with an item.
String
object.public void setBilling(String value)
Contains the billing information associated with an item.
value
- a String
object.public int getSensitivity()
Gets the Sensitivity.
Value: The sensitivity.public void setSensitivity(int value)
Gets the Sensitivity.
Value: The sensitivity.value
- a int.public String getMessageClass()
Gets a case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message.
Value: The string that represents message class.getMessageClass
in interface IMapiMessageItem
String
object.public void setMessageClass(String value)
Gets a case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message.
Value: The string that represents message class.public String getBody()
Gets the message text.
Value: The string that represents message body.getBody
in interface IMapiMessageItem
String
object.public void setBody(String value)
Gets the message text.
Value: The string that represents message body.setBody
in interface IMapiMessageItem
value
- a String
object.public String getSubject()
Gets or sets the subject of the message.
Value: The string that represents message subject.getSubject
in interface IMapiMessageItem
String
object.public void setSubject(String value)
Gets or sets the subject of the message.
Value: The string that represents message subject.setSubject
in interface IMapiMessageItem
value
- a String
object.protected void setsIMapiMessageItemMembers(String messageClass, String body, String subject)
Sets MessageClass,Body and Subject.
public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.ms.System.IDisposable
protected void checkIsDisposed()
Checks if the object is disposed and raised exception in this case.
protected void initNamedPropertyMappingStorage()
Inits the named property mapping storage.
public void setNamedPropertyMapping(MapiNamedPropertyMappingStorage value)
Sets the named property mapping.
setNamedPropertyMapping
in class MapiPropertyContainer
value
- The MapiNamedPropertyMappingStorage.public void setBodyContent(String content, int contentType)
Sets the content of the body.
content
- The content.contentType
- Type of the content.
com.aspose.ms.System.ArgumentNullException
- throws if the specified content string is null or empty.public void setMessageFlags(long flags)
Sets the message flags.
flags
- The message flags.public void removeProperty(long tag)
Provides correctly removing property from all collections.
tag
- The tag of MapiProperty.protected void updateStorage(MapiPropertyCollection storages, MapiPropertyStream propStream, long key, String data)
Updates the storage.
storages
- The storages.propStream
- The property stream.key
- The property tag.data
- The property data.protected void updateStorage(MapiPropertyCollection storages, MapiPropertyStream propStream, long key, byte[] bytes)
Updates the storage.
storages
- The storages.propStream
- The property stream.key
- The property tag.bytes
- The property data.Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.