public class MailImpl extends ClientImpl implements BaseMail
Constructor and Description |
---|
MailImpl(String host,
String user,
String password)
MailImpl
|
Modifier and Type | Method and Description |
---|---|
void |
copyMail(String mailId,
String dstId,
String newName) |
Document |
createAttachment(String mailId,
String docName,
InputStream is)
createAttachment
|
Mail |
createMail(Mail mail)
create
|
void |
deleteAttachment(String mailId,
String docId)
deleteAttachment
|
void |
deleteMail(String mailId)
delete
|
void |
extendedMailCopy(String mailId,
String dstId,
boolean categories,
boolean keywords,
boolean propertyGroups,
boolean notes,
boolean wiki) |
List<Document> |
getAttachments(String mailId)
getAttachments
|
List<Mail> |
getMailChildren(String fldId)
getChildren
|
String |
getMailPath(String uuid)
getPath
|
Mail |
getMailProperties(String mailId)
getMailProperties
|
boolean |
isValidMail(String mailId)
isValid
|
void |
moveMail(String mailId,
String dstId)
move
|
void |
purgeMail(String mailId) |
void |
renameMail(String mailId,
String newName)
rename
|
void |
sendMailWithAttachments(List<String> to,
List<String> cc,
List<String> bcc,
String subject,
String body,
List<String> docsId,
String dstId) |
void |
setMailNodeClass(String mailId,
long ncId)
setNodeClass
|
getClient
public Mail createMail(Mail mail) throws PathNotFoundException, ItemExistsException, VirusDetectedException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, AutomationException, UnknowException, WebserviceException
public Mail getMailProperties(String mailId) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getMailProperties
in interface BaseMail
AccessDeniedException
RepositoryException
PathNotFoundException
DatabaseException
UnknowException
WebserviceException
public void deleteMail(String mailId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
deleteMail
in interface BaseMail
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public void purgeMail(String mailId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
purgeMail
in interface BaseMail
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public void renameMail(String mailId, String newName) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
renameMail
in interface BaseMail
PathNotFoundException
ItemExistsException
AccessDeniedException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public void moveMail(String mailId, String dstId) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
moveMail
in interface BaseMail
PathNotFoundException
ItemExistsException
AccessDeniedException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public void copyMail(String mailId, String dstId, String newName) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, IOException, AutomationException, DatabaseException, UserQuotaExceededException, UnknowException, WebserviceException
public void extendedMailCopy(String mailId, String dstId, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean wiki) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, IOException, DatabaseException, UserQuotaExceededException, AutomationException, UnknowException, WebserviceException
public List<Mail> getMailChildren(String fldId) throws PathNotFoundException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getMailChildren
in interface BaseMail
PathNotFoundException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public boolean isValidMail(String mailId) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
isValidMail
in interface BaseMail
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public String getMailPath(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getMailPath
in interface BaseMail
AccessDeniedException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public void setMailNodeClass(String mailId, long ncId) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
public Document createAttachment(String mailId, String docName, InputStream is) throws IOException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknowException, WebserviceException
createAttachment
in interface BaseMail
IOException
UnsupportedMimeTypeException
FileSizeExceededException
UserQuotaExceededException
VirusDetectedException
ItemExistsException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
ExtensionException
AutomationException
UnknowException
WebserviceException
public void deleteAttachment(String mailId, String docId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
deleteAttachment
in interface BaseMail
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public List<Document> getAttachments(String mailId) throws RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getAttachments
in interface BaseMail
RepositoryException
PathNotFoundException
DatabaseException
UnknowException
WebserviceException
public void sendMailWithAttachments(List<String> to, List<String> cc, List<String> bcc, String subject, String body, List<String> docsId, String dstId) throws AccessDeniedException, PathNotFoundException, ItemExistsException, AutomationException, VirusDetectedException, UserQuotaExceededException, UnsupportedMimeTypeException, FileSizeExceededException, RepositoryException, DatabaseException, IOException, UnknowException, WebserviceException
sendMailWithAttachments
in interface BaseMail
AccessDeniedException
PathNotFoundException
ItemExistsException
AutomationException
VirusDetectedException
UserQuotaExceededException
UnsupportedMimeTypeException
FileSizeExceededException
RepositoryException
DatabaseException
IOException
UnknowException
WebserviceException
Copyright © 2015. All rights reserved.