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_SYSTEM
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttachment
(int partId, EMailAttachment attachment) void
addAttachment
(EMailAttachment attachment) void
addRecipient
(Recipient rec) boolean
long
Set
<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) int
getFrom()
int
int
hashCode()
boolean
boolean
isHtml()
boolean
isSigned()
boolean
isSkip()
void
parseRecipients
(String str) void
parseRecipientsBCC
(String str) void
parseRecipientsCC
(String str) void
parseReplyTo
(String str) void
setAccountId
(long accountId) void
setAttachments
(Map<Integer, EMailAttachment> attachments) void
setAttachmentsCount
(int attachmentCount) void
setAuthorAddress
(String address) void
setEmailId
(String emailId) void
void
void
setHeaders
(Map<String, String> headers) void
setHistoricyze
(boolean historicyze) void
void
setRecipientsBCC
(Set<Recipient> recipientsBCC) void
setRecipientsCC
(Set<Recipient> recipientsCC) void
setReplyTo
(Set<Recipient> replyTo) void
setSigned
(int signed) void
setSkip
(boolean skip) void
setTargetFolder
(Folder targetFolder) void
setUsername
(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, wasReadBy
Methods 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
-