public class SendEmailEventHandler extends DefaultEventHandler
| Attribute | Values | Description | Required | Default |
|---|---|---|---|---|
| on.change.only | true false |
Specify whether email should be sent out only when the user field has changed. | No | false |
| notify.old.users | true false |
Specify whether email should be sent out to the old user when the user has changed. | No | false |
| from.address | An email address identify, where the email come from. | Yes | ||
| user.fields | A comma-separated list of field paths which have the user name in them. | Yes | ||
| email.subject.string.key | A key for the application text for the subject of the email. | Yes | ||
| email.subject.parameter.fields | A comma-separated list of field paths with values that are the parameters to the subject text. The order of the field specified determines the order of the parameters. | Yes | ||
| email.body.string.key | A key for the application text for the body of the email. | Yes | ||
| email.body.parameter.fields | A comma-separated list of field paths with values that are the parameters to the body text. The order of the field specified determines the order of the parameters. | Yes | ||
| email.old.subject.string.key | A key for the application text for the subject of the email sent to the old user. | No | ||
| email.old.subject.parameter.fields | A comma-separated list of field paths with values that are the parameters to the subject text of the email sent to the old user. The order of the field specified determines the order of the parameters. | No | ||
| email.old.body.string.key | A key for the application text for the body of the email sent to the old user. | No | ||
| email.old.body.parameter.fields | A comma-separated list of field paths with values that are the parameters to the body text of the email sent to the old user. The order of the field specified determines the order of the parameters. | No | ||
| ignore.failure | true false |
A parameter, specifies whether the email should be sent out when there's an error. | No | |
| application.url.path |   | The server information of the OpenPages Application. Required for
formating a link to the object. (i.e.
"http:// |
Yes | |
| mail.timeout |   | The sending email's timeout in seconds. Default is 30 seconds. | No | |
| mail.retry.times |   | The retry times of sending email. Default is 3. | No |
| Constructor and Description |
|---|
SendEmailEventHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleEvent(CreateResourceEvent event)
Handles create resource event.
|
boolean |
handleEvent(CreateResourceWithRelationsEvent event)
Handles create resource with relations event.
|
boolean |
handleEvent(UpdateResourceEvent event)
Handles update resource event.
|
handleEvent, handleEvent, handleEvent, handleEvent, handleEvent, handleEvent, handleEvent, handleEvent, handleEvent, handleEventgetAttributes, getRuleAttributes, setAttributes, setRuleAttributes, throwExceptionpublic boolean handleEvent(CreateResourceEvent event)
handleEvent in class DefaultEventHandlerevent - a create resource event to be handledpublic boolean handleEvent(CreateResourceWithRelationsEvent event)
handleEvent in class DefaultEventHandlerevent - a create resource with relations event to be handledpublic boolean handleEvent(UpdateResourceEvent event)
handleEvent in class DefaultEventHandlerevent - an update resource event to be handled
Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2020. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.