Class NotificationServiceImpl
- java.lang.Object
-
- io.mosip.authentication.common.service.impl.notification.NotificationServiceImpl
-
- All Implemented Interfaces:
NotificationService
@Service public class NotificationServiceImpl extends Object implements NotificationService
Service class to notify users via SMS or Email notification.- Author:
- Dinesh Karuppiah.T
-
-
Constructor Summary
Constructors Constructor Description NotificationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsendAuthNotification(AuthRequestDTO authRequestDTO, String idvid, AuthResponseDTO authResponseDTO, Map<String,List<IdentityInfoDTO>> idInfo, boolean isAuth)voidsendNotification(Map<String,Object> values, String emailId, String phoneNumber, SenderType sender, String notificationProperty, List<String> templateLanguages)Method to Send Notification to the Individual via SMS / E-MailvoidsendOTPNotification(String idvid, String idvidType, Map<String,String> valueMap, List<String> templateLanguages, String otp, String notificationProperty, LocalDateTime otpGenerationTime)
-
-
-
Method Detail
-
sendAuthNotification
public void sendAuthNotification(AuthRequestDTO authRequestDTO, String idvid, AuthResponseDTO authResponseDTO, Map<String,List<IdentityInfoDTO>> idInfo, boolean isAuth) throws IdAuthenticationBusinessException
- Specified by:
sendAuthNotificationin interfaceNotificationService- Throws:
IdAuthenticationBusinessException
-
sendOTPNotification
public void sendOTPNotification(String idvid, String idvidType, Map<String,String> valueMap, List<String> templateLanguages, String otp, String notificationProperty, LocalDateTime otpGenerationTime) throws IdAuthenticationBusinessException
- Specified by:
sendOTPNotificationin interfaceNotificationService- Throws:
IdAuthenticationBusinessException
-
sendNotification
public void sendNotification(Map<String,Object> values, String emailId, String phoneNumber, SenderType sender, String notificationProperty, List<String> templateLanguages) throws IdAuthenticationBusinessException
Method to Send Notification to the Individual via SMS / E-Mail- Specified by:
sendNotificationin interfaceNotificationService- Parameters:
notificationtype- - specifies notification typevalues- - list of values to send notificationemailId- - sender E-Mail IDphoneNumber- - sender Phone Numbersender- - to specify the sender typenotificationProperty-- Throws:
IdAuthenticationBusinessException
-
-