public interface MailService
| Modifier and Type | Method and Description |
|---|---|
Store |
getConnectedStore(String name)
Returns a connected store for this factory.
|
Store |
getConnectedStore(String name,
Map<String,Object> context) |
Transport |
getConnectedTransport(String name)
Returns a connected transport for this factory.
|
Transport |
getConnectedTransport(String name,
Map<String,Object> context) |
PropertiesFetcher |
getFetcher(String name) |
MailBoxActions |
getMailBoxActions(String factoryName,
String folderName)
Returns an actions pipe configured with this factory.
|
MailBoxActions |
getMailBoxActions(String factoryName,
String folderName,
Map<String,Object> context) |
MessageActionPipe |
getPipe(String name)
Gets the pipe of actions for given name
|
Session |
getSession(String name)
Returns a session for this factory, using the context to find the session
or the default if no context is provided.
|
Session |
getSession(String name,
Map<String,Object> context) |
void |
sendMail(String text,
String subject,
String factory,
Address[] recipients)
Sends a mail using the setting of this factory to this recipients.
|
void |
sendMail(String text,
String subject,
String factory,
Address[] recipients,
Map<String,Object> context) |
MailBoxActions getMailBoxActions(String factoryName, String folderName) throws Exception
The actions will start from this folder. The context is be passed to the sessionFactory to be able to find the session. Use the default session if context is not used.
ExceptionMailBoxActions getMailBoxActions(String factoryName, String folderName, Map<String,Object> context) throws Exception
ExceptionMessageActionPipe getPipe(String name)
void sendMail(String text, String subject, String factory, Address[] recipients) throws Exception
The context is passed to the sessionFactory to be able to find the session. Use the default session if context is not used. This template is used, replacing variables with the ones from this variables.
Exceptionvoid sendMail(String text, String subject, String factory, Address[] recipients, Map<String,Object> context) throws Exception
ExceptionStore getConnectedStore(String name) throws Exception
name - The name of the factory that provides the properties.ExceptionStore getConnectedStore(String name, Map<String,Object> context) throws Exception
ExceptionTransport getConnectedTransport(String name) throws Exception
name - the name of the factory that provides the properties.ExceptionTransport getConnectedTransport(String name, Map<String,Object> context) throws Exception
ExceptionSession getSession(String name) throws Exception
ExceptionSession getSession(String name, Map<String,Object> context) throws Exception
ExceptionPropertiesFetcher getFetcher(String name) throws Exception
ExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.