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 Details

    • HvlNotificationMailRestController

      public HvlNotificationMailRestController(HvlNotificationMailService notificationMailService)
      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 interface HvlNotificationMailRestService
      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 interface HvlNotificationMailRestService
      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 interface HvlNotificationMailRestService
      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 interface HvlNotificationMailRestService
      Parameters:
      eventNotificationRequestModel - the notification event request model
      Returns:
      the hvl response