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, resourcepublic MailImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public Mail getMailProperties(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseMailgetMailProperties in interface BaseMailuuid - 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
BaseMaildeleteMail in interface BaseMailuuid - 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
BaseMailrenameMail in interface BaseMailuuid - 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
BaseMailmoveMail in interface BaseMailuuid - 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
BaseMailgetMailChildren in interface BaseMailuuid - 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
BaseMailisValidMail in interface BaseMailuuid - 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
BaseMailgetMailPath in interface BaseMailuuid - 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
BaseMailcreateAttachment in interface BaseMailuuid - 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
BaseMaildeleteAttachment in interface BaseMailuuid - 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
BaseMailgetAttachments in interface BaseMailuuid - 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
BaseMailpurgeMail in interface BaseMailuuid - 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
BaseMailcopyMail in interface BaseMailuuid - 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
BaseMailextendedMailCopy in interface BaseMailuuid - 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 BaseMailuuid - 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
BaseMailsetMailNodeClass in interface BaseMailuuid - 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
BaseMailsetMailDispositionStage in interface BaseMailuuid - 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
BaseMailsetMailTitle in interface BaseMailuuid - 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
BaseMailsendMailWithAttachments in interface BaseMailto - 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
BaseMailimportEml in interface BaseMailuuid - 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
BaseMailimportMsg in interface BaseMailuuid - 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
BaseMailsendMail in interface BaseMailrecipients - 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
BaseMailsetMailDescription in interface BaseMailuuid - 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
BaseMailgetMailContent in interface BaseMailuuid - 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
BaseMailcreateWizardMail in interface BaseMailuuid - 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
BaseMailgetMailThumbnail in interface BaseMailuuid - 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
BaseMailgetMailsPaginated in interface BaseMailcontext - 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
BaseMailgetMailAccounts in interface BaseMailAccessDeniedException - 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
BaseMailgetMailMessages in interface BaseMailaccountId - 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
BaseMailaddMailAccount in interface BaseMailmailAccount - 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
BaseMailupdateMailAccount in interface BaseMailmailAccount - 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
BaseMailtestMailAccount in interface BaseMailmailAccount - 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
BaseMaildeleteMailAccount in interface BaseMailmailAccountId - 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
BaseMailimportMailMessages in interface BaseMailmailAccountId - 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
BaseMailcreateMailFilter in interface BaseMailmailAccountId - 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
BaseMailupdateMailFilter in interface BaseMailmailFilter - 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
BaseMaildeleteMailFilter in interface BaseMailmailFilterId - 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
BaseMailcreateMailRule in interface BaseMailfilterId - 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
BaseMailupdateMailRule in interface BaseMailrule - 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
BaseMaildeleteMailRule in interface BaseMailruleId - 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
BaseMailgetMailFilterRules in interface BaseMailfilterId - 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
BaseMailforwardEmail in interface BaseMailuuid - 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
BaseMailgetPdf in interface BaseMailuuid - 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
BaseMailsaveMailAsPdf in interface BaseMailuuid - 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 © 2022 Open Knowledge Management System S.L.. All Rights Reserved.