public class EmailManagerBean extends Object implements EmailManagerLocal
| Constructor and Description |
|---|
EmailManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAlertEmailMessage(String resourceHierarchy,
String resourceName,
String alertName,
String priority,
String timestamp,
String conditionLogs,
String alertUrl)
This returns an email message based on the alert email template with its replacement tokens replaced with the
given strings.
|
Collection<String> |
sendEmail(Collection<String> toAddresses,
String messageSubject,
String messageBody)
Send email to the addressses passed in toAddresses with the passed subject and body.
|
public Collection<String> sendEmail(Collection<String> toAddresses, String messageSubject, String messageBody)
sendEmail in interface EmailManagerLocaltoAddresses - list of email addresses to send tomessageSubject - subject of the email sentmessageBody - body of the email to be sentpublic Map<String,String> getAlertEmailMessage(String resourceHierarchy, String resourceName, String alertName, String priority, String timestamp, String conditionLogs, String alertUrl)
EmailManagerLocalgetAlertEmailMessage in interface EmailManagerLocalresourceHierarchy - ascii tree structure containing the names of resources up to the corresponding platformresourceName - name of the resource that triggered the alertalertName - name of the alert that was triggeredpriority - the priority of the alerttimestamp - the date/time when the alert was triggeredconditionLogs - that conditionLogs that were met that caused the alert to triggeralertUrl - URL to the GUI page of the alert that was triggeredCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.