public interface IEmailData
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(IAttachment attachment)
Add an attachment
|
void |
addBcc(java.lang.String emailAddress)
Adds an email address to the blind carbon copy receivers
|
void |
addBodyText(IEmailBodyData bodyText)
Add a body text to the email
|
void |
addCc(java.lang.String emailAddress)
Adds an email address to the carbon copy receivers
|
void |
addTo(java.lang.String emailAddress)
Adds an email address to the receivers
|
IAttachment[] |
getAttachments()
Returns all attachments of the email.
|
int |
getAttachmentsSize()
Return the amount of attachments.
|
java.lang.String[] |
getBcc()
Returns the names or email addresses of the blind carbon copy receivers.
|
java.lang.String |
getBodySnippetId()
Returns the internal body snipped ID (just for internal usage)
|
java.util.List<IEmailBodyData> |
getBodyTextList()
Return the body texts of the email as a list
|
IEmailBodyData[] |
getBodyTexts()
Return the body texts of the email
|
java.lang.String[] |
getCc()
Returns the names or email addresses of the carbon copy receivers.
|
java.lang.String |
getId()
Returns the email identifier in the external email application
|
int |
getImportance()
Returns the level of importance of the email.
|
java.lang.String |
getIntegratorKey()
Returns the application key of the corresponding Email Manager
|
java.lang.String |
getIntegratorStoreId()
Returns the email store identifier in the external email application
|
java.util.Date |
getLastModifiedTime()
Informs at what time the email data where last modified.
|
long |
getLastModifiedTimeInMillis()
Return the last modified time in Java styled milliseconds
|
java.util.Date |
getReceivedTime()
Informs at what time the email was received.
|
int |
getReceivedYear()
Returns the year part (4 digits) of the received time.
|
java.lang.String |
getSender()
Returns the senders account name.
|
java.lang.String |
getSenderAddress()
Returns the senders email address.
|
int |
getSize()
Returns the size of the email in bytes.
|
java.lang.String |
getSubject()
Returns the subject text of the email
|
java.lang.String[] |
getTo()
Returns the names or email addresses of the main receivers.
|
boolean |
hasAttachments()
Informs if the email has any attachments.
|
boolean |
isEncrypted()
Returns if the email is stored encrypted in the file system.
|
boolean |
isOutboxItem()
Informs if it is an outbox item otherwise it is treated as inbox email.
|
boolean |
isSent()
Informs if the email is sent (only useful in case of outgoing emails)
|
boolean |
isUnread()
Informs if the email is unread till now.
|
void |
removeAllBcc()
Removes all bcc-receiver email addresses
|
void |
removeAllBodyTexts()
Removes all body texts
|
void |
removeAllCc()
Removes all cc-receiver email addresses
|
void |
removeAllTo()
Removes all to-receiver email addresses
|
boolean |
removeAttachment(int index)
Removes an attachment by index
|
void |
setBodySnippetId(java.lang.String id)
Sets the body snipped ID (just for internal usage)
|
void |
setEncrypted(boolean encrypted)
LLworkplace encrypts the email if necessary.
|
void |
setId(java.lang.String id)
Sets the email identifier
|
void |
setImportance(int importance)
Defines the level of importance of the email.
|
void |
setIntegratorKey(java.lang.String integratorKey)
Sets the integrator key
|
void |
setIntegratorStoreId(java.lang.String integratorStoreId)
Sets the integrator store id
|
void |
setOutboxItem(boolean outboxItem)
Defines if the email is to be sent or is sent
|
void |
setReceivedTime(java.util.Date receivedTime)
Defines the time the email was received/sent.
|
void |
setSent(boolean sent)
Defines if the email is sent
|
void |
setSubject(java.lang.String subject)
Defines the subject
|
java.lang.String getBodySnippetId()
void setBodySnippetId(java.lang.String id)
id
- body-snipped-IDjava.lang.String getIntegratorKey()
void setIntegratorKey(java.lang.String integratorKey)
integratorKey
- integrator key (application key)java.lang.String getIntegratorStoreId()
void setIntegratorStoreId(java.lang.String integratorStoreId)
integratorStoreId
- integrator store idjava.lang.String getId()
void setId(java.lang.String id)
id
- unique identifierjava.lang.String getSender()
java.lang.String getSenderAddress()
java.lang.String[] getTo()
void addTo(java.lang.String emailAddress)
emailAddress
- email address to addjava.lang.String[] getCc()
void addCc(java.lang.String emailAddress)
emailAddress
- email address to addjava.lang.String[] getBcc()
void addBcc(java.lang.String emailAddress)
emailAddress
- email address to addvoid removeAllTo()
void removeAllCc()
void removeAllBcc()
java.lang.String getSubject()
void setSubject(java.lang.String subject)
subject
- subject of the emailjava.util.List<IEmailBodyData> getBodyTextList()
IEmailBodyData[] getBodyTexts()
void addBodyText(IEmailBodyData bodyText)
bodyText
- body textvoid removeAllBodyTexts()
boolean isOutboxItem()
void setOutboxItem(boolean outboxItem)
outboxItem
- is sent/to be sentint getSize()
int getImportance()
void setImportance(int importance)
importance
- the importance value (see com.llwork.external.email.IEmailManager)java.util.Date getReceivedTime()
void setReceivedTime(java.util.Date receivedTime)
receivedTime
- received/sent timeboolean isUnread()
boolean isSent()
void setSent(boolean sent)
sent
- email sentint getReceivedYear()
java.util.Date getLastModifiedTime()
long getLastModifiedTimeInMillis()
boolean isEncrypted()
void setEncrypted(boolean encrypted)
encrypted
- delares if the email is encryptedIAttachment[] getAttachments()
boolean hasAttachments()
int getAttachmentsSize()
void addAttachment(IAttachment attachment)
attachment
- the attachment to be addedboolean removeAttachment(int index)
index
- the index of the attachment to be removed