| Constructor and Description |
|---|
EmailNotifier() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
email(String oid,
String from,
String recipient,
String subject,
String body)
Send the actual email.
|
boolean |
emailAttachment(String from,
String recipient,
String subject,
String body,
byte[] attachData,
String attachDataType,
String attachFileName,
String attachDesc) |
String |
getCollectionValues(com.googlecode.fascinator.common.JsonSimple emailConfig,
com.googlecode.fascinator.common.JsonSimple tfPackage,
String varField) |
boolean |
process(String id,
String inputKey,
String outputKey,
String stage,
String configFilePath,
HashMap<String,Object> dataMap)
Main processing method.
|
String |
sanitizeAndEvaluateStr(String source,
org.apache.velocity.VelocityContext context)
Apart from evaluating the template using velocity context, this method also adds velocity's quiet reference
and finally cleans up any punctuation left behind by empty references.
|
public String getCollectionValues(com.googlecode.fascinator.common.JsonSimple emailConfig, com.googlecode.fascinator.common.JsonSimple tfPackage, String varField)
public String sanitizeAndEvaluateStr(String source, org.apache.velocity.VelocityContext context) throws org.apache.velocity.exception.ParseErrorException, org.apache.velocity.exception.MethodInvocationException, org.apache.velocity.exception.ResourceNotFoundException, IOException
context: - velocity contextsource: - email templateorg.apache.velocity.exception.ParseErrorExceptionorg.apache.velocity.exception.MethodInvocationExceptionorg.apache.velocity.exception.ResourceNotFoundExceptionIOExceptionpublic boolean process(String id, String inputKey, String outputKey, String stage, String configFilePath, HashMap<String,Object> dataMap) throws Exception
public boolean email(String oid, String from, String recipient, String subject, String body)
oid - from - recipient - subject - body - Copyright © 2009-2015. All Rights Reserved.