public abstract class AbstractMimeMessage
extends javax.mail.internet.MimeMessage
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_SUFFIX |
protected boolean |
generateBody |
protected ImapService |
imapService |
protected boolean |
isMessageInSitesLibrary |
protected static int |
MAX_RETRIES |
protected FileInfo |
messageFileInfo |
protected ServiceRegistry |
serviceRegistry |
protected javax.mail.internet.MimeMessage |
wrappedMessage |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMimeMessage(FileInfo fileInfo,
ServiceRegistry serviceRegistry,
boolean generateBody) |
protected |
AbstractMimeMessage(javax.mail.Session session) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildMessage(FileInfo fileInfo,
ServiceRegistry serviceRegistry) |
abstract void |
buildMessageInternal()
Method must be implemented in subclasses.
|
protected void |
checkParameter(java.lang.Object parameter,
java.lang.String name)
Method that checks mandatory parameter.
|
java.lang.String |
getEmailBodyText(ImapService.EmailBodyFormat type)
Returns the text representing email body for ContentModel node.
|
javax.mail.Flags |
getFlags()
Returns message flags.
|
FileInfo |
getMessageInfo()
Returns
FileInfo object representing message in Alfresco. |
void |
setFlags(javax.mail.Flags flags,
boolean value)
Sets message flags.
|
protected void |
setMessageHeaders() |
protected void |
updateMessageID() |
addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFrom, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, removeHeader, reply, saveChanges, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, updateHeaders, writeTo, writeToprotected static final java.lang.String DEFAULT_SUFFIX
protected static int MAX_RETRIES
protected boolean generateBody
protected ServiceRegistry serviceRegistry
protected ImapService imapService
protected FileInfo messageFileInfo
protected javax.mail.internet.MimeMessage wrappedMessage
protected boolean isMessageInSitesLibrary
protected AbstractMimeMessage(javax.mail.Session session)
protected AbstractMimeMessage(FileInfo fileInfo, ServiceRegistry serviceRegistry, boolean generateBody) throws javax.mail.MessagingException
javax.mail.MessagingExceptionprotected void buildMessage(FileInfo fileInfo, ServiceRegistry serviceRegistry) throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic abstract void buildMessageInternal()
throws javax.mail.MessagingException
javax.mail.MessagingExceptionprotected void checkParameter(java.lang.Object parameter,
java.lang.String name)
The - parameter instance to check.The - name of the parameter.protected void setMessageHeaders()
throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic FileInfo getMessageInfo()
FileInfo object representing message in Alfresco.FileInfo object.public javax.mail.Flags getFlags()
getFlags in class javax.mail.internet.MimeMessageFlagspublic void setFlags(javax.mail.Flags flags,
boolean value)
throws javax.mail.MessagingException
setFlags in class javax.mail.internet.MimeMessageflags - - Flags object.value - - flags value.javax.mail.MessagingExceptionpublic java.lang.String getEmailBodyText(ImapService.EmailBodyFormat type)
nodeRef - NodeRef of the target content.type - The type of the returned body. May be the one of ImapService.EmailBodyFormat.protected void updateMessageID()
throws javax.mail.MessagingException
updateMessageID in class javax.mail.internet.MimeMessagejavax.mail.MessagingExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.