Package com.openkm.sdk4j.impl
Class MailImpl
- java.lang.Object
-
- com.openkm.sdk4j.impl.ClientImpl
-
- com.openkm.sdk4j.impl.MailImpl
-
- All Implemented Interfaces:
BaseMail,Serializable
public class MailImpl extends ClientImpl implements BaseMail, Serializable
MailImpl- Author:
- sochoa
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete 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.NodeListgetMailsPaginated(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.protected voidsetAuthorizationToken(String authorizationToken)setAuthenticationTokenvoidsetDescription(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.-
Methods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
-
-
-
Constructor Detail
-
MailImpl
public MailImpl(String host)
MailImpl
-
-
Method Detail
-
setAuthorizationToken
protected void setAuthorizationToken(String authorizationToken)
setAuthenticationToken
-
getProperties
public Mail getProperties(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseMailGets mail properties.- Specified by:
getPropertiesin interfaceBaseMail- 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
public void delete(String uuid) throws AutomationException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseMailDelete mail.- Specified by:
deletein interfaceBaseMail- 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
public void rename(String uuid, String newName) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, UnknownException, WebserviceException
Description copied from interface:BaseMailRename mail.- Specified by:
renamein interfaceBaseMail- 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
public void move(String uuid, String dstId) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, FilePlanCatalogManagerException, AutomationException, VersionException, LockException, UnknownException, WebserviceException
Description copied from interface:BaseMailMove mail.- Specified by:
movein interfaceBaseMail- 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
public List<Mail> getChildren(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseMailGets mail children.- Specified by:
getChildrenin interfaceBaseMail- 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
public boolean isValid(String uuid) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseMailIs valid mail boolean.- Specified by:
isValidin interfaceBaseMail- 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
public String getPath(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseMailGets mail path.- Specified by:
getPathin interfaceBaseMail- 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
public Document createAttachment(String uuid, String docName, InputStream is) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseMailCreate attachment document.- Specified by:
createAttachmentin interfaceBaseMail- 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
public void deleteAttachment(String uuid, String docId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseMailDelete attachment.- Specified by:
deleteAttachmentin interfaceBaseMail- 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
public List<Document> getAttachments(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseMailGets attachments.- Specified by:
getAttachmentsin interfaceBaseMail- 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
public void purge(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseMailPurge mail.- Specified by:
purgein interfaceBaseMail- 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
public Mail copy(String uuid, String dstId, String newName) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, AutomationException, DatabaseException, UserQuotaExceededException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseMailCopy mail mail.- Specified by:
copyin interfaceBaseMail- 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
public 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
Description copied from interface:BaseMailExtended mail copy mail.- Specified by:
extendedCopyin interfaceBaseMail- 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
public void setNodeClass(String uuid, long nodeClass) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseMailSets mail node class.- Specified by:
setNodeClassin interfaceBaseMail- 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
public void setDispositionStage(String uuid, long stage) throws PathNotFoundException, AccessDeniedException, DatabaseException, WebserviceException, UnknownException
Description copied from interface:BaseMailSets mail disposition stage.- Specified by:
setDispositionStagein interfaceBaseMail- 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
public void setTitle(String uuid, String title) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseMailSets mail title.- Specified by:
setTitlein interfaceBaseMail- 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
public 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
Description copied from interface:BaseMailSend mail with attachments mail.- Specified by:
sendMailWithAttachmentsin interfaceBaseMail- 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
public Mail importEml(String uuid, String title, InputStream is) throws MessagingException, PathNotFoundException, ItemExistsException, VirusDetectedException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, UnsupportedMimeTypeException, FileSizeExceededException, ExtensionException, AutomationException, UnknownException, WebserviceException, IOException
Description copied from interface:BaseMailImport eml mail.- Specified by:
importEmlin interfaceBaseMail- 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
public Mail importMsg(String uuid, String title, InputStream is) throws MessagingException, PathNotFoundException, ItemExistsException, VirusDetectedException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, UnsupportedMimeTypeException, FileSizeExceededException, ExtensionException, AutomationException, UnknownException, WebserviceException, IOException
Description copied from interface:BaseMailImport msg mail.- Specified by:
importMsgin interfaceBaseMail- 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
public void sendMail(List<String> to, String subject, String body) throws AccessDeniedException, UnknownException, WebserviceException, IOException
Description copied from interface:BaseMailSend mail.- Specified by:
sendMailin interfaceBaseMail- Parameters:
to- the recipientssubject- the subjectbody- the body- Throws:
AccessDeniedException- the access denied exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exceptionIOException- the io exception
-
sendMail
public void sendMail(String from, List<String> to, String subject, String body) throws AccessDeniedException, UnknownException, WebserviceException, IOException
Description copied from interface:BaseMailSend mail.- Specified by:
sendMailin interfaceBaseMail- 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
-
setDescription
public void setDescription(String uuid, String description) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException
Description copied from interface:BaseMailSets mail description.- Specified by:
setDescriptionin interfaceBaseMail- 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
public InputStream getContent(String uuid) throws RepositoryException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseMailGets mail content.- Specified by:
getContentin interfaceBaseMail- 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
public InputStream getThumbnail(String uuid, ThumbnailType type) throws PathNotFoundException, AccessDeniedException, ConversionException, AutomationException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseMailGets mail thumbnail.- Specified by:
getThumbnailin interfaceBaseMail- 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
public NodeList getMailsPaginated(String context, int offset, int limit, MailFilterQuery filter, String orderColumn, boolean orderAsc) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseMailGets mails paginated.- Specified by:
getMailsPaginatedin interfaceBaseMail- 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
public 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
Description copied from interface:BaseMailCreate wizard mail wizard node.- Specified by:
createWizardin interfaceBaseMail- 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
public List<MailAccount> getAccounts() throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseMailGets mail accounts.- Specified by:
getAccountsin interfaceBaseMail- 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
public MailServerMessages getMailMessages(long accountId, long start) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseMailGets mail messages.- Specified by:
getMailMessagesin interfaceBaseMail- 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
public void addAccount(MailAccount mailAccount) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Description copied from interface:BaseMailAdd mail account.- Specified by:
addAccountin interfaceBaseMail- 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
public void updateAccount(MailAccount mailAccount) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Description copied from interface:BaseMailUpdate mail account.- Specified by:
updateAccountin interfaceBaseMail- 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
public void testAccount(MailAccount mailAccount) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Description copied from interface:BaseMailTest mail account.- Specified by:
testAccountin interfaceBaseMail- 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
public void deleteAccount(long mailAccountId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceExceptionDescription copied from interface:BaseMailDelete mail account.- Specified by:
deleteAccountin interfaceBaseMail- 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
public void importMessages(long mailAccountId, List<Long> messageIds) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceExceptionDescription copied from interface:BaseMailImport mail messages.- Specified by:
importMessagesin interfaceBaseMail- 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
public void createFilter(long mailAccountId, MailFilter mailFilter) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceExceptionDescription copied from interface:BaseMailCreate mail filter.- Specified by:
createFilterin interfaceBaseMail- 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
public void updateFilter(MailFilter mailFilter) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Description copied from interface:BaseMailUpdate mail filter.- Specified by:
updateFilterin interfaceBaseMail- 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
public void deleteFilter(long mailFilterId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceExceptionDescription copied from interface:BaseMailDelete mail filter.- Specified by:
deleteFilterin interfaceBaseMail- 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
public void createRule(long filterId, MailFilterRule rule) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceExceptionDescription copied from interface:BaseMailCreate mail rule.- Specified by:
createRulein interfaceBaseMail- 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
public void updateRule(MailFilterRule rule) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Description copied from interface:BaseMailUpdate mail rule.- Specified by:
updateRulein interfaceBaseMail- 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
public void deleteRule(long ruleId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceExceptionDescription copied from interface:BaseMailDelete mail rule.- Specified by:
deleteRulein interfaceBaseMail- 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
public List<MailFilterRule> getFilterRules(long filterId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Description copied from interface:BaseMailGets mail filter rules.- Specified by:
getFilterRulesin interfaceBaseMail- 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
public 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
Description copied from interface:BaseMailForward email.- Specified by:
forwardEmailin interfaceBaseMail- 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
public String getExtractedText(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseMailObtain the mail extracted text.- Specified by:
getExtractedTextin interfaceBaseMail- 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
public InputStream getPdf(String uuid) throws PathNotFoundException, AccessDeniedException, ConversionException, AutomationException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseMailGets pdf.- Specified by:
getPdfin interfaceBaseMail- 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
public Document saveAsPdf(String uuid, String newName, boolean propertyGroups, boolean security) throws RepositoryException, AccessDeniedException, PathNotFoundException, DatabaseException, ConversionException, UnsupportedMimeTypeException, VirusDetectedException, ItemExistsException, AutomationException, PromotedAsRecordLockException, PrincipalAdapterException, UnknownException, WebserviceException
Description copied from interface:BaseMailSave mail as pdf document.- Specified by:
saveAsPdfin interfaceBaseMail- 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
-
-