public class MailServiceImpl extends DefaultComponent implements MailService
| Constructor and Description |
|---|
MailServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
javax.mail.Store |
getConnectedStore(String name)
Returns a connected store for this factory.
|
javax.mail.Store |
getConnectedStore(String name,
Map<String,Object> context) |
javax.mail.Transport |
getConnectedTransport(String name)
Returns a connected transport for this factory.
|
javax.mail.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
|
javax.mail.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.
|
javax.mail.Session |
getSession(String name,
Map<String,Object> context) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
sendMail(String text,
String subject,
String factory,
javax.mail.Address[] recipients)
Sends a mail using the setting of this factory to this recipients.
|
void |
sendMail(String text,
String subject,
String factory,
javax.mail.Address[] recipients,
Map<String,Object> context) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtensionpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution in class DefaultComponentExceptionpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution in class DefaultComponentExceptionpublic javax.mail.Store getConnectedStore(String name) throws Exception
MailServicegetConnectedStore in interface MailServicename - The name of the factory that provides the properties.Exceptionpublic javax.mail.Store getConnectedStore(String name, Map<String,Object> context) throws Exception
getConnectedStore in interface MailServiceExceptionpublic javax.mail.Transport getConnectedTransport(String name) throws Exception
MailServicegetConnectedTransport in interface MailServicename - the name of the factory that provides the properties.Exceptionpublic javax.mail.Transport getConnectedTransport(String name, Map<String,Object> context) throws Exception
getConnectedTransport in interface MailServiceExceptionpublic javax.mail.Session getSession(String name) throws Exception
MailServicegetSession in interface MailServiceExceptionpublic javax.mail.Session getSession(String name, Map<String,Object> context) throws Exception
getSession in interface MailServiceExceptionpublic MailBoxActions getMailBoxActions(String factoryName, String folderName) throws Exception
MailServiceThe 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.
getMailBoxActions in interface MailServiceExceptionpublic MailBoxActions getMailBoxActions(String factoryName, String folderName, Map<String,Object> context) throws Exception
getMailBoxActions in interface MailServiceExceptionpublic void sendMail(String text, String subject, String factory, javax.mail.Address[] recipients) throws Exception
MailServiceThe 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.
sendMail in interface MailServiceExceptionpublic void sendMail(String text, String subject, String factory, javax.mail.Address[] recipients, Map<String,Object> context) throws Exception
sendMail in interface MailServiceExceptionpublic PropertiesFetcher getFetcher(String name) throws Exception
getFetcher in interface MailServiceExceptionpublic MessageActionPipe getPipe(String name)
MailServicegetPipe in interface MailServiceCopyright © 2014 Nuxeo SA. All rights reserved.