public class EmailData extends java.lang.Object implements IEmailData
Constructor and Description |
---|
EmailData(IEmailBodyData bodyData) |
EmailData(IEmailBodyData[] bodyData) |
EmailData(IEmailData emailData) |
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(IAttachment attachment)
Add an attachment
|
void |
addAttachment(java.lang.String filePath) |
void |
addAttachment(java.lang.String filePath,
java.lang.String displayName) |
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 |
cloneAttachment(IAttachment attachment) |
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.
|
static java.io.Serializable |
getClonedObject(java.io.Serializable object2Clone) |
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
|
int |
getLastModifiedYear() |
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 |
setHasAttachments(boolean b) |
void |
setId(java.lang.String string)
Sets the email identifier
|
void |
setImportance(int i)
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 |
setLastModifiedTime(java.util.Date date) |
void |
setOutboxItem(boolean b)
Defines if the email is to be sent or is sent
|
void |
setReceivedTime(java.util.Date date)
Defines the time the email was received/sent.
|
void |
setSender(java.lang.String string) |
void |
setSenderAddress(java.lang.String senderAddress) |
void |
setSent(boolean sent)
Defines if the email is sent
|
void |
setSize(int size) |
void |
setSubject(java.lang.String string)
Defines the subject
|
void |
setUnread(boolean b) |
public EmailData(IEmailBodyData bodyData)
public EmailData(IEmailBodyData[] bodyData)
public EmailData(IEmailData emailData)
public static java.io.Serializable getClonedObject(java.io.Serializable object2Clone)
public IAttachment cloneAttachment(IAttachment attachment)
public void setBodySnippetId(java.lang.String id)
IEmailData
setBodySnippetId
in interface IEmailData
id
- body-snipped-IDpublic java.lang.String getBodySnippetId()
IEmailData
getBodySnippetId
in interface IEmailData
public java.lang.String getIntegratorKey()
IEmailData
getIntegratorKey
in interface IEmailData
public void setIntegratorKey(java.lang.String integratorKey)
IEmailData
setIntegratorKey
in interface IEmailData
integratorKey
- integrator key (application key)public java.lang.String getIntegratorStoreId()
IEmailData
getIntegratorStoreId
in interface IEmailData
public void setIntegratorStoreId(java.lang.String integratorStoreId)
IEmailData
setIntegratorStoreId
in interface IEmailData
integratorStoreId
- integrator store idpublic boolean isEncrypted()
IEmailData
isEncrypted
in interface IEmailData
public void setEncrypted(boolean encrypted)
IEmailData
setEncrypted
in interface IEmailData
encrypted
- delares if the email is encryptedpublic boolean isSent()
IEmailData
isSent
in interface IEmailData
public void setSent(boolean sent)
IEmailData
setSent
in interface IEmailData
sent
- email sentpublic IAttachment[] getAttachments()
IEmailData
getAttachments
in interface IEmailData
public boolean removeAttachment(int index)
IEmailData
removeAttachment
in interface IEmailData
index
- the index of the attachment to be removedpublic java.lang.String[] getBcc()
IEmailData
getBcc
in interface IEmailData
public java.util.List<IEmailBodyData> getBodyTextList()
IEmailData
getBodyTextList
in interface IEmailData
public IEmailBodyData[] getBodyTexts()
IEmailData
getBodyTexts
in interface IEmailData
public void removeAllBodyTexts()
IEmailData
removeAllBodyTexts
in interface IEmailData
public void addBodyText(IEmailBodyData bodyText)
IEmailData
addBodyText
in interface IEmailData
bodyText
- body textpublic java.lang.String[] getCc()
IEmailData
getCc
in interface IEmailData
public java.lang.String getSubject()
IEmailData
getSubject
in interface IEmailData
public java.lang.String[] getTo()
IEmailData
getTo
in interface IEmailData
public void addAttachment(java.lang.String filePath)
public void addAttachment(java.lang.String filePath, java.lang.String displayName)
public void addAttachment(IAttachment attachment)
IEmailData
addAttachment
in interface IEmailData
attachment
- the attachment to be addedpublic void addBcc(java.lang.String emailAddress)
IEmailData
addBcc
in interface IEmailData
emailAddress
- email address to addpublic void addCc(java.lang.String emailAddress)
IEmailData
addCc
in interface IEmailData
emailAddress
- email address to addpublic void setSubject(java.lang.String string)
IEmailData
setSubject
in interface IEmailData
string
- subject of the emailpublic void addTo(java.lang.String emailAddress)
IEmailData
addTo
in interface IEmailData
emailAddress
- email address to addpublic void removeAllTo()
IEmailData
removeAllTo
in interface IEmailData
public void removeAllCc()
IEmailData
removeAllCc
in interface IEmailData
public void removeAllBcc()
IEmailData
removeAllBcc
in interface IEmailData
public boolean isOutboxItem()
IEmailData
isOutboxItem
in interface IEmailData
public void setOutboxItem(boolean b)
IEmailData
setOutboxItem
in interface IEmailData
b
- is sent/to be sentpublic java.lang.String getSender()
IEmailData
getSender
in interface IEmailData
public void setSender(java.lang.String string)
public int getAttachmentsSize()
IEmailData
getAttachmentsSize
in interface IEmailData
public boolean hasAttachments()
IEmailData
hasAttachments
in interface IEmailData
public void setHasAttachments(boolean b)
public int getSize()
IEmailData
getSize
in interface IEmailData
public void setSize(int size)
public int getImportance()
IEmailData
getImportance
in interface IEmailData
public long getLastModifiedTimeInMillis()
IEmailData
getLastModifiedTimeInMillis
in interface IEmailData
public java.util.Date getLastModifiedTime()
IEmailData
getLastModifiedTime
in interface IEmailData
public java.util.Date getReceivedTime()
IEmailData
getReceivedTime
in interface IEmailData
public boolean isUnread()
IEmailData
isUnread
in interface IEmailData
public void setImportance(int i)
IEmailData
setImportance
in interface IEmailData
i
- the importance value (see com.llwork.external.email.IEmailManager)public void setLastModifiedTime(java.util.Date date)
public void setReceivedTime(java.util.Date date)
IEmailData
setReceivedTime
in interface IEmailData
date
- received/sent timepublic int getReceivedYear()
IEmailData
getReceivedYear
in interface IEmailData
public int getLastModifiedYear()
public void setUnread(boolean b)
public java.lang.String getId()
IEmailData
getId
in interface IEmailData
public void setId(java.lang.String string)
IEmailData
setId
in interface IEmailData
string
- unique identifierpublic java.lang.String getSenderAddress()
IEmailData
getSenderAddress
in interface IEmailData
public void setSenderAddress(java.lang.String senderAddress)