Class SMTPAlertHandler

    • Constructor Detail

      • SMTPAlertHandler

        public SMTPAlertHandler()
        Creates a new instance of this SMTP alert handler.
    • Method Detail

      • isConfigurationAcceptable

        public boolean isConfigurationAcceptable​(AlertHandlerCfg configuration,
                                                 List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
        Description copied from interface: AlertHandler
        Indicates whether the provided configuration is acceptable for this alert handler.
        Specified by:
        isConfigurationAcceptable in interface AlertHandler<SMTPAlertHandlerCfg>
        Parameters:
        configuration - The configuration for which to make tje determination.
        unacceptableReasons - A list to which human-readable reasons may be added to explain why the configuration is not acceptable.
        Returns:
        true if the provided configuration is acceptable, or false if it is not.
      • sendAlertNotification

        public void sendAlertNotification​(AlertGenerator generator,
                                          String alertType,
                                          org.forgerock.i18n.LocalizableMessage alertMessage)
        Description copied from interface: AlertHandler
        Sends an alert notification based on the provided information.
        Specified by:
        sendAlertNotification in interface AlertHandler<SMTPAlertHandlerCfg>
        Parameters:
        generator - The alert generator that created the alert.
        alertType - The alert type name for this alert.
        alertMessage - A message (possibly null) that can provide more information about this alert.
      • isConfigurationChangeAcceptable

        public boolean isConfigurationChangeAcceptable​(SMTPAlertHandlerCfg configuration,
                                                       List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
        Description copied from interface: ConfigurationChangeListener
        Indicates whether the proposed change to the configuration is acceptable to this change listener.
        Specified by:
        isConfigurationChangeAcceptable in interface ConfigurationChangeListener<SMTPAlertHandlerCfg>
        Parameters:
        configuration - The new configuration containing the changes.
        unacceptableReasons - A list that can be used to hold messages about why the provided configuration is not acceptable.
        Returns:
        Returns true if the proposed change is acceptable, or false if it is not.