Class EMail
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.communication.Message
com.logicaldoc.core.communication.EMail
- All Implemented Interfaces:
- Serializable
A represetnation of an Email message.
- Author:
- Michael Scholz, Marco Meschieri - LogicalDOC
- See Also:
- 
Field SummaryFields inherited from class com.logicaldoc.core.communication.MessageTYPE_NOTIFICATION, TYPE_SYSTEMFields inherited from class com.logicaldoc.core.PersistentObjectDELETED_CODE_DEFAULT, DELETED_CODE_STRONG
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAttachment(int partId, EMailAttachment attachment) voidaddAttachment(EMailAttachment attachment) voidaddRecipient(Recipient rec) booleanlongSet<javax.mail.internet.InternetAddress> Set<javax.mail.internet.InternetAddress> Set<javax.mail.internet.InternetAddress> Retrieves the set of all the recipients of the message, does not matter if they are direct recipient or CC or BCCgetAttachment(int partId) intgetFrom()intinthashCode()booleanbooleanisHtml()booleanisSigned()booleanisSkip()voidparseRecipients(String str) voidparseRecipientsBCC(String str) voidparseRecipientsCC(String str) voidparseReplyTo(String str) voidsetAccountId(long accountId) voidsetAttachments(Map<Integer, EMailAttachment> attachments) voidsetAttachmentsCount(int attachmentCount) voidsetAuthorAddress(String address) voidsetEmailId(String emailId) voidvoidvoidsetHistoricyze(boolean historicyze) voidvoidsetRecipientsBCC(Set<Recipient> recipientsBCC) voidsetRecipientsCC(Set<Recipient> recipientsCC) voidsetReplyTo(Set<Recipient> replyTo) voidsetSigned(int signed) voidsetSkip(boolean skip) voidsetTargetFolder(Folder targetFolder) voidsetUsername(String username) Methods inherited from class com.logicaldoc.core.communication.MessagegetAuthor, getHtml, getLocale, getMessageText, getReceivedDate, getRecipient, getRecipients, getSentDate, getSubject, getType, isNotify, setAuthor, setHtml, setLocale, setMessageText, setNotify, setReceivedDate, setRecipients, setSentDate, setSubject, setType, wasReadByMethods inherited from class com.logicaldoc.core.PersistentObjectgetCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
- 
Constructor Details- 
EMailpublic EMail()
 
- 
- 
Method Details- 
getEmailId
- 
setEmailId
- 
getAccountIdpublic long getAccountId()
- 
setAccountIdpublic void setAccountId(long accountId) 
- 
getAuthorAddress
- 
getUsername
- 
setAuthorAddress
- 
setUsername
- 
addRecipient
- 
getFolder
- 
setFolder
- 
getAttachments
- 
getAttachment
- 
addAttachment
- 
addAttachment
- 
getAddresses
- 
getAddressesCC
- 
getAddressesBCC
- 
getAttachmentsCountpublic int getAttachmentsCount()
- 
setAttachments
- 
parseRecipients
- 
parseRecipientsCC
- 
parseRecipientsBCC
- 
parseReplyTo
- 
getRecipientsCC
- 
setRecipientsCC
- 
getRecipientsBCC
- 
setRecipientsBCC
- 
getReplyTo
- 
setReplyTo
- 
isHtmlpublic boolean isHtml()
- 
getImages
- 
setImages
- 
setAttachmentsCountpublic void setAttachmentsCount(int attachmentCount) 
- 
getFrom
- 
setFrom
- 
isSignedpublic boolean isSigned()
- 
getSignedpublic int getSigned()
- 
setSignedpublic void setSigned(int signed) 
- 
isSkippublic boolean isSkip()
- 
setSkippublic void setSkip(boolean skip) 
- 
getTargetFolder
- 
setTargetFolder
- 
getAllRecipientsEmailsRetrieves the set of all the recipients of the message, does not matter if they are direct recipient or CC or BCC- Returns:
- the email addresses that will receive the message
 
- 
isHistoricyzepublic boolean isHistoricyze()
- 
setHistoricyzepublic void setHistoricyze(boolean historicyze) 
- 
hashCodepublic int hashCode()
- 
equals
 
-