@org.osgi.annotation.versioning.ConsumerType interface EmailNotificationService extends NotificationService
Services may implement this interface to send email notifications for Groovy Console script executions.
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract void |
notify(RunScriptResponse response, Set<String> recipients, boolean attachOutput)Send an email notification for given script response and recipients, optionally attaching the script output. |
|
abstract void |
notify(RunScriptResponse response, Set<String> recipients, String successTemplate, String failureTemplate, boolean attachOutput)Send an email notification for given script response and recipients, with the provided success/failure templates, optionally attaching the script output. |
| Methods inherited from class | Name |
|---|---|
interface NotificationService |
notify |
Send an email notification for given script response and recipients, optionally attaching the script output.
response - script execution responserecipients - email to recipientsattachOutput - if true, attach the script output fileSend an email notification for given script response and recipients, with the provided success/failure templates, optionally attaching the script output.
response - script execution responserecipients - email to recipientssuccessTemplate - GStringTemplate for successful executionsfailureTemplate - GStringTemplate for failed executionsattachOutput - if true, attach the script output file