public class ImportMailFormatter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CRLF |
Constructor and Description |
---|
ImportMailFormatter(ImportBatchStatus outcome)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
PlainTextMail |
buildMailMessage(boolean success,
Email recipient)
Builds an email messages to notify the specified recipient of the
processing outcome of the import batch.
|
public static final java.lang.String CRLF
public ImportMailFormatter(ImportBatchStatus outcome)
outcome
- the state of the import batch after all its imports have
been processed.java.lang.NullPointerException
- if the argument is null
.public PlainTextMail buildMailMessage(boolean success, Email recipient)
success
- whether the batch succeeded or failed.recipient
- who to send the email to.java.lang.NullPointerException
- if the argument is null
.