de.uplanet.lucy.server.businesslogic.exchange.util
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

Version:
$Revision: 89488 $

Method Summary
 java.lang.String getBcc()
           
 java.lang.String getBody()
           
 java.lang.String getCc()
           
 java.util.Date getCreationDate()
           
 java.util.Date getDate()
           
 java.util.Date getDateReceived()
           
 java.lang.String getFrom()
           
 java.lang.String getHtmlDescription()
           
 java.lang.String getInReplyTo()
           
 java.lang.String getReplyTo()
           
 java.lang.String getSender()
           
 int getSize()
           
 java.lang.String getTo()
           
 java.lang.String getUnicodeSubject()
           
 boolean hasAttachment()
           
 boolean isRead()
           
 void send()
          Sends the message.
 void setBcc(java.lang.String p_strBcc)
           
 void setBody(java.lang.String p_strBody)
           
 void setCc(java.lang.String p_strCc)
           
 void setDate(java.util.Date p_date)
           
 void setFrom(java.lang.String p_strFrom)
           
 void setHtmlDescription(java.lang.String p_strHtmlDescr)
           
 void setRead(boolean p_bRead)
           
 void setReplyTo(java.lang.String p_strReplyTo)
           
 void setTo(java.util.List<java.lang.String> p_recipients)
           
 void setTo(java.lang.String p_strRecipient)
           
 void setUnicodeSubject(java.lang.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

java.lang.String getTo()

setTo

void setTo(java.lang.String p_strRecipient)

setTo

void setTo(java.util.List<java.lang.String> p_recipients)

getFrom

java.lang.String getFrom()

setFrom

void setFrom(java.lang.String p_strFrom)

getBcc

java.lang.String getBcc()

setBcc

void setBcc(java.lang.String p_strBcc)

getCc

java.lang.String getCc()

setCc

void setCc(java.lang.String p_strCc)

getUnicodeSubject

java.lang.String getUnicodeSubject()

setUnicodeSubject

void setUnicodeSubject(java.lang.String p_strUnicodeSubject)

getDate

java.util.Date getDate()

setDate

void setDate(java.util.Date p_date)

getDateReceived

java.util.Date getDateReceived()

hasAttachment

boolean hasAttachment()

getInReplyTo

java.lang.String getInReplyTo()

getReplyTo

java.lang.String getReplyTo()

setReplyTo

void setReplyTo(java.lang.String p_strReplyTo)

getSender

java.lang.String getSender()

getBody

java.lang.String getBody()

setBody

void setBody(java.lang.String p_strBody)

getHtmlDescription

java.lang.String getHtmlDescription()

setHtmlDescription

void setHtmlDescription(java.lang.String p_strHtmlDescr)

getSize

int getSize()

getCreationDate

java.util.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:
ExchangeUtilException - If message could not be sent.


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.