Interface IExchangeMessage
-
- All Superinterfaces:
IExchangeItem
@Scriptable public interface IExchangeMessage extends 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getBcc()
String
getBody()
String
getCc()
Date
getCreationDate()
Date
getDate()
Date
getDateReceived()
String
getFrom()
String
getHtmlDescription()
String
getInReplyTo()
String
getReplyTo()
String
getSender()
int
getSize()
String
getTo()
String
getUnicodeSubject()
boolean
hasAttachment()
boolean
isRead()
void
send()
Sends the message.void
setBcc(String p_strBcc)
void
setBody(String p_strBody)
void
setCc(String p_strCc)
void
setDate(Date p_date)
void
setFrom(String p_strFrom)
void
setHtmlDescription(String p_strHtmlDescr)
void
setRead(boolean p_bRead)
void
setReplyTo(String p_strReplyTo)
void
setTo(String p_strRecipient)
void
setTo(List<String> p_recipients)
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 Detail
-
getTo
String getTo()
-
setTo
void setTo(String p_strRecipient)
-
getFrom
String getFrom()
-
setFrom
void setFrom(String p_strFrom)
-
getBcc
String getBcc()
-
setBcc
void setBcc(String p_strBcc)
-
getCc
String getCc()
-
setCc
void setCc(String p_strCc)
-
getUnicodeSubject
String getUnicodeSubject()
-
setUnicodeSubject
void setUnicodeSubject(String p_strUnicodeSubject)
-
getDate
Date getDate()
-
setDate
void setDate(Date p_date)
-
getDateReceived
Date getDateReceived()
-
hasAttachment
boolean hasAttachment()
-
getInReplyTo
String getInReplyTo()
-
getReplyTo
String getReplyTo()
-
setReplyTo
void setReplyTo(String p_strReplyTo)
-
getSender
String getSender()
-
getBody
String getBody()
-
setBody
void setBody(String p_strBody)
-
getHtmlDescription
String getHtmlDescription()
-
setHtmlDescription
void setHtmlDescription(String p_strHtmlDescr)
-
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.ExchangeUtilException
Sends the message.- Throws:
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
- If message could not be sent.
-
-