|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EmailManagerLocal
Local interface that allows clients to send SMTP email messages.
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAlertEmailMessage(java.lang.String resourceHierarchy,
java.lang.String resourceName,
java.lang.String alertName,
java.lang.String priority,
java.lang.String timestamp,
java.lang.String conditionLogs,
java.lang.String alertUrl)
This returns an email message based on the alert email template with its replacement tokens replaced with the given strings. |
void |
sendEmail(java.util.Collection<java.lang.String> toAddresses,
java.lang.String messageSubject,
java.lang.String messageBody)
Sends an email message to the given a set of email addresses where the subject and body of the message are passed in. |
| Method Detail |
|---|
void sendEmail(java.util.Collection<java.lang.String> toAddresses,
java.lang.String messageSubject,
java.lang.String messageBody)
throws java.lang.Exception
text/plain.
This method will attempt to send to all addresses, even if one or more failed. The first exception that is encountered will be the one that is eventually thrown.
toAddresses - messageSubject - messageBody -
java.lang.Exception - if failed to send to one or more email addresses
java.util.Map<java.lang.String,java.lang.String> getAlertEmailMessage(java.lang.String resourceHierarchy,
java.lang.String resourceName,
java.lang.String alertName,
java.lang.String priority,
java.lang.String timestamp,
java.lang.String conditionLogs,
java.lang.String alertUrl)
resourceHierarchy - 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 triggered
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||