public interface IEmailManager extends IApplicationExternalManager
Modifier and Type | Field and Description |
---|---|
static int |
EMAIL_IMPORTANCE_HIGH |
static int |
EMAIL_IMPORTANCE_LOW |
static int |
EMAIL_IMPORTANCE_NORMAL |
Modifier and Type | Method and Description |
---|---|
boolean |
canOpenEmailInExternalEditor(java.util.Properties props,
java.lang.String emailId)
Tells LLworkplace if the external application can open the email in its own email editor
|
boolean |
canStoreEmailsWithoutSaving()
Tells LLworkplace if the external application can store new emails without sending it
|
boolean |
createEmail(IEmailData emailData,
boolean sendImmediately,
boolean openExternal)
Creates an email in the external application.
|
boolean |
createEmail(IEmailData emailData,
java.lang.String storeId,
boolean sendImmediately,
boolean openExternal)
Creates an email in the external application.
|
void |
deleteEmails(java.lang.String storeId,
java.lang.String[] emailIDs)
A set of emails should be deleted in the external email application
|
void |
deleteEmailsUntil(java.lang.String storeId,
java.util.Date untilDate)
All email till the until date should be deleted in the external email application
|
boolean |
forwardEmail(IEmailData emailData,
boolean sendImmediately,
boolean openExternal)
Forward the email to another receiver.
|
boolean |
forwardEmail(java.lang.String emailId)
Forward the email to another receiver.
|
IEmailData[] |
getAllEmails(java.lang.String storeId,
java.lang.String saveAsPath,
boolean loadBody,
long loadFromInMillis,
java.util.Date loadUntil)
Should return all emails that are modified or received between the loadFromInMillis till loadUntil
|
IEmailStore[] |
getAvailableEmailIntegratorStores()
Returns all available email stores of the external email application
|
java.lang.String |
getEmailAccountName(java.util.Properties props)
Tells LLworkplace the used email account name
|
IEmailData |
getEmailFromEML(java.io.InputStream emlInputStream)
Convertation of the content of an eml-file to an IEmailData-object
|
IEmailData |
getReloadEmail(java.lang.String emailId,
java.lang.String saveAsPath)
If LLworkplace can't found any physical email file for an email (why ever) it tries to recreate the file.
|
boolean |
hasEmailEditor(java.util.Properties props)
Tells LLworkplace if the external application has its own email editor
|
boolean |
isEmailUnread(java.lang.String emailId)
Asks if the email is unread in the email store.
|
boolean |
isRfcConform()
Asks if the EmailManager is Mail-RFC conform.
|
boolean |
openEmail(java.lang.String emailId)
Opens an email.
|
boolean |
replyEmail(IEmailData emailData,
boolean replyAll,
boolean sendImmediately,
boolean openExternal)
Replies the email.
|
boolean |
replyEmail(java.lang.String emailId,
boolean replyAll)
Replies the email.
|
IContactData[] |
resolveValidEmailAddress(java.lang.String emailAddress)
Tells LLworkplace the possible external application address entries found for the email-address
|
boolean |
sendOrSaveEmail(IEmailData emailData,
boolean sendImmediately)
Saves or sends an unsent (only saved) email
|
java.lang.String |
setEmailUnread(java.lang.String emailId,
boolean unread)
Sets the email to unread/read.
|
void |
setSpamMarker(java.lang.String spamMarker)
Tells LLworkplace if the external application can open the email in its own email editor
|
getApplicationIcon, getApplicationIcon60x60, getApplicationKey, getApplicationName, getApplicationVersion
canAutocreateUnconfiguredInstance, checkConnection, cleanUp, getAdditionalBuildingInfo, getExternalManager16x16Icon, getExternalManagerDescription, getInstanceName, getManagerName, getPropertyFillingDescription, getPropertyItemDescriptions, getStoresCount, getVersion, init, isCheckConnection, isCompletelyConfigured, isOnlyOneInstanceAllowed, openExternalConfigDialog, setExternalContext, useExternalConfigDialog
static final int EMAIL_IMPORTANCE_NORMAL
static final int EMAIL_IMPORTANCE_LOW
static final int EMAIL_IMPORTANCE_HIGH
java.lang.String getEmailAccountName(java.util.Properties props)
void setSpamMarker(java.lang.String spamMarker)
spamMarker
- SPAM-marker that is defined in LLworkplaceboolean hasEmailEditor(java.util.Properties props)
props
- external manager instance propertiesboolean canOpenEmailInExternalEditor(java.util.Properties props, java.lang.String emailId)
props
- external manager instance propertiesemailId
- email unique identifier in the email storeboolean canStoreEmailsWithoutSaving()
IContactData[] resolveValidEmailAddress(java.lang.String emailAddress)
emailAddress
- email address to be checkedboolean createEmail(IEmailData emailData, boolean sendImmediately, boolean openExternal)
emailData
- email datasendImmediately
- if true no visual representation is necessary the email should be immediately stored and deliveredopenExternal
- defines if the email should be opened in an external user interfaceboolean createEmail(IEmailData emailData, java.lang.String storeId, boolean sendImmediately, boolean openExternal)
emailData
- email datastoreId
- the unique identifier of the email store in the external email applicationsendImmediately
- if true no visual representation is necessary the email should be immediately stored and deliveredopenExternal
- defines if the email should be opened in an external user interfaceboolean openEmail(java.lang.String emailId)
emailId
- email unique identifier in the email storeboolean sendOrSaveEmail(IEmailData emailData, boolean sendImmediately)
emailData
- The email data to be sent. The email identifier must be filled.sendImmediately
- The email data should be sent otherwise storedboolean forwardEmail(java.lang.String emailId)
emailId
- of the email unique identifier of the email to be forwarded in the email storeboolean forwardEmail(IEmailData emailData, boolean sendImmediately, boolean openExternal)
emailData
- email data to be forwarded. The emailId of the email to be forwarded must be set correctly for the email integrator to find the correct context.sendImmediately
- if true no visual representation is necessary the email should be immediately stored and deliveredopenExternal
- defines if the email should be opened in an external user interfaceboolean replyEmail(java.lang.String emailId, boolean replyAll)
emailId
- email unique identifier of the email to be replied in the email storereplyAll
- declares if the reply of the email should be sent to all participants of the email.boolean replyEmail(IEmailData emailData, boolean replyAll, boolean sendImmediately, boolean openExternal)
emailData
- email data to be replied. The emailId of the email to be replied must be set correctly for the email integrator to find the correct context.replyAll
- declares if the reply of the email should be sent to all participants of the email.sendImmediately
- if true no visual representation is necessary the email should be immediately stored and deliveredopenExternal
- defines if the email should be opened in an external user interfacevoid deleteEmails(java.lang.String storeId, java.lang.String[] emailIDs)
storeId
- the unique identifier of the store in the email applicationemailIDs
- an array of email-IDs to be deletedvoid deleteEmailsUntil(java.lang.String storeId, java.util.Date untilDate)
storeId
- the unique identifier of the store in the email applicationuntilDate
- the date until the emails should be deletedIEmailData[] getAllEmails(java.lang.String storeId, java.lang.String saveAsPath, boolean loadBody, long loadFromInMillis, java.util.Date loadUntil)
storeId
- the unique identifier of the store in the email applicationsaveAsPath
- the path (directory) into which the emails should be saved physically.loadBody
- declares if the email main content should be loaded and put into the email dataloadFromInMillis
- earliest time to loadloadUntil
- latest time to loadIEmailData getReloadEmail(java.lang.String emailId, java.lang.String saveAsPath)
emailId
- email unique identifier in the email storesaveAsPath
- the path (directory) into which the emails should be saved physically.IEmailData getEmailFromEML(java.io.InputStream emlInputStream)
emlInputStream
- eml content as an input streamboolean isEmailUnread(java.lang.String emailId)
emailId
- email unique identifier in the email storejava.lang.String setEmailUnread(java.lang.String emailId, boolean unread)
emailId
- email unique identifier in the email storeunread
- declares if the read status has to be set to read or unreadIEmailStore[] getAvailableEmailIntegratorStores()
boolean isRfcConform()