public class MailImpl extends ClientImpl implements BaseMail, Serializable
Modifier and Type | Method and Description |
---|---|
void |
addMailAccount(MailAccount mailAccount)
Add mail account.
|
Mail |
copyMail(String uuid,
String dstId,
String newName)
Copy mail mail.
|
Document |
createAttachment(String uuid,
String docName,
InputStream is)
Create attachment document.
|
void |
createMailFilter(long mailAccountId,
MailFilter mailFilter)
Create mail filter.
|
void |
createMailRule(long filterId,
MailFilterRule rule)
Create mail rule.
|
WizardNode |
createWizardMail(String uuid,
String title,
InputStream is,
String type)
Create wizard mail wizard node.
|
void |
deleteAttachment(String uuid,
String docId)
Delete attachment.
|
void |
deleteMail(String uuid)
Delete mail.
|
void |
deleteMailAccount(long mailAccountId)
Delete mail account.
|
void |
deleteMailFilter(long mailFilterId)
Delete mail filter.
|
void |
deleteMailRule(long ruleId)
Delete mail rule.
|
Mail |
extendedMailCopy(String uuid,
String dstId,
boolean categories,
boolean keywords,
boolean propertyGroups,
boolean notes,
boolean wiki,
boolean security,
String newName)
Deprecated.
As of sdk4j 3.13, replaced by
extendedMailCopy(String, String, boolean, boolean, boolean, boolean, boolean, String) |
Mail |
extendedMailCopy(String uuid,
String dstId,
boolean categories,
boolean keywords,
boolean propertyGroups,
boolean notes,
boolean security,
String newName)
Extended mail copy mail.
|
void |
forwardEmail(String uuid,
List<String> users,
List<String> roles,
List<String> mails,
String message)
Forward email.
|
List<Document> |
getAttachments(String uuid)
Gets attachments.
|
List<MailAccount> |
getMailAccounts()
Gets mail accounts.
|
List<Mail> |
getMailChildren(String uuid)
Gets mail children.
|
InputStream |
getMailContent(String uuid)
Gets mail content.
|
List<MailFilterRule> |
getMailFilterRules(long filterId)
Gets mail filter rules.
|
MailServerMessages |
getMailMessages(long accountId,
long start)
Gets mail messages.
|
String |
getMailPath(String uuid)
Gets mail path.
|
Mail |
getMailProperties(String uuid)
Gets mail properties.
|
NodeList |
getMailsPaginated(String context,
int offset,
int limit,
MailFilterQuery filter,
String orderColumn,
boolean orderAsc)
Gets mails paginated.
|
InputStream |
getMailThumbnail(String uuid,
ThumbnailType type)
Gets mail thumbnail.
|
InputStream |
getPdf(String uuid)
Gets pdf.
|
Mail |
importEml(String uuid,
String title,
InputStream is)
Import eml mail.
|
void |
importMailMessages(long mailAccountId,
List<Long> messageIds)
Import mail messages.
|
Mail |
importMsg(String uuid,
String title,
InputStream is)
Import msg mail.
|
boolean |
isValidMail(String uuid)
Is valid mail boolean.
|
void |
moveMail(String uuid,
String dstId)
Move mail.
|
void |
purgeMail(String uuid)
Purge mail.
|
void |
renameMail(String uuid,
String newName)
Rename mail.
|
Document |
saveMailAsPdf(String uuid,
String newName)
Save mail as pdf document.
|
void |
sendMail(List<String> recipients,
String subject,
String body)
Send mail.
|
Mail |
sendMailWithAttachments(List<String> to,
List<String> cc,
List<String> bcc,
List<String> replyTo,
String subject,
String body,
List<String> docsId,
String uuid)
Send mail with attachments mail.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
void |
setMailDescription(String uuid,
String description)
Sets mail description.
|
void |
setMailDispositionStage(String uuid,
long stage)
Sets mail disposition stage.
|
void |
setMailNodeClass(String uuid,
long ncId)
Sets mail node class.
|
void |
setMailTitle(String uuid,
String title)
Sets mail title.
|
void |
testMailAccount(MailAccount mailAccount)
Test mail account.
|
void |
updateMailAccount(MailAccount mailAccount)
Update mail account.
|
void |
updateMailFilter(MailFilter mailFilter)
Update mail filter.
|
void |
updateMailRule(MailFilterRule rule)
Update mail rule.
|
getClient, resource, resource
public MailImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public Mail getMailProperties(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseMail
getMailProperties
in interface BaseMail
uuid
- the uuidAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void deleteMail(String uuid) throws AutomationException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseMail
deleteMail
in interface BaseMail
uuid
- the uuidAutomationException
- the automation exceptionLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void renameMail(String uuid, String newName) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, UnknownException, WebserviceException
BaseMail
renameMail
in interface BaseMail
uuid
- the uuidnewName
- the new namePathNotFoundException
- the path not found exceptionItemExistsException
- the item exists exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void moveMail(String uuid, String dstId) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, FilePlanCatalogManagerException, AutomationException, VersionException, LockException, UnknownException, WebserviceException
BaseMail
moveMail
in interface BaseMail
uuid
- the uuiddstId
- the dst idPathNotFoundException
- the path not found exceptionItemExistsException
- the item exists exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionFilePlanCatalogManagerException
- the file plan catalog manager exceptionAutomationException
- the automation exceptionVersionException
- the version exceptionLockException
- the lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<Mail> getMailChildren(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseMail
getMailChildren
in interface BaseMail
uuid
- the uuidAccessDeniedException
- the access denied exceptionPathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic boolean isValidMail(String uuid) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseMail
isValidMail
in interface BaseMail
uuid
- the uuidPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic String getMailPath(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseMail
getMailPath
in interface BaseMail
uuid
- the uuidAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic Document createAttachment(String uuid, String docName, InputStream is) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseMail
createAttachment
in interface BaseMail
uuid
- the uuiddocName
- the doc nameis
- the isUnsupportedMimeTypeException
- the unsupported mime type exceptionFileSizeExceededException
- the file size exceeded exceptionUserQuotaExceededException
- the user quota exceeded exceptionVirusDetectedException
- the virus detected exceptionItemExistsException
- the item exists exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionExtensionException
- the extension exceptionAutomationException
- the automation exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void deleteAttachment(String uuid, String docId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseMail
deleteAttachment
in interface BaseMail
uuid
- the uuiddocId
- the doc idLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<Document> getAttachments(String uuid) throws RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseMail
getAttachments
in interface BaseMail
uuid
- the uuidRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic void purgeMail(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseMail
purgeMail
in interface BaseMail
uuid
- the uuidLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic Mail copyMail(String uuid, String dstId, String newName) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, AutomationException, DatabaseException, UserQuotaExceededException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseMail
copyMail
in interface BaseMail
uuid
- the uuiddstId
- the dst idnewName
- the new namePathNotFoundException
- the path not found exceptionItemExistsException
- the item exists exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionAutomationException
- the automation exceptionDatabaseException
- the database exceptionUserQuotaExceededException
- the user quota exceeded exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic Mail extendedMailCopy(String uuid, String dstId, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean security, String newName) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseMail
extendedMailCopy
in interface BaseMail
uuid
- the uuiddstId
- the dst idcategories
- the categorieskeywords
- the keywordspropertyGroups
- the property groupsnotes
- the notessecurity
- the securitynewName
- the new nameItemExistsException
- the item exists exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUserQuotaExceededException
- the user quota exceeded exceptionAutomationException
- the automation exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exception@Deprecated public Mail extendedMailCopy(String uuid, String dstId, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean wiki, boolean security, String newName) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
extendedMailCopy(String, String, boolean, boolean, boolean, boolean, boolean, String)
extendedMailCopy
in interface BaseMail
uuid
- the uuiddstId
- the dst idcategories
- the categorieskeywords
- the keywordspropertyGroups
- the property groupsnotes
- the noteswiki
- the wikisecurity
- the securitynewName
- the new nameItemExistsException
- the item exists exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUserQuotaExceededException
- the user quota exceeded exceptionAutomationException
- the automation exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionextendedMailCopy(String, String, boolean, boolean, boolean, boolean, boolean, String)
public void setMailNodeClass(String uuid, long ncId) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseMail
setMailNodeClass
in interface BaseMail
uuid
- the uuidncId
- the nc idVersionException
- the version exceptionLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void setMailDispositionStage(String uuid, long stage) throws PathNotFoundException, AccessDeniedException, DatabaseException, WebserviceException, UnknownException
BaseMail
setMailDispositionStage
in interface BaseMail
uuid
- the uuidstage
- the stagePathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic void setMailTitle(String uuid, String title) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseMail
setMailTitle
in interface BaseMail
uuid
- the uuidtitle
- the titleVersionException
- the version exceptionLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic Mail sendMailWithAttachments(List<String> to, List<String> cc, List<String> bcc, List<String> replyTo, String subject, String body, List<String> docsId, String uuid) throws AccessDeniedException, PathNotFoundException, ItemExistsException, AutomationException, VirusDetectedException, UserQuotaExceededException, UnsupportedMimeTypeException, FileSizeExceededException, RepositoryException, DatabaseException, UnknownException, WebserviceException, IOException
BaseMail
sendMailWithAttachments
in interface BaseMail
to
- the tocc
- the ccbcc
- the bccreplyTo
- the reply tosubject
- the subjectbody
- the bodydocsId
- the docs iduuid
- the uuidAccessDeniedException
- the access denied exceptionPathNotFoundException
- the path not found exceptionItemExistsException
- the item exists exceptionAutomationException
- the automation exceptionVirusDetectedException
- the virus detected exceptionUserQuotaExceededException
- the user quota exceeded exceptionUnsupportedMimeTypeException
- the unsupported mime type exceptionFileSizeExceededException
- the file size exceeded exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionIOException
- the io exceptionpublic Mail importEml(String uuid, String title, InputStream is) throws MessagingException, PathNotFoundException, ItemExistsException, VirusDetectedException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, UnsupportedMimeTypeException, FileSizeExceededException, ExtensionException, AutomationException, UnknownException, WebserviceException, IOException
BaseMail
importEml
in interface BaseMail
uuid
- the uuidtitle
- the titleis
- the isMessagingException
- the messaging exceptionPathNotFoundException
- the path not found exceptionItemExistsException
- the item exists exceptionVirusDetectedException
- the virus detected exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUserQuotaExceededException
- the user quota exceeded exceptionUnsupportedMimeTypeException
- the unsupported mime type exceptionFileSizeExceededException
- the file size exceeded exceptionExtensionException
- the extension exceptionAutomationException
- the automation exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionIOException
- the io exceptionpublic Mail importMsg(String uuid, String title, InputStream is) throws MessagingException, PathNotFoundException, ItemExistsException, VirusDetectedException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, UnsupportedMimeTypeException, FileSizeExceededException, ExtensionException, AutomationException, UnknownException, WebserviceException, IOException
BaseMail
importMsg
in interface BaseMail
uuid
- the uuidtitle
- the titleis
- the isMessagingException
- the messaging exceptionPathNotFoundException
- the path not found exceptionItemExistsException
- the item exists exceptionVirusDetectedException
- the virus detected exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUserQuotaExceededException
- the user quota exceeded exceptionUnsupportedMimeTypeException
- the unsupported mime type exceptionFileSizeExceededException
- the file size exceeded exceptionExtensionException
- the extension exceptionAutomationException
- the automation exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionIOException
- the io exceptionpublic void sendMail(List<String> recipients, String subject, String body) throws AccessDeniedException, UnknownException, WebserviceException, IOException
BaseMail
sendMail
in interface BaseMail
recipients
- the recipientssubject
- the subjectbody
- the bodyAccessDeniedException
- the access denied exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionIOException
- the io exceptionpublic void setMailDescription(String uuid, String description) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException
BaseMail
setMailDescription
in interface BaseMail
uuid
- the uuiddescription
- the descriptionVersionException
- the version exceptionLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic InputStream getMailContent(String uuid) throws RepositoryException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknownException, WebserviceException
BaseMail
getMailContent
in interface BaseMail
uuid
- the uuidRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic WizardNode createWizardMail(String uuid, String title, InputStream is, String type) throws PathNotFoundException, ItemExistsException, VirusDetectedException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, AutomationException, UnknownException, WebserviceException, MessagingException, UnsupportedMimeTypeException, FileSizeExceededException, ExtensionException, IOException
BaseMail
createWizardMail
in interface BaseMail
uuid
- the uuidtitle
- the titleis
- the istype
- the typePathNotFoundException
- the path not found exceptionItemExistsException
- the item exists exceptionVirusDetectedException
- the virus detected exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUserQuotaExceededException
- the user quota exceeded exceptionAutomationException
- the automation exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionMessagingException
- the messaging exceptionUnsupportedMimeTypeException
- the unsupported mime type exceptionFileSizeExceededException
- the file size exceeded exceptionExtensionException
- the extension exceptionIOException
- the io exceptionpublic InputStream getMailThumbnail(String uuid, ThumbnailType type) throws PathNotFoundException, AccessDeniedException, ConversionException, AutomationException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseMail
getMailThumbnail
in interface BaseMail
uuid
- the uuidtype
- the typePathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionConversionException
- the conversion exceptionAutomationException
- the automation exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic NodeList getMailsPaginated(String context, int offset, int limit, MailFilterQuery filter, String orderColumn, boolean orderAsc) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseMail
getMailsPaginated
in interface BaseMail
context
- the contextoffset
- the offsetlimit
- the limitfilter
- the filterorderColumn
- the order columnorderAsc
- the order ascAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<MailAccount> getMailAccounts() throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseMail
getMailAccounts
in interface BaseMail
AccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic MailServerMessages getMailMessages(long accountId, long start) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseMail
getMailMessages
in interface BaseMail
accountId
- the account idstart
- the startAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void addMailAccount(MailAccount mailAccount) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseMail
addMailAccount
in interface BaseMail
mailAccount
- the mail accountAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void updateMailAccount(MailAccount mailAccount) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseMail
updateMailAccount
in interface BaseMail
mailAccount
- the mail accountAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void testMailAccount(MailAccount mailAccount) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseMail
testMailAccount
in interface BaseMail
mailAccount
- the mail accountAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void deleteMailAccount(long mailAccountId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseMail
deleteMailAccount
in interface BaseMail
mailAccountId
- the mail account idAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void importMailMessages(long mailAccountId, List<Long> messageIds) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseMail
importMailMessages
in interface BaseMail
mailAccountId
- the mail account idmessageIds
- the message idsAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void createMailFilter(long mailAccountId, MailFilter mailFilter) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseMail
createMailFilter
in interface BaseMail
mailAccountId
- the mail account idmailFilter
- the mail filterAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void updateMailFilter(MailFilter mailFilter) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseMail
updateMailFilter
in interface BaseMail
mailFilter
- the mail filterAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void deleteMailFilter(long mailFilterId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseMail
deleteMailFilter
in interface BaseMail
mailFilterId
- the mail filter idAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void createMailRule(long filterId, MailFilterRule rule) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseMail
createMailRule
in interface BaseMail
filterId
- the filter idrule
- the ruleAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void updateMailRule(MailFilterRule rule) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseMail
updateMailRule
in interface BaseMail
rule
- the ruleAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void deleteMailRule(long ruleId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseMail
deleteMailRule
in interface BaseMail
ruleId
- the rule idAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<MailFilterRule> getMailFilterRules(long filterId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseMail
getMailFilterRules
in interface BaseMail
filterId
- the filter idAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void forwardEmail(String uuid, List<String> users, List<String> roles, List<String> mails, String message) throws WebserviceException, AccessDeniedException, RepositoryException, LockException, PathNotFoundException, DatabaseException, UnknownException, VersionException, PromotedAsRecordLockException
BaseMail
forwardEmail
in interface BaseMail
uuid
- the uuidusers
- the usersroles
- the rolesmails
- the mailsmessage
- the messageWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionVersionException
- the version exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionpublic InputStream getPdf(String uuid) throws PathNotFoundException, AccessDeniedException, ConversionException, AutomationException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseMail
getPdf
in interface BaseMail
uuid
- the uuidPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionConversionException
- the conversion exceptionAutomationException
- the automation exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic Document saveMailAsPdf(String uuid, String newName) throws RepositoryException, AccessDeniedException, PathNotFoundException, DatabaseException, ConversionException, UnsupportedMimeTypeException, VirusDetectedException, ItemExistsException, AutomationException, PromotedAsRecordLockException, PrincipalAdapterException, UnknownException, WebserviceException
BaseMail
saveMailAsPdf
in interface BaseMail
uuid
- the uuidnewName
- the new nameRepositoryException
- the repository exceptionAccessDeniedException
- the access denied exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionConversionException
- the conversion exceptionUnsupportedMimeTypeException
- the unsupported mime type exceptionVirusDetectedException
- the virus detected exceptionItemExistsException
- the item exists exceptionAutomationException
- the automation exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionPrincipalAdapterException
- the principal adapter exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionCopyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.