public class MailService extends Object
Constructor and Description |
---|
MailService() |
Modifier and Type | Method and Description |
---|---|
Mail |
create(Mail mail) |
void |
delete(String mailId) |
MailList |
getChildren(String mailId) |
String |
getPath(String uuid) |
Mail |
getProperties(String mailId) |
Mail |
importEml(List<org.apache.cxf.jaxrs.ext.multipart.Attachment> atts) |
Mail |
importMsg(List<org.apache.cxf.jaxrs.ext.multipart.Attachment> atts) |
boolean |
isValid(String mailId) |
void |
move(String mailId,
String dstId) |
Mail |
rename(String mailId,
String newName) |
@Path(value="/create") public Mail create(Mail mail) throws GenericException
GenericException
@Path(value="/getProperties") public Mail getProperties(String mailId) throws GenericException
GenericException
@Path(value="/delete") public void delete(String mailId) throws GenericException
GenericException
@Path(value="/rename") public Mail rename(String mailId, String newName) throws GenericException
GenericException
@Path(value="/move") public void move(String mailId, String dstId) throws GenericException
GenericException
@Path(value="/getChildren") public MailList getChildren(String mailId) throws GenericException
GenericException
@Path(value="/isValid") public boolean isValid(String mailId) throws GenericException
GenericException
@Path(value="/getPath/{uuid}") public String getPath(String uuid) throws GenericException
GenericException
@Path(value="/importEml") public Mail importEml(List<org.apache.cxf.jaxrs.ext.multipart.Attachment> atts) throws RepositoryException, AccessDeniedException, PathNotFoundException, DatabaseException, IOException, AutomationException, UserQuotaExceededException, FileSizeExceededException, ExtensionException, UnsupportedMimeTypeException, ItemExistsException, VirusDetectedException, javax.mail.MessagingException
@Path(value="/importMsg") public Mail importMsg(List<org.apache.cxf.jaxrs.ext.multipart.Attachment> atts) throws RepositoryException, AccessDeniedException, PathNotFoundException, DatabaseException, IOException, AutomationException, UserQuotaExceededException, FileSizeExceededException, ExtensionException, UnsupportedMimeTypeException, ItemExistsException, VirusDetectedException, javax.mail.MessagingException
Copyright © 2018 Open Knowledge Management System S.L.. All rights reserved.