Class Composer
java.lang.Object
org.nuxeo.ecm.automation.core.mail.Composer
Deprecated.
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected final FreemarkerEngine
Deprecated.protected static final Properties
Deprecated.Mail properties read from mail.properties.protected Mailer
Deprecated.protected final ConcurrentMap<String,
URL> Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Mailer
Deprecated.Deprecated.Deprecated.protected static Properties
Deprecated.protected static File
Deprecated.newHtmlMessage
(String templateContent, Object ctx) Deprecated.newHtmlMessage
(URL template, Object ctx) Deprecated.Deprecated.Deprecated.newTextMessage
(String templateContent, Object ctx) Deprecated.newTextMessage
(URL template, Object ctx) Deprecated.void
registerTemplate
(URL url) Deprecated.Deprecated.void
Deprecated.Deprecated.void
Deprecated.void
Deprecated.void
unregisterTemplate
(URL url) Deprecated.
-
Field Details
-
MAIL_PROPERTIES
Deprecated.Mail properties read from mail.properties. -
engine
Deprecated. -
mailer
Deprecated. -
urls
Deprecated.
-
-
Constructor Details
-
Composer
public Composer()Deprecated. -
Composer
Deprecated.
-
-
Method Details
-
createMailer
Deprecated. -
getMailProperties
Deprecated. -
getMailPropertiesFile
Deprecated. -
registerTemplate
Deprecated. -
unregisterTemplate
Deprecated. -
unregisterAllTemplates
public void unregisterAllTemplates()Deprecated. -
getMailer
Deprecated. -
getEngine
Deprecated. -
render
Deprecated.- Throws:
RenderingException
-
render
Deprecated.- Throws:
RenderingException
-
render
Deprecated.- Throws:
RenderingException
-
render
public String render(String templateContent, Object ctx) throws freemarker.template.TemplateException, IOException Deprecated.- Throws:
freemarker.template.TemplateException
IOException
-
newMessage
Deprecated. -
newTextMessage
public Mailer.Message newTextMessage(URL template, Object ctx) throws RenderingException, javax.mail.MessagingException Deprecated.- Throws:
RenderingException
javax.mail.MessagingException
-
newTextMessage
public Mailer.Message newTextMessage(String templateContent, Object ctx) throws RenderingException, javax.mail.MessagingException, freemarker.template.TemplateException, IOException Deprecated.- Throws:
RenderingException
javax.mail.MessagingException
freemarker.template.TemplateException
IOException
-
newHtmlMessage
public Mailer.Message newHtmlMessage(URL template, Object ctx) throws RenderingException, javax.mail.MessagingException Deprecated.- Throws:
RenderingException
javax.mail.MessagingException
-
newHtmlMessage
public Mailer.Message newHtmlMessage(String templateContent, Object ctx) throws javax.mail.MessagingException, freemarker.template.TemplateException, IOException Deprecated.- Throws:
javax.mail.MessagingException
freemarker.template.TemplateException
IOException
-
newMixedMessage
public Mailer.Message newMixedMessage(String templateContent, Object ctx, String textType, List<Blob> attachments) throws freemarker.template.TemplateException, IOException, javax.mail.MessagingException Deprecated.- Throws:
freemarker.template.TemplateException
IOException
javax.mail.MessagingException
-
MailService
takesMailMessage
which can be easily composed via itsMailMessage.Builder
.