Class DefaultNotificationResolverService

java.lang.Object
net.croz.nrich.notification.service.DefaultNotificationResolverService
All Implemented Interfaces:
net.croz.nrich.notification.api.service.NotificationResolverService

public class DefaultNotificationResolverService extends Object implements net.croz.nrich.notification.api.service.NotificationResolverService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.croz.nrich.notification.api.model.Notification
    createNotificationForAction(String actionName, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
     
    net.croz.nrich.notification.api.model.Notification
    createNotificationForException(Throwable throwable, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData, Object... exceptionMessageArgumentList)
     
    net.croz.nrich.notification.api.model.ValidationFailureNotification
    createNotificationForValidationFailure(jakarta.validation.ConstraintViolationException exception, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
     
    net.croz.nrich.notification.api.model.ValidationFailureNotification
    createNotificationForValidationFailure(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.NotificationResolverService

    createNotificationForAction, createNotificationForException, createNotificationForValidationFailure, createNotificationForValidationFailure
  • Constructor Details

    • DefaultNotificationResolverService

      public DefaultNotificationResolverService()
  • Method Details

    • createNotificationForValidationFailure

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

      public net.croz.nrich.notification.api.model.ValidationFailureNotification createNotificationForValidationFailure(jakarta.validation.ConstraintViolationException exception, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
      Specified by:
      createNotificationForValidationFailure in interface net.croz.nrich.notification.api.service.NotificationResolverService
    • createNotificationForException

      public net.croz.nrich.notification.api.model.Notification createNotificationForException(Throwable throwable, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData, Object... exceptionMessageArgumentList)
      Specified by:
      createNotificationForException in interface net.croz.nrich.notification.api.service.NotificationResolverService
    • createNotificationForAction

      public net.croz.nrich.notification.api.model.Notification createNotificationForAction(String actionName, net.croz.nrich.notification.api.model.AdditionalNotificationData additionalNotificationData)
      Specified by:
      createNotificationForAction in interface net.croz.nrich.notification.api.service.NotificationResolverService