Package com.openkm.sdk4j.definition
Interface BaseMail
-
- All Known Implementing Classes:
MailImpl
public interface BaseMailBaseMail- Author:
- jllort
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAccount(MailAccount mailAccount)Add mail account.Mailcopy(String uuid, String dstId, String newName)Copy mail mail.DocumentcreateAttachment(String uuid, String docName, InputStream is)Create attachment document.voidcreateFilter(long mailAccountId, MailFilter mailFilter)Create mail filter.voidcreateRule(long filterId, MailFilterRule rule)Create mail rule.WizardNodecreateWizard(String uuid, String title, InputStream is, String type)Create wizard mail wizard node.voiddelete(String uuid)Delete mail.voiddeleteAccount(long mailAccountId)Delete mail account.voiddeleteAttachment(String uuid, String docId)Delete attachment.voiddeleteFilter(long mailFilterId)Delete mail filter.voiddeleteRule(long ruleId)Delete mail rule.MailextendedCopy(String uuid, String dstId, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean security, String newName)Extended mail copy mail.voidforwardEmail(String uuid, List<String> users, List<String> roles, List<String> mails, String message)Forward email.List<MailAccount>getAccounts()Gets mail accounts.List<Document>getAttachments(String uuid)Gets attachments.List<Mail>getChildren(String uuid)Gets mail children.InputStreamgetContent(String uuid)Gets mail content.StringgetExtractedText(String uuid)Obtain the mail extracted text.List<MailFilterRule>getFilterRules(long filterId)Gets mail filter rules.MailServerMessagesgetMailMessages(long accountId, long start)Gets mail messages.SimpleNodeBaseResultSetgetMailsPaginated(String context, int offset, int limit, MailFilterQuery filter, String orderColumn, boolean orderAsc)Gets mails paginated.StringgetPath(String uuid)Gets mail path.InputStreamgetPdf(String uuid)Gets pdf.MailgetProperties(String uuid)Gets mail properties.InputStreamgetThumbnail(String uuid, ThumbnailType type)Gets mail thumbnail.MailimportEml(String uuid, String title, InputStream is)Import eml mail.voidimportMessages(long mailAccountId, List<Long> messageIds)Import mail messages.MailimportMsg(String uuid, String title, InputStream is)Import msg mail.booleanisValid(String uuid)Is valid mail boolean.voidmove(String uuid, String dstId)Move mail.voidpurge(String uuid)Purge mail.voidrename(String uuid, String newName)Rename mail.DocumentsaveAsPdf(String uuid, String newName, boolean propertyGroups, boolean security)Save mail as pdf document.voidsendMail(String from, List<String> to, String subject, String body)Send mail.voidsendMail(List<String> to, String subject, String body)Send mail.MailsendMailWithAttachments(String from, 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.voidsetDescription(String uuid, String description)Sets mail description.voidsetDispositionStage(String uuid, long stage)Sets mail disposition stage.voidsetNodeClass(String uuid, long nodeClass)Sets mail node class.voidsetTitle(String uuid, String title)Sets mail title.voidtestAccount(MailAccount mailAccount)Test mail account.voidupdateAccount(MailAccount mailAccount)Update mail account.voidupdateFilter(MailFilter mailFilter)Update mail filter.voidupdateRule(MailFilterRule rule)Update mail rule.
-
-
-
Method Detail
-
getProperties
Mail getProperties(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Gets mail properties.- Parameters:
uuid- the uuid- Returns:
- the mail properties
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
delete
void delete(String uuid) throws AutomationException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Delete mail.- Parameters:
uuid- the uuid- Throws:
AutomationException- 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 exception
-
rename
void rename(String uuid, String newName) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, UnknownException, WebserviceException
Rename mail.- Parameters:
uuid- the uuidnewName- the new name- Throws:
PathNotFoundException- the path not found exceptionItemExistsException- the item exists exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
move
void move(String uuid, String dstId) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, FilePlanCatalogManagerException, AutomationException, VersionException, LockException, UnknownException, WebserviceException
Move mail.- Parameters:
uuid- the uuiddstId- the dst id- Throws:
PathNotFoundException- 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 exception
-
getChildren
List<Mail> getChildren(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets mail children.- Parameters:
uuid- the uuid- Returns:
- the mail children
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
isValid
boolean isValid(String uuid) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Is valid mail boolean.- Parameters:
uuid- the uuid- Returns:
- the boolean
- Throws:
PathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getPath
String getPath(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets mail path.- Parameters:
uuid- the uuid- Returns:
- the mail path
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
createAttachment
Document createAttachment(String uuid, String docName, InputStream is) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Create attachment document.- Parameters:
uuid- the uuiddocName- the doc nameis- the is- Returns:
- the document
- Throws:
UnsupportedMimeTypeException- 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 exception
-
deleteAttachment
void deleteAttachment(String uuid, String docId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Delete attachment.- Parameters:
uuid- the uuiddocId- the doc id- Throws:
LockException- 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 exception
-
getAttachments
List<Document> getAttachments(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Gets attachments.- Parameters:
uuid- the uuid- Returns:
- the attachments
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
purge
void purge(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Purge mail.- Parameters:
uuid- the uuid- Throws:
LockException- 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 exception
-
copy
Mail copy(String uuid, String dstId, String newName) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, AutomationException, DatabaseException, UserQuotaExceededException, PromotedAsRecordLockException, UnknownException, WebserviceException
Copy mail mail.- Parameters:
uuid- the uuiddstId- the dst idnewName- the new name- Returns:
- the mail
- Throws:
PathNotFoundException- 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 exception
-
extendedCopy
Mail extendedCopy(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
Extended mail copy mail.- Parameters:
uuid- the uuiddstId- the dst idcategories- the categorieskeywords- the keywordspropertyGroups- the property groupsnotes- the notessecurity- the securitynewName- the new name- Returns:
- the mail
- Throws:
ItemExistsException- 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
-
setNodeClass
void setNodeClass(String uuid, long nodeClass) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Sets mail node class.- Parameters:
uuid- the uuidnodeClass- the nc id- Throws:
VersionException- 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 exception
-
setDispositionStage
void setDispositionStage(String uuid, long stage) throws PathNotFoundException, AccessDeniedException, DatabaseException, WebserviceException, UnknownException
Sets mail disposition stage.- Parameters:
uuid- the uuidstage- the stage- Throws:
PathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
setTitle
void setTitle(String uuid, String title) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Sets mail title.- Parameters:
uuid- the uuidtitle- the title- Throws:
VersionException- 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 exception
-
sendMailWithAttachments
Mail sendMailWithAttachments(String from, 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
Send mail with attachments mail.- Parameters:
from- the fromto- the tocc- the ccbcc- the bccreplyTo- the reply tosubject- the subjectbody- the bodydocsId- the docs iduuid- the uuid- Returns:
- the mail
- Throws:
AccessDeniedException- 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 exception
-
importEml
Mail importEml(String uuid, String title, InputStream is) throws MessagingException, PathNotFoundException, ItemExistsException, VirusDetectedException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, UnsupportedMimeTypeException, FileSizeExceededException, ExtensionException, AutomationException, UnknownException, WebserviceException, IOException
Import eml mail.- Parameters:
uuid- the uuidtitle- the titleis- the is- Returns:
- the mail
- Throws:
MessagingException- 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 exception
-
importMsg
Mail importMsg(String uuid, String title, InputStream is) throws MessagingException, PathNotFoundException, ItemExistsException, VirusDetectedException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, UnsupportedMimeTypeException, FileSizeExceededException, ExtensionException, AutomationException, UnknownException, WebserviceException, IOException
Import msg mail.- Parameters:
uuid- the uuidtitle- the titleis- the is- Returns:
- the mail
- Throws:
MessagingException- 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 exception
-
sendMail
void sendMail(String from, List<String> to, String subject, String body) throws AccessDeniedException, UnknownException, WebserviceException, IOException
Send mail.- Parameters:
from- the fromto- the recipientssubject- the subjectbody- the body- Throws:
AccessDeniedException- the access denied exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exceptionIOException- the io exception
-
sendMail
void sendMail(List<String> to, String subject, String body) throws AccessDeniedException, UnknownException, WebserviceException, IOException
Send mail.- Parameters:
to- the recipientssubject- the subjectbody- the body- Throws:
AccessDeniedException- the access denied exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exceptionIOException- the io exception
-
setDescription
void setDescription(String uuid, String description) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException
Sets mail description.- Parameters:
uuid- the uuiddescription- the description- Throws:
VersionException- 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 exception
-
getContent
InputStream getContent(String uuid) throws RepositoryException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknownException, WebserviceException
Gets mail content.- Parameters:
uuid- the uuid- Returns:
- the mail content
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getThumbnail
InputStream getThumbnail(String uuid, ThumbnailType type) throws PathNotFoundException, AccessDeniedException, ConversionException, AutomationException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets mail thumbnail.- Parameters:
uuid- the uuidtype- the type- Returns:
- the mail thumbnail
- Throws:
PathNotFoundException- 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 exception
-
getMailsPaginated
SimpleNodeBaseResultSet getMailsPaginated(String context, int offset, int limit, MailFilterQuery filter, String orderColumn, boolean orderAsc) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Gets mails paginated.- Parameters:
context- the contextoffset- the offsetlimit- the limitfilter- the filterorderColumn- the order columnorderAsc- the order asc- Returns:
- the mails paginated
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
createWizard
WizardNode createWizard(String uuid, String title, InputStream is, String type) throws PathNotFoundException, ItemExistsException, VirusDetectedException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, AutomationException, UnknownException, WebserviceException, MessagingException, UnsupportedMimeTypeException, FileSizeExceededException, ExtensionException, IOException
Create wizard mail wizard node.- Parameters:
uuid- the uuidtitle- the titleis- the istype- the type- Returns:
- the wizard node
- Throws:
PathNotFoundException- 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 exception
-
getAccounts
List<MailAccount> getAccounts() throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Gets mail accounts.- Returns:
- the mail accounts
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getMailMessages
MailServerMessages getMailMessages(long accountId, long start) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Gets mail messages.- Parameters:
accountId- the account idstart- the start- Returns:
- the mail messages
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
addAccount
void addAccount(MailAccount mailAccount) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Add mail account.- Parameters:
mailAccount- the mail account- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
updateAccount
void updateAccount(MailAccount mailAccount) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Update mail account.- Parameters:
mailAccount- the mail account- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
testAccount
void testAccount(MailAccount mailAccount) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Test mail account.- Parameters:
mailAccount- the mail account- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
deleteAccount
void deleteAccount(long mailAccountId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceExceptionDelete mail account.- Parameters:
mailAccountId- the mail account id- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
importMessages
void importMessages(long mailAccountId, List<Long> messageIds) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceExceptionImport mail messages.- Parameters:
mailAccountId- the mail account idmessageIds- the message ids- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
createFilter
void createFilter(long mailAccountId, MailFilter mailFilter) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceExceptionCreate mail filter.- Parameters:
mailAccountId- the mail account idmailFilter- the mail filter- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
updateFilter
void updateFilter(MailFilter mailFilter) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Update mail filter.- Parameters:
mailFilter- the mail filter- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
deleteFilter
void deleteFilter(long mailFilterId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceExceptionDelete mail filter.- Parameters:
mailFilterId- the mail filter id- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
createRule
void createRule(long filterId, MailFilterRule rule) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceExceptionCreate mail rule.- Parameters:
filterId- the filter idrule- the rule- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
updateRule
void updateRule(MailFilterRule rule) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Update mail rule.- Parameters:
rule- the rule- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
deleteRule
void deleteRule(long ruleId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceExceptionDelete mail rule.- Parameters:
ruleId- the rule id- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getFilterRules
List<MailFilterRule> getFilterRules(long filterId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Gets mail filter rules.- Parameters:
filterId- the filter id- Returns:
- the mail filter rules
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
forwardEmail
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
Forward email.- Parameters:
uuid- the uuidusers- the usersroles- the rolesmails- the mailsmessage- the message- Throws:
WebserviceException- 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 exception
-
getExtractedText
String getExtractedText(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Obtain the mail extracted text.- Parameters:
uuid- Node uuid- Returns:
- Returns the text of the document.
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getPdf
InputStream getPdf(String uuid) throws PathNotFoundException, AccessDeniedException, ConversionException, AutomationException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets pdf.- Parameters:
uuid- the uuid- Returns:
- the pdf
- Throws:
PathNotFoundException- 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 exception
-
saveAsPdf
Document saveAsPdf(String uuid, String newName, boolean propertyGroups, boolean security) throws RepositoryException, AccessDeniedException, PathNotFoundException, DatabaseException, ConversionException, UnsupportedMimeTypeException, VirusDetectedException, ItemExistsException, AutomationException, PromotedAsRecordLockException, PrincipalAdapterException, UnknownException, WebserviceException
Save mail as pdf document.- Parameters:
uuid- the uuidnewName- the new namepropertyGroups- the property groupssecurity- the security- Returns:
- the document
- Throws:
RepositoryException- 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 exception
-
-