|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objecter.corebusinesslogic.ERCMailDelivery
public class ERCMailDelivery
Utility class used for sending mails via the ERCMailMessage database tables. Actual emails are then sent using the ERMailer application.
| Field Summary | |
|---|---|
protected static ERCMailDelivery |
_sharedInstance
holds a reference to the shared instance |
static org.apache.log4j.Logger |
log
logging supprt |
| Constructor Summary | |
|---|---|
ERCMailDelivery()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
commaSeparatedListFromArray(com.webobjects.foundation.NSArray a)
Utilitiy method used to break an array of email addresses down into a comma separated list. |
ERCMailMessage |
composeComponentEmail(java.lang.String from,
com.webobjects.foundation.NSArray to,
com.webobjects.foundation.NSArray cc,
com.webobjects.foundation.NSArray bcc,
java.lang.String title,
java.lang.String componentName,
com.webobjects.foundation.NSDictionary bindings,
com.webobjects.eocontrol.EOEditingContext ec)
Composes a mail message from a given component. |
ERCMailMessage |
composeComponentEmail(java.lang.String from,
com.webobjects.foundation.NSArray to,
com.webobjects.foundation.NSArray cc,
com.webobjects.foundation.NSArray bcc,
java.lang.String title,
java.lang.String componentName,
java.lang.String plainTextComponentName,
com.webobjects.foundation.NSDictionary bindings,
com.webobjects.eocontrol.EOEditingContext ec)
Composes a mail message from a given component. |
ERCMailMessage |
composeComponentEmail(java.lang.String from,
com.webobjects.foundation.NSArray to,
com.webobjects.foundation.NSArray cc,
com.webobjects.foundation.NSArray bcc,
java.lang.String title,
com.webobjects.appserver.WOComponent component,
com.webobjects.eocontrol.EOEditingContext ec)
Composes a mail message from a given component. |
ERCMailMessage |
composeComponentEmail(java.lang.String from,
com.webobjects.foundation.NSArray to,
com.webobjects.foundation.NSArray cc,
com.webobjects.foundation.NSArray bcc,
java.lang.String title,
com.webobjects.appserver.WOComponent component,
com.webobjects.appserver.WOComponent plainTextComponent,
com.webobjects.eocontrol.EOEditingContext ec)
Composes a mail message from previously instantiated components. |
ERCMailMessage |
composeEmail(java.lang.String from,
com.webobjects.foundation.NSArray to,
com.webobjects.foundation.NSArray cc,
com.webobjects.foundation.NSArray bcc,
java.lang.String title,
java.lang.String message,
com.webobjects.eocontrol.EOEditingContext ec)
Composes a mail message. |
ERCMailMessage |
composeEmailWithAttachments(java.lang.String from,
com.webobjects.foundation.NSArray to,
com.webobjects.foundation.NSArray cc,
com.webobjects.foundation.NSArray bcc,
java.lang.String title,
java.lang.String message,
com.webobjects.foundation.NSArray filePaths,
com.webobjects.eocontrol.EOEditingContext ec)
Composes a mail message with attachments. |
static ERCMailDelivery |
sharedInstance()
Gets the shared instance used to create ERCMailMessages. |
static boolean |
usesMail()
Is Mail turned on |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.log4j.Logger log
protected static ERCMailDelivery _sharedInstance
| Constructor Detail |
|---|
public ERCMailDelivery()
| Method Detail |
|---|
public static ERCMailDelivery sharedInstance()
public static java.lang.String commaSeparatedListFromArray(com.webobjects.foundation.NSArray a)
a - array of email addresses
public static boolean usesMail()
public ERCMailMessage composeEmail(java.lang.String from,
com.webobjects.foundation.NSArray to,
com.webobjects.foundation.NSArray cc,
com.webobjects.foundation.NSArray bcc,
java.lang.String title,
java.lang.String message,
com.webobjects.eocontrol.EOEditingContext ec)
from - email addressto - email addressescc - email addressesbcc - email addressestitle - of the messagemessage - text of the messageec - editing context to create the mail
message in.
public ERCMailMessage composeEmailWithAttachments(java.lang.String from,
com.webobjects.foundation.NSArray to,
com.webobjects.foundation.NSArray cc,
com.webobjects.foundation.NSArray bcc,
java.lang.String title,
java.lang.String message,
com.webobjects.foundation.NSArray filePaths,
com.webobjects.eocontrol.EOEditingContext ec)
from - email addressto - email addressescc - email addressesbcc - email addressestitle - of the messagemessage - text of the messagefilePaths - array of file paths to attachec - editing context to create the mail
message in.
public ERCMailMessage composeComponentEmail(java.lang.String from,
com.webobjects.foundation.NSArray to,
com.webobjects.foundation.NSArray cc,
com.webobjects.foundation.NSArray bcc,
java.lang.String title,
com.webobjects.appserver.WOComponent component,
com.webobjects.eocontrol.EOEditingContext ec)
from - email addressto - email addressescc - email addressesbcc - email addressestitle - of the messagecomponent - to render to get the messageec - editing context to create the mail
message in.
public ERCMailMessage composeComponentEmail(java.lang.String from,
com.webobjects.foundation.NSArray to,
com.webobjects.foundation.NSArray cc,
com.webobjects.foundation.NSArray bcc,
java.lang.String title,
java.lang.String componentName,
com.webobjects.foundation.NSDictionary bindings,
com.webobjects.eocontrol.EOEditingContext ec)
from - email addressto - email addressescc - email addressesbcc - email addressestitle - of the messagecomponentName - name of the component to renderec - editing context to create the mail
message in.
public ERCMailMessage composeComponentEmail(java.lang.String from,
com.webobjects.foundation.NSArray to,
com.webobjects.foundation.NSArray cc,
com.webobjects.foundation.NSArray bcc,
java.lang.String title,
java.lang.String componentName,
java.lang.String plainTextComponentName,
com.webobjects.foundation.NSDictionary bindings,
com.webobjects.eocontrol.EOEditingContext ec)
from - email addressto - email addressescc - email addressesbcc - email addressestitle - of the messagecomponentName - name of the component to renderplainTextComponentName - name of the component to renderbindings - bindings dictionary to use for the components that are instantiatedec - editing context to create the mail
message in.
public ERCMailMessage composeComponentEmail(java.lang.String from,
com.webobjects.foundation.NSArray to,
com.webobjects.foundation.NSArray cc,
com.webobjects.foundation.NSArray bcc,
java.lang.String title,
com.webobjects.appserver.WOComponent component,
com.webobjects.appserver.WOComponent plainTextComponent,
com.webobjects.eocontrol.EOEditingContext ec)
from - email addressto - email addressescc - email addressesbcc - email addressestitle - of the messagecomponent - component to renderplainTextComponent - plain-text component to renderec - editing context to create the mail
message in.
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||