Class HvlNotificationMailSenderServiceImpl
java.lang.Object
tr.com.havelsan.javarch.notification.mailsender.provider.api.HvlNotificationMailSenderServiceImpl
- All Implemented Interfaces:
HvlNotificationMailSenderService
@Service
@Transactional(readOnly=true)
public class HvlNotificationMailSenderServiceImpl
extends Object
implements HvlNotificationMailSenderService
The class which implements
HvlNotificationMailSenderService
-
Constructor Summary
ConstructorDescriptionHvlNotificationMailSenderServiceImpl
(HvlNotificationTemplateService notificationTemplateService, tr.com.havelsan.javarch.mail.support.service.HvlHtmlMailService htmlMailService, tr.com.havelsan.javarch.mail.support.service.HvlMimeHtmlMailService mimeHtmlMailService, tr.com.havelsan.javarch.mail.support.service.HvlCalendarMailService calendarMailService, HvlNotificationMailProperties notificationMailProperties) Instantiates a new HvlNotificationMailService. -
Method Summary
Modifier and TypeMethodDescriptionvoid
calendarNotify
(@NotNull @Valid HvlCalendarNotificationRequestModel eventNotificationRequestModel) Sends calendar notification request object.void
notify
(@NotNull @Valid HvlNotificationMailRequestModel notificationMailRequestModel) Sends notification event with mail request object.void
notifyWithContent
(@NotNull @Valid HvlNotificationMailRequestModelWithContent notificationMailRequestModelWithContent) Sends notification event with mail content request object.
-
Constructor Details
-
HvlNotificationMailSenderServiceImpl
public HvlNotificationMailSenderServiceImpl(HvlNotificationTemplateService notificationTemplateService, tr.com.havelsan.javarch.mail.support.service.HvlHtmlMailService htmlMailService, tr.com.havelsan.javarch.mail.support.service.HvlMimeHtmlMailService mimeHtmlMailService, tr.com.havelsan.javarch.mail.support.service.HvlCalendarMailService calendarMailService, HvlNotificationMailProperties notificationMailProperties) Instantiates a new HvlNotificationMailService.- Parameters:
notificationTemplateService
- the notification template servicehtmlMailService
- the html mail servicemimeHtmlMailService
- the mime html mail servicecalendarMailService
- the calendar mail servicenotificationMailProperties
- the notification mail properties
-
-
Method Details
-
notify
public void notify(@NotNull @Valid @NotNull @Valid HvlNotificationMailRequestModel notificationMailRequestModel) Sends notification event with mail request object.- Specified by:
notify
in interfaceHvlNotificationMailSenderService
- Parameters:
notificationMailRequestModel
- the notification mail request model
-
notifyWithContent
public void notifyWithContent(@NotNull @Valid @NotNull @Valid HvlNotificationMailRequestModelWithContent notificationMailRequestModelWithContent) Sends notification event with mail content request object.- Specified by:
notifyWithContent
in interfaceHvlNotificationMailSenderService
- Parameters:
notificationMailRequestModelWithContent
- the notification mail with content request model
-
calendarNotify
public void calendarNotify(@NotNull @Valid @NotNull @Valid HvlCalendarNotificationRequestModel eventNotificationRequestModel) Sends calendar notification request object.- Specified by:
calendarNotify
in interfaceHvlNotificationMailSenderService
- Parameters:
eventNotificationRequestModel
- the event notification request model
-