|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.dataobjects.MailPart
com.openexchange.mail.dataobjects.MailMessage
com.openexchange.mail.dataobjects.compose.ComposedMailMessage
public abstract class ComposedMailMessage
ComposedMailMessage - Subclass of MailMessage designed for composing a mail.
| Field Summary |
|---|
| Fields inherited from class com.openexchange.mail.dataobjects.MailMessage |
|---|
COLOR_LABEL_NONE, COLOR_LABEL_PREFIX, COLOR_LABEL_PREFIX_OLD, FLAG_ANSWERED, FLAG_DELETED, FLAG_DRAFT, FLAG_FLAGGED, FLAG_FORWARDED, FLAG_READ_ACK, FLAG_RECENT, FLAG_SEEN, FLAG_SPAM, FLAG_USER, PRIORITY_HIGH, PRIORITY_HIGHEST, PRIORITY_LOW, PRIORITY_LOWEST, PRIORITY_NORMAL, USER_FORWARDED, USER_READ_ACK |
| Fields inherited from class com.openexchange.mail.dataobjects.MailPart |
|---|
NO_ENCLOSED_PARTS |
| Method Summary | |
|---|---|
abstract void |
addEnclosedPart(MailPart part)
Adds an instance of MailPart to enclosed parts |
void |
addRecipient(javax.mail.internet.InternetAddress recipient)
Adds a dedicated recipient to this composed mail. |
void |
addRecipients(javax.mail.internet.InternetAddress[] recipients)
Adds dedicated recipients to this composed mail. |
void |
cleanUp()
Cleans-up this composed mail's referenced uploaded files and frees temporary stored files. |
com.openexchange.groupware.contexts.Context |
getContext()
Gets the context |
abstract int |
getEnclosedCount()
Gets the number of enclosed mail parts. |
abstract MailPart |
getEnclosedMailPart(int index)
Gets this composed mail's part located at given index. |
javax.mail.internet.InternetAddress[] |
getRecipients()
Gets the composed mail's dedicated recipients. |
com.openexchange.session.Session |
getSession()
Gets the session |
int |
getUnreadMessages()
Gets the number of unread messages |
boolean |
hasRecipients()
Checks if this composed mail has dedicated recipients. |
abstract MailPart |
removeEnclosedPart(int index)
Removes the enclosed part at the specified position. |
abstract void |
setBodyPart(TextBodyMailPart mailPart)
Sets this composed message's body part. |
void |
setFiller(MIMEMessageFiller filler)
Sets the mail filler |
void |
setUnreadMessages(int unreadMessages)
Sets the number of unread messages |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean hasRecipients()
true if this composed mail has dedicated recipients; otherwise falsepublic javax.mail.internet.InternetAddress[] getRecipients()
public void addRecipient(javax.mail.internet.InternetAddress recipient)
recipient - The recipient to addpublic void addRecipients(javax.mail.internet.InternetAddress[] recipients)
recipients - The recipients to addpublic com.openexchange.session.Session getSession()
public com.openexchange.groupware.contexts.Context getContext()
public void setFiller(MIMEMessageFiller filler)
filler - The mail fillerpublic void cleanUp()
public int getUnreadMessages()
MailMessage
getUnreadMessages in class MailMessagepublic void setUnreadMessages(int unreadMessages)
MailMessage
setUnreadMessages in class MailMessageunreadMessages - The number of unread messages
public abstract int getEnclosedCount()
throws MailException
Note: The returned number does not include the text body part applied with setBodyPart(TextBodyMailPart). To check
for contained parts:
composedMail.getEnclosedCount() > 0
getEnclosedCount in class MailPartMailPart.NO_ENCLOSED_PARTS if not applicable
MailExceptionMailPart.NO_ENCLOSED_PARTS
public abstract MailPart getEnclosedMailPart(int index)
throws MailException
Note: This method does not include the text body part applied with setBodyPart(TextBodyMailPart).
getEnclosedMailPart in class MailPartindex - The index of desired mail part or null if not applicable
MailExceptionpublic abstract void setBodyPart(TextBodyMailPart mailPart)
The body part's content is supposed to be HTML content which is ought to be converted to appropriate MIME type on transport.
mailPart - The body partpublic abstract MailPart removeEnclosedPart(int index)
index - The index position
public abstract void addEnclosedPart(MailPart part)
MailPart to enclosed parts
part - The instance of MailPart to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||