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 MapiRecipientCollection |
recipients
The collection of recipients.
|
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 (getBodyRtf() /setBodyRtf(String) ) 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 |
getItemId()
The item id, uses with a server
|
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.
|
MapiProperty |
getProperty(PropertyDescriptor pd)
Gets MAPI property by property descriptor.
|
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(PropertyDescriptor pd,
Object value)
Sets MAPI 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.
|
createMapiNode, getCodePage, getProperties, getPropertyBoolean, getPropertyBytes, getPropertyDateTime, getPropertyInt32, getPropertyLong, getPropertyShort, getPropertyString, getPropertyString, isStoreUnicodeOk, setProperty, tryGetPropertyData, tryGetPropertyDateTime, tryGetPropertyInt32, tryGetPropertyLong, tryGetPropertyString, tryGetPropertyString, tryGetPropertyString, tryGetPropertyString
protected MapiAttachmentCollection attachments
The collection of attachments.
protected MapiRecipientCollection recipients
The collection of recipients.
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 String getItemId()
The item id, uses with a server
public MapiProperty getProperty(PropertyDescriptor pd)
Gets MAPI property by property descriptor.
getProperty
in class MapiPropertyContainer
pd
- Property descriptor for looked propertypublic void setProperty(PropertyDescriptor pd, Object value)
Sets MAPI property.
setProperty
in class MapiPropertyContainer
pd
- The property descriptor.value
- The property data.public final MapiAttachmentCollection getAttachments()
Gets the attachments in the message.
Value: The attachment collection.public final MapiPropertyStream getPropertyStream()
Gets the property stream.
Value: The property stream.public final MapiPropertyCollection getNamedProperties()
Gets the named properties of message.
Value: The collection of named properties.public final MapiRecipientCollection getRecipients()
Gets the recipients of the message.
Value: The collection of recipients.public final void setRecipients(MapiRecipientCollection value)
Gets the recipients of the message.
Value: The collection of recipients.public final MapiPropertyCollection getSubStorages()
Gets the sub storages.
Value: The sub storages.public final MapiNamedPropertyMappingStorage getNamedPropertyMapping()
Gets the named property mapping.
Value: The named property mapping.public final 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.public final int getBodyType()
Gets the type of the body.
Value: The type of the body.public final String getBodyRtf()
Gets or sets the RTF formatted message text.
Value: The string that represents message body rtf.public final void setBodyRtf(String value)
Gets or sets the RTF formatted message text.
Value: The string that represents message body rtf.public final String getBodyHtml()
Gets the BodyRtf
(getBodyRtf()
/setBodyRtf(String)
) of the message converted to HTML, if present, otherwise an empty string.
public final String[] getCompanies()
Contains the names of the companies that are associated with an item.
public final void setCompanies(String[] value)
Contains the names of the companies that are associated with an item.
public final String[] getCategories()
Contains keywords or categories for the message object.
public final void setCategories(String[] value)
Contains keywords or categories for the message object.
public final String getMileage()
Contains the mileage information that is associated with an item.
public final void setMileage(String value)
Contains the mileage information that is associated with an item.
public final String getBilling()
Contains the billing information associated with an item.
public final void setBilling(String value)
Contains the billing information associated with an item.
public final int getSensitivity()
Gets the Sensitivity.
Value: The sensitivity.public final void setSensitivity(int value)
Gets the Sensitivity.
Value: The sensitivity.public final 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
public final 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
public void setBody(String value)
Gets the message text.
Value: The string that represents message body.setBody
in interface IMapiMessageItem
public final String getSubject()
Gets or sets the subject of the message.
Value: The string that represents message subject.getSubject
in interface IMapiMessageItem
public final void setSubject(String value)
Gets or sets the subject of the message.
Value: The string that represents message subject.setSubject
in interface IMapiMessageItem
protected final void setsIMapiMessageItemMembers(String messageClass, String body, String subject)
Sets MessageClass,Body and Subject.
messageClass
- body
- 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 final void checkIsDisposed()
Checks if the object is disposed and raised exception in this case.
protected final void initNamedPropertyMappingStorage()
Inits the named property mapping storage.
public final void setNamedPropertyMapping(MapiNamedPropertyMappingStorage value)
Sets the named property mapping.
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 final void setMessageFlags(long flags)
Sets the message flags.
flags
- The message flags.public final void removeProperty(long tag)
Provides correctly removing property from all collections.
tag
- The tag of MapiProperty.