Package com.skava.strategyimpl
Class DefaultEmailNotificationStrategyImpl
java.lang.Object
com.skava.strategyimpl.DefaultEmailNotificationStrategyImpl
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionDefaultEmailNotificationStrategyImpl
(org.springframework.web.client.RestTemplate restTemplateComponent) default constructor of SendGridEmailNotificationStrategyImpl wirh rest template as a argument -
Method Summary
Modifier and TypeMethodDescriptionvoid
notify
(Notification notificationInfo, CollectionPropertyEntity collectionProperty, ActionEntity action, org.springframework.context.MessageSource messageSource) Send grid mail.
-
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 interfaceNotifyStrategy
- Parameters:
notificationInfo
- the notificationInfocollectionProperty
- the collection popertiesaction
- the actionmessageSource
- the messageSource- Throws:
IOException
- Signals that an I/O exception has occurred.
-