Class WebMvcNotificationResponseService

java.lang.Object
net.croz.nrich.notification.service.WebMvcNotificationResponseService
All Implemented Interfaces:
net.croz.nrich.notification.api.service.BaseNotificationResponseService<net.croz.nrich.notification.api.response.NotificationResponse>, net.croz.nrich.notification.api.service.NotificationResponseService

public class WebMvcNotificationResponseService extends Object implements net.croz.nrich.notification.api.service.NotificationResponseService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.croz.nrich.notification.api.service.NotificationResolverService
     
    net.croz.nrich.notification.api.response.NotificationResponse
    responseWithExceptionNotification(Throwable throwable, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData, Object... exceptionMessageArgumentList)
     
    <D> net.croz.nrich.notification.api.response.NotificationDataResponse<D>
    responseWithNotification(D data, String actionName, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
     
    net.croz.nrich.notification.api.response.NotificationResponse
    responseWithNotification(String actionName, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
     
    <D> net.croz.nrich.notification.api.response.NotificationDataResponse<D>
    responseWithNotificationActionResolvedFromRequest(D data, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
     
    net.croz.nrich.notification.api.response.NotificationResponse
    responseWithNotificationActionResolvedFromRequest(net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
     
    net.croz.nrich.notification.api.response.NotificationResponse
    responseWithValidationFailureNotification(jakarta.validation.ConstraintViolationException exception, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
     
    net.croz.nrich.notification.api.response.NotificationResponse
    responseWithValidationFailureNotification(org.springframework.validation.Errors errors, Class<?> validationFailedOwningType, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.croz.nrich.notification.api.service.BaseNotificationResponseService

    responseWithExceptionNotification, responseWithNotification, responseWithNotificationActionResolvedFromRequest, responseWithValidationFailureNotification, responseWithValidationFailureNotification

    Methods inherited from interface net.croz.nrich.notification.api.service.NotificationResponseService

    responseWithNotification, responseWithNotificationActionResolvedFromRequest
  • Constructor Details

    • WebMvcNotificationResponseService

      public WebMvcNotificationResponseService()
  • Method Details

    • responseWithValidationFailureNotification

      public net.croz.nrich.notification.api.response.NotificationResponse responseWithValidationFailureNotification(org.springframework.validation.Errors errors, Class<?> validationFailedOwningType, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
      Specified by:
      responseWithValidationFailureNotification in interface net.croz.nrich.notification.api.service.BaseNotificationResponseService<net.croz.nrich.notification.api.response.NotificationResponse>
    • responseWithValidationFailureNotification

      public net.croz.nrich.notification.api.response.NotificationResponse responseWithValidationFailureNotification(jakarta.validation.ConstraintViolationException exception, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
      Specified by:
      responseWithValidationFailureNotification in interface net.croz.nrich.notification.api.service.BaseNotificationResponseService<net.croz.nrich.notification.api.response.NotificationResponse>
    • responseWithExceptionNotification

      public net.croz.nrich.notification.api.response.NotificationResponse responseWithExceptionNotification(Throwable throwable, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData, Object... exceptionMessageArgumentList)
      Specified by:
      responseWithExceptionNotification in interface net.croz.nrich.notification.api.service.BaseNotificationResponseService<net.croz.nrich.notification.api.response.NotificationResponse>
    • responseWithNotificationActionResolvedFromRequest

      public net.croz.nrich.notification.api.response.NotificationResponse responseWithNotificationActionResolvedFromRequest(net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
      Specified by:
      responseWithNotificationActionResolvedFromRequest in interface net.croz.nrich.notification.api.service.BaseNotificationResponseService<net.croz.nrich.notification.api.response.NotificationResponse>
    • responseWithNotification

      public net.croz.nrich.notification.api.response.NotificationResponse responseWithNotification(String actionName, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
      Specified by:
      responseWithNotification in interface net.croz.nrich.notification.api.service.BaseNotificationResponseService<net.croz.nrich.notification.api.response.NotificationResponse>
    • responseWithNotificationActionResolvedFromRequest

      public <D> net.croz.nrich.notification.api.response.NotificationDataResponse<D> responseWithNotificationActionResolvedFromRequest(D data, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
      Specified by:
      responseWithNotificationActionResolvedFromRequest in interface net.croz.nrich.notification.api.service.NotificationResponseService
    • responseWithNotification

      public <D> net.croz.nrich.notification.api.response.NotificationDataResponse<D> responseWithNotification(D data, String actionName, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
      Specified by:
      responseWithNotification in interface net.croz.nrich.notification.api.service.NotificationResponseService
    • notificationResolverService

      public net.croz.nrich.notification.api.service.NotificationResolverService notificationResolverService()
      Specified by:
      notificationResolverService in interface net.croz.nrich.notification.api.service.BaseNotificationResponseService<net.croz.nrich.notification.api.response.NotificationResponse>