com.googlecode.fascinator.portal.process
Class EmailNotifier
java.lang.Object
com.googlecode.fascinator.portal.process.EmailNotifier
- All Implemented Interfaces:
- Processor
public class EmailNotifier
- extends Object
- implements Processor
Template-aware email utility class.
- Author:
- Shilo Banihit
|
Method Summary |
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)
|
boolean |
process(String id,
String inputKey,
String outputKey,
String stage,
String configFilePath,
HashMap<String,Object> dataMap)
Main processing method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmailNotifier
public EmailNotifier()
process
public boolean process(String id,
String inputKey,
String outputKey,
String stage,
String configFilePath,
HashMap<String,Object> dataMap)
throws Exception
- Main processing method. This class can comprise of multiple email
configuration blocks, specified by 'id' array.
- Specified by:
process in interface Processor
- Throws:
Exception
email
public boolean email(String oid,
String from,
String recipient,
String subject,
String body)
- Send the actual email.
- Parameters:
oid - from - recipient - subject - body -
- Returns:
emailAttachment
public boolean emailAttachment(String from,
String recipient,
String subject,
String body,
byte[] attachData,
String attachDataType,
String attachFileName,
String attachDesc)
throws Exception
- Throws:
Exception
Copyright © 2009-2014. All Rights Reserved.