public class TaskEmailNotifier
extends com.centurylink.mdw.observer.task.TemplatedNotifier
| Constructor and Description |
|---|
TaskEmailNotifier() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<javax.mail.Address> |
getCcRecipientAddresses(java.lang.String outcome) |
protected java.util.List<java.lang.String> |
getCcRecipients(java.lang.String outcome) |
protected java.lang.String |
getFromAddress() |
protected java.lang.String |
getProperty(java.lang.String name) |
protected java.util.List<javax.mail.Address> |
getRecipientAddresses(java.lang.String outcome) |
protected java.util.List<java.lang.String> |
getRecipients(java.lang.String outcome)
Default implementation: If outcome is "Assigned", send only to assignee's email.
|
protected java.lang.String |
getSubject(com.centurylink.mdw.model.task.TaskInstance taskInstance,
java.lang.String outcome) |
protected void |
sendEmail(com.centurylink.mdw.model.task.TaskRuntimeContext context,
java.lang.String outcome)
Creates the mime message for the e-mail.
|
void |
sendNotice(com.centurylink.mdw.model.task.TaskRuntimeContext runtimeContext,
java.lang.String taskAction,
java.lang.String outcome) |
public void sendNotice(com.centurylink.mdw.model.task.TaskRuntimeContext runtimeContext,
java.lang.String taskAction,
java.lang.String outcome)
throws com.centurylink.mdw.observer.ObserverException
com.centurylink.mdw.observer.ObserverExceptionprotected java.lang.String getFromAddress()
protected java.lang.String getProperty(java.lang.String name)
protected java.lang.String getSubject(com.centurylink.mdw.model.task.TaskInstance taskInstance,
java.lang.String outcome)
protected void sendEmail(com.centurylink.mdw.model.task.TaskRuntimeContext context,
java.lang.String outcome)
throws com.centurylink.mdw.observer.ObserverException
taskInstance - the task instanceoutcome - the resulting task status or statecom.centurylink.mdw.observer.ObserverExceptionprotected java.util.List<javax.mail.Address> getRecipientAddresses(java.lang.String outcome)
throws com.centurylink.mdw.observer.ObserverException,
javax.mail.internet.AddressException
com.centurylink.mdw.observer.ObserverExceptionjavax.mail.internet.AddressExceptionprotected java.util.List<javax.mail.Address> getCcRecipientAddresses(java.lang.String outcome)
throws com.centurylink.mdw.observer.ObserverException,
javax.mail.internet.AddressException
com.centurylink.mdw.observer.ObserverExceptionjavax.mail.internet.AddressExceptionprotected java.util.List<java.lang.String> getRecipients(java.lang.String outcome)
throws com.centurylink.mdw.observer.ObserverException
com.centurylink.mdw.observer.ObserverExceptionprotected java.util.List<java.lang.String> getCcRecipients(java.lang.String outcome)
throws com.centurylink.mdw.observer.ObserverException
com.centurylink.mdw.observer.ObserverException