Interface IExchangeMessage
- All Superinterfaces:
IExchangeItem
Defines properties of a MS Exchange message and methods
to work with a message.
Usage example:
IExchangeMessage l_msg = ExchangeMessageUtil.createNewDraft("sender@example.org", "recipient@example.org",
"The Subject", "The Message"); //create a new message
l_msg.setCC("recipient2@example.org"); //update some properties
l_msg.save(); //save the updated properties
l_msg.addAttachment(new File("attachment.txt")); // add an attachment
l_msg.send(); //send the message
-
Method Summary
Modifier and TypeMethodDescriptiongetBcc()
getBody()
getCc()
getDate()
getFrom()
int
getSize()
getTo()
boolean
boolean
isRead()
void
send()
Sends the message.void
void
void
void
void
void
setHtmlDescription
(String p_strHtmlDescr) void
setRead
(boolean p_bRead) void
setReplyTo
(String p_strReplyTo) void
void
void
setUnicodeSubject
(String p_strUnicodeSubject) Methods inherited from interface de.uplanet.lucy.server.businesslogic.exchange.util.IExchangeItem
addAttachment, addAttachment, addCategory, delete, getAttachments, getCategories, getFolderHref, getHref, getId, getItemLink, getPermanentUrl, getSubject, getUserDefinedFieldValue, removeAttachment, removeCategory, save, setSubject, setUserDefinedFieldValue
-
Method Details
-
getTo
String getTo() -
setTo
-
setTo
-
getFrom
String getFrom() -
setFrom
-
getBcc
String getBcc() -
setBcc
-
getCc
String getCc() -
setCc
-
getUnicodeSubject
String getUnicodeSubject() -
setUnicodeSubject
-
getDate
Date getDate() -
setDate
-
getDateReceived
Date getDateReceived() -
hasAttachment
boolean hasAttachment() -
getInReplyTo
String getInReplyTo() -
getReplyTo
String getReplyTo() -
setReplyTo
-
getSender
String getSender() -
getBody
String getBody() -
setBody
-
getHtmlDescription
String getHtmlDescription() -
setHtmlDescription
-
getSize
int getSize() -
getCreationDate
Date getCreationDate() -
isRead
boolean isRead() -
setRead
void setRead(boolean p_bRead) -
send
void send() throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilExceptionSends the message.- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- If message could not be sent.
-