Class EMail
- java.lang.Object
-
- com.logicaldoc.core.PersistentObject
-
- com.logicaldoc.core.communication.Message
-
- com.logicaldoc.core.communication.EMail
-
- All Implemented Interfaces:
Serializable
public class EMail extends Message
- Author:
- Michael Scholz, Marco Meschieri - LogicalDOC
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description EMail()
-
Method Summary
-
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
equals, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, hashCode, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
-
-
-
-
Method Detail
-
getEmailId
public String getEmailId()
-
setEmailId
public void setEmailId(String emailId)
-
getAccountId
public long getAccountId()
-
setAccountId
public void setAccountId(long accountId)
-
getAuthorAddress
public String getAuthorAddress()
-
getUsername
public String getUsername()
-
setAuthorAddress
public void setAuthorAddress(String address)
-
setUsername
public void setUsername(String username)
-
addRecipient
public void addRecipient(Recipient rec)
-
getFolder
public String getFolder()
-
setFolder
public void setFolder(String string)
-
getAttachments
public Map<Integer,EMailAttachment> getAttachments()
-
getAttachment
public EMailAttachment getAttachment(int partId)
-
addAttachment
public void addAttachment(int partId, EMailAttachment attachment)
-
addAttachment
public void addAttachment(EMailAttachment attachment)
-
getAddresses
public javax.mail.internet.InternetAddress[] getAddresses() throws Exception
- Throws:
Exception
-
getAddressesCC
public javax.mail.internet.InternetAddress[] getAddressesCC() throws Exception
- Throws:
Exception
-
getAddressesBCC
public javax.mail.internet.InternetAddress[] getAddressesBCC() throws Exception
- Throws:
Exception
-
getAttachmentsCount
public int getAttachmentsCount()
-
setAttachments
public void setAttachments(Map<Integer,EMailAttachment> attachments)
-
parseRecipients
public void parseRecipients(String str)
-
parseRecipientsCC
public void parseRecipientsCC(String str)
-
parseRecipientsBCC
public void parseRecipientsBCC(String str)
-
parseReplyTo
public void parseReplyTo(String str)
-
isHtml
public boolean isHtml()
-
setAttachmentsCount
public void setAttachmentsCount(int attachmentCount)
-
getFrom
public Recipient getFrom()
-
setFrom
public void setFrom(Recipient from)
-
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
public Folder getTargetFolder()
-
setTargetFolder
public void setTargetFolder(Folder targetFolder)
-
getAllRecipientsEmails
public Set<String> 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)
-
-