Class HvlNotificationMailRestController
java.lang.Object
tr.com.havelsan.javarch.notification.mail.starter.controller.HvlNotificationMailRestController
- All Implemented Interfaces:
HvlNotificationMailRestService
@RestController
@RequestMapping("${hvl.notification.mail.service.controller-path:/notification/mail}")
public class HvlNotificationMailRestController
extends Object
implements HvlNotificationMailRestService
The class in which service endpoints are defined for mail notification operations.
-
Constructor Summary
ConstructorDescriptionHvlNotificationMailRestController
(HvlNotificationMailService notificationMailService) Instantiates a new HvlNotificationMailRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse<Void>
calendarNotify
(@NotNull @Valid HvlCalendarNotificationRequestModel eventNotificationRequestModel) Sends calendar notification request object.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
notify
(@NotNull @Valid HvlNotificationMailRequestModel notificationMailRequestModel) Sends notification event with mail request object.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
notifyWithContent
(@NotNull @Valid HvlNotificationMailRequestModelWithContent notificationMailRequestModelWithContent) Sends notification event with mail content request object.tr.com.havelsan.javarch.service.data.HvlResponse<HvlNotificationTemplateContentModel>
preview
(@NotNull @Valid HvlNotificationPreviewModel notificationPreviewModel) Provides preview for mail content with attributes.
-
Constructor Details
-
HvlNotificationMailRestController
Instantiates a new HvlNotificationMailRestController.- Parameters:
notificationMailService
- the notification mail service
-
-
Method Details
-
notify
public tr.com.havelsan.javarch.service.data.HvlResponse<Void> notify(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationMailRequestModel notificationMailRequestModel) Sends notification event with mail request object.- Specified by:
notify
in interfaceHvlNotificationMailRestService
- Parameters:
notificationMailRequestModel
- the notification mail request model- Returns:
- the hvl response
-
notifyWithContent
public tr.com.havelsan.javarch.service.data.HvlResponse<Void> notifyWithContent(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationMailRequestModelWithContent notificationMailRequestModelWithContent) Sends notification event with mail content request object.- Specified by:
notifyWithContent
in interfaceHvlNotificationMailRestService
- Parameters:
notificationMailRequestModelWithContent
- the notification mail request model with content- Returns:
- the hvl response
-
preview
public tr.com.havelsan.javarch.service.data.HvlResponse<HvlNotificationTemplateContentModel> preview(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationPreviewModel notificationPreviewModel) Provides preview for mail content with attributes.- Specified by:
preview
in interfaceHvlNotificationMailRestService
- Parameters:
notificationPreviewModel
- the notification preview model- Returns:
- the hvl response
-
calendarNotify
public tr.com.havelsan.javarch.service.data.HvlResponse<Void> calendarNotify(@NotNull @Valid @RequestBody @NotNull @Valid HvlCalendarNotificationRequestModel eventNotificationRequestModel) Sends calendar notification request object.- Specified by:
calendarNotify
in interfaceHvlNotificationMailRestService
- Parameters:
eventNotificationRequestModel
- the notification event request model- Returns:
- the hvl response
-