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 Summary
Fields inherited from class com.logicaldoc.core.communication.Message
TYPE_NOTIFICATION, TYPE_SYSTEMFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id -
Constructor Summary
Constructors -
Method Summary
Modifier 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) voidvoidvoidsetHeaders(Map<String, String> headers) voidsetHistoricyze(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.Message
getAuthor, 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.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
-
Constructor Details
-
EMail
public EMail()
-
-
Method Details
-
getEmailId
-
setEmailId
-
getAccountId
public long getAccountId() -
setAccountId
public void setAccountId(long accountId) -
getAuthorAddress
-
getUsername
-
setAuthorAddress
-
setUsername
-
addRecipient
-
getFolder
-
setFolder
-
getAttachments
-
getAttachment
-
addAttachment
-
addAttachment
-
getAddresses
-
getAddressesCC
-
getAddressesBCC
-
getAttachmentsCount
public int getAttachmentsCount() -
setAttachments
-
parseRecipients
-
parseRecipientsCC
-
parseRecipientsBCC
-
parseReplyTo
-
getRecipientsCC
-
setRecipientsCC
-
getRecipientsBCC
-
setRecipientsBCC
-
getReplyTo
-
setReplyTo
-
isHtml
public boolean isHtml() -
getImages
-
setImages
-
setAttachmentsCount
public void setAttachmentsCount(int attachmentCount) -
getFrom
-
setFrom
-
isSigned
public boolean isSigned() -
getSigned
public int getSigned() -
setSigned
public void setSigned(int signed) -
isSkip
public boolean isSkip() -
setSkip
public void setSkip(boolean skip) -
getTargetFolder
-
setTargetFolder
-
getAllRecipientsEmails
Retrieves 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
-
isHistoricyze
public boolean isHistoricyze() -
setHistoricyze
public void setHistoricyze(boolean historicyze) -
hashCode
public int hashCode() -
equals
-
getHeaders
-
setHeaders
-