|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portlet.emailpreview.EmailMessage
public class EmailMessage
An entity abstraction for representing information related to an email message.
| Constructor Summary | |
|---|---|
EmailMessage(int messageNumber,
String uid,
String sender,
String subject,
Date sentDate,
boolean unread,
boolean answered,
boolean deleted,
boolean multipart,
String contentType,
EmailMessageContent content)
|
|
EmailMessage(int messageNumber,
String uid,
String sender,
String subject,
Date sentDate,
boolean unread,
boolean answered,
boolean deleted,
boolean multipart,
String contentType,
EmailMessageContent content,
String allRecipients)
Creates a new EmailMessage based on the specified
Message and EmailMessageContent. |
|
| Method Summary | |
|---|---|
String |
getAllRecipients()
|
EmailMessageContent |
getContent()
|
String |
getContentType()
|
String |
getMessageId()
Returns the UID of the message if it is present, else the message number. |
int |
getMessageNumber()
|
String |
getSender()
Returns the sender of this email message. |
String |
getSenderName()
|
Date |
getSentDate()
Returns the date the email message was sent or null if the
server did not provide one. |
String |
getSentDateString()
|
String |
getSubject()
Returns the email message subject. |
String |
getUid()
Returns the UID of the message as set by the Folder or null
if the Folder does not implement UIDFolder. |
boolean |
isAnswered()
|
boolean |
isDeleted()
|
boolean |
isMultipart()
|
boolean |
isUnread()
|
void |
setUnread(boolean unread)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmailMessage(int messageNumber,
String uid,
String sender,
String subject,
Date sentDate,
boolean unread,
boolean answered,
boolean deleted,
boolean multipart,
String contentType,
EmailMessageContent content,
String allRecipients)
EmailMessage based on the specified
Message and EmailMessageContent.
public EmailMessage(int messageNumber,
String uid,
String sender,
String subject,
Date sentDate,
boolean unread,
boolean answered,
boolean deleted,
boolean multipart,
String contentType,
EmailMessageContent content)
| Method Detail |
|---|
public int getMessageNumber()
public String getUid()
null
if the Folder does not implement UIDFolder.
public String getMessageId()
public Date getSentDate()
null if the
server did not provide one.
null
MessagingExceptionpublic String getSentDateString()
public String getSender()
public String getSenderName()
public String getSubject()
public boolean isUnread()
public void setUnread(boolean unread)
public boolean isAnswered()
public boolean isDeleted()
public boolean isMultipart()
public String getContentType()
null if the content cannot be readpublic EmailMessageContent getContent()
public String getAllRecipients()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||