public class MailServiceImpl extends DefaultComponent implements MailService
Constructor and Description |
---|
MailServiceImpl() |
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 |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
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) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtension
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution
in class DefaultComponent
Exception
public Store getConnectedStore(String name) throws Exception
MailService
getConnectedStore
in interface MailService
name
- The name of the factory that provides the properties.Exception
public Store getConnectedStore(String name, Map<String,Object> context) throws Exception
getConnectedStore
in interface MailService
Exception
public Transport getConnectedTransport(String name) throws Exception
MailService
getConnectedTransport
in interface MailService
name
- the name of the factory that provides the properties.Exception
public Transport getConnectedTransport(String name, Map<String,Object> context) throws Exception
getConnectedTransport
in interface MailService
Exception
public Session getSession(String name) throws Exception
MailService
getSession
in interface MailService
Exception
public Session getSession(String name, Map<String,Object> context) throws Exception
getSession
in interface MailService
Exception
public MailBoxActions getMailBoxActions(String factoryName, String folderName) throws Exception
MailService
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.
getMailBoxActions
in interface MailService
Exception
public MailBoxActions getMailBoxActions(String factoryName, String folderName, Map<String,Object> context) throws Exception
getMailBoxActions
in interface MailService
Exception
public void sendMail(String text, String subject, String factory, Address[] recipients) throws Exception
MailService
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.
sendMail
in interface MailService
Exception
public void sendMail(String text, String subject, String factory, Address[] recipients, Map<String,Object> context) throws Exception
sendMail
in interface MailService
Exception
public PropertiesFetcher getFetcher(String name) throws Exception
getFetcher
in interface MailService
Exception
public MessageActionPipe getPipe(String name)
MailService
getPipe
in interface MailService
Copyright © 2013 Nuxeo SA. All Rights Reserved.