Class DefaultEmailNotificationStrategyImpl

java.lang.Object
com.skava.strategyimpl.DefaultEmailNotificationStrategyImpl
All Implemented Interfaces:
NotifyStrategy

@Service public class DefaultEmailNotificationStrategyImpl extends Object implements NotifyStrategy
SendGridEmailNotificationStrategyImpl class This helper class enables the application to send emails via SendGrid. and holds all required configurations and sends mail.
Author:
Infosys Equinox
  • Constructor Details

    • DefaultEmailNotificationStrategyImpl

      public DefaultEmailNotificationStrategyImpl(org.springframework.web.client.RestTemplate restTemplateComponent)
      default constructor of SendGridEmailNotificationStrategyImpl wirh rest template as a argument
      Parameters:
      restTemplateComponent - the restTemplateComponent
  • Method Details

    • notify

      public void notify(Notification notificationInfo, CollectionPropertyEntity collectionProperty, ActionEntity action, org.springframework.context.MessageSource messageSource) throws IOException
      Send grid mail.
      Specified by:
      notify in interface NotifyStrategy
      Parameters:
      notificationInfo - the notificationInfo
      collectionProperty - the collection poperties
      action - the action
      messageSource - the messageSource
      Throws:
      IOException - Signals that an I/O exception has occurred.