org.jbpm.mail
Class Mail

java.lang.Object
  extended by org.jbpm.mail.Mail
All Implemented Interfaces:
Serializable, ActionHandler

public class Mail
extends Object
implements ActionHandler

See Also:
Serialized Form

Constructor Summary
Mail()
           
Mail(String template, String actors, String to, String subject, String text)
           
Mail(String template, String actors, String to, String bccActors, String bcc, String subject, String text)
           
 
Method Summary
 void execute(ExecutionContext executionContext)
           
 Collection getBccRecipients()
           
 Collection getCcRecipients()
           
 String getFromAddress()
           
 Collection getRecipients()
           
 String getSubject()
           
 String getText()
           
protected  Collection resolveAddresses(Collection actorIds)
           
 void send()
           
static void send(Properties serverProperties, String sender, Collection recipients, Collection bccRecipients, String subject, String text)
           
static void send(Properties serverProperties, String sender, Collection recipients, String subject, String text)
           
protected  List tokenize(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mail

public Mail()

Mail

public Mail(String template,
            String actors,
            String to,
            String subject,
            String text)

Mail

public Mail(String template,
            String actors,
            String to,
            String bccActors,
            String bcc,
            String subject,
            String text)
Method Detail

execute

public void execute(ExecutionContext executionContext)
Specified by:
execute in interface ActionHandler

getRecipients

public Collection getRecipients()

getCcRecipients

public Collection getCcRecipients()

getBccRecipients

public Collection getBccRecipients()

resolveAddresses

protected Collection resolveAddresses(Collection actorIds)

tokenize

protected List tokenize(String text)

getSubject

public String getSubject()

getText

public String getText()

getFromAddress

public String getFromAddress()

send

public void send()

send

public static void send(Properties serverProperties,
                        String sender,
                        Collection recipients,
                        String subject,
                        String text)

send

public static void send(Properties serverProperties,
                        String sender,
                        Collection recipients,
                        Collection bccRecipients,
                        String subject,
                        String text)


Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.