Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.core.mail
Class Composer

java.lang.Object
  extended by org.nuxeo.ecm.automation.core.mail.Composer

public class Composer
extends Object

Author:
Bogdan Stefanescu

Constructor Summary
Composer()
           
Composer(Mailer mailer)
           
 
Method Summary
 FreemarkerEngine getEngine()
           
 Mailer getMailer()
           
static void main(String[] args)
           
 Mailer.Message newHtmlMessage(String templateContent, Object ctx)
           
 Mailer.Message newHtmlMessage(URL template, Object ctx)
           
 Mailer.Message newMessage()
           
 Mailer.Message newMixedMessage(String templateContent, Object ctx, String textType, List<Blob> attachments)
           
 Mailer.Message newTextMessage(String templateContent, Object ctx)
           
 Mailer.Message newTextMessage(URL template, Object ctx)
           
 void registerTemplate(URL url)
           
 String render(String templateContent, Object ctx)
           
 void render(String template, Object ctx, Writer writer)
           
 String render(URL template, Object ctx)
           
 void render(URL template, Object ctx, Writer writer)
           
 void unregisterAllTemplates()
           
 void unregisterTemplate(URL url)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Composer

public Composer()

Composer

public Composer(Mailer mailer)
Method Detail

registerTemplate

public void registerTemplate(URL url)

unregisterTemplate

public void unregisterTemplate(URL url)

unregisterAllTemplates

public void unregisterAllTemplates()

getMailer

public Mailer getMailer()

getEngine

public FreemarkerEngine getEngine()

render

public void render(String template,
                   Object ctx,
                   Writer writer)
            throws RenderingException
Throws:
RenderingException

render

public void render(URL template,
                   Object ctx,
                   Writer writer)
            throws RenderingException
Throws:
RenderingException

render

public String render(URL template,
                     Object ctx)
              throws RenderingException
Throws:
RenderingException

render

public String render(String templateContent,
                     Object ctx)
              throws Exception
Throws:
Exception

newMessage

public Mailer.Message newMessage()

newTextMessage

public Mailer.Message newTextMessage(URL template,
                                     Object ctx)
                              throws Exception
Throws:
Exception

newTextMessage

public Mailer.Message newTextMessage(String templateContent,
                                     Object ctx)
                              throws Exception
Throws:
Exception

newHtmlMessage

public Mailer.Message newHtmlMessage(URL template,
                                     Object ctx)
                              throws Exception
Throws:
Exception

newHtmlMessage

public Mailer.Message newHtmlMessage(String templateContent,
                                     Object ctx)
                              throws Exception
Throws:
Exception

newMixedMessage

public Mailer.Message newMixedMessage(String templateContent,
                                      Object ctx,
                                      String textType,
                                      List<Blob> attachments)
                               throws Exception
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.