Class Composer
java.lang.Object
org.nuxeo.ecm.automation.core.mail.Composer
Deprecated.
- Author:
- Bogdan Stefanescu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FreemarkerEngineDeprecated.protected static final PropertiesDeprecated.Mail properties read from mail.properties.protected MailerDeprecated.protected final ConcurrentMap<String, URL> Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MailerDeprecated.Deprecated.Deprecated.protected static @NotNull PropertiesDeprecated.protected static FileDeprecated.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.voidregisterTemplate(URL url) Deprecated.Deprecated.voidDeprecated.Deprecated.voidDeprecated.voidDeprecated.voidunregisterTemplate(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.TemplateExceptionIOException
-
newMessage
Deprecated. -
newTextMessage
public Mailer.Message newTextMessage(URL template, Object ctx) throws RenderingException, jakarta.mail.MessagingException Deprecated.- Throws:
RenderingExceptionjakarta.mail.MessagingException
-
newTextMessage
public Mailer.Message newTextMessage(String templateContent, Object ctx) throws RenderingException, jakarta.mail.MessagingException, freemarker.template.TemplateException, IOException Deprecated.- Throws:
RenderingExceptionjakarta.mail.MessagingExceptionfreemarker.template.TemplateExceptionIOException
-
newHtmlMessage
public Mailer.Message newHtmlMessage(URL template, Object ctx) throws RenderingException, jakarta.mail.MessagingException Deprecated.- Throws:
RenderingExceptionjakarta.mail.MessagingException
-
newHtmlMessage
public Mailer.Message newHtmlMessage(String templateContent, Object ctx) throws jakarta.mail.MessagingException, freemarker.template.TemplateException, IOException Deprecated.- Throws:
jakarta.mail.MessagingExceptionfreemarker.template.TemplateExceptionIOException
-
newMixedMessage
public Mailer.Message newMixedMessage(String templateContent, Object ctx, String textType, List<Blob> attachments) throws freemarker.template.TemplateException, IOException, jakarta.mail.MessagingException Deprecated.- Throws:
freemarker.template.TemplateExceptionIOExceptionjakarta.mail.MessagingException
-
MailServicetakesMailMessagewhich can be easily composed via itsMailMessage.Builder.