Class SMTPAccountStatusNotificationHandler

  • All Implemented Interfaces:
    ConfigurationChangeListener<SmtpAccountStatusNotificationHandlerCfg>

    public class SMTPAccountStatusNotificationHandler
    extends AccountStatusNotificationHandler<SmtpAccountStatusNotificationHandlerCfg>
    implements ConfigurationChangeListener<SmtpAccountStatusNotificationHandlerCfg>
    This class provides an implementation of an account status notification handler that can send e-mail messages via SMTP to end users and/or administrators whenever an account status notification occurs. The e-mail messages will be generated from template files, which contain the information to use to create the message body. The template files may contain plain text, in addition to the following tokens:
    • %%notification-type%% -- Will be replaced with the name of the account status notification type for the notification.
    • %%notification-message%% -- Will be replaced with the message for the account status notification.
    • %%notification-user-dn%% -- Will be replaced with the string representation of the DN for the user that is the target of the account status notification.
    • %%notification-user-attr:attrname%% -- Will be replaced with the value of the attribute specified by attrname from the user's entry. If the specified attribute has multiple values, then the first value encountered will be used. If the specified attribute does not have any values, then it will be replaced with an empty string.
    • %%notification-property:propname%% -- Will be replaced with the value of the specified notification property from the account status notification. If the specified property has multiple values, then the first value encountered will be used. If the specified property does not have any values, then it will be replaced with an empty string.