public interface NotificationResolverService
| Modifier and Type | Method and Description |
|---|---|
default Notification |
createNotificationForAction(java.lang.String actionName) |
Notification |
createNotificationForAction(java.lang.String actionName,
AdditionalNotificationData additionalNotificationData)
Returns
Notification instance for action. |
Notification |
createNotificationForException(java.lang.Throwable throwable,
AdditionalNotificationData additionalNotificationData,
java.lang.Object... exceptionMessageArgumentList)
Returns
Notification instance for exception. |
default Notification |
createNotificationForException(java.lang.Throwable throwable,
java.lang.Object... exceptionMessageArgumentList) |
default ValidationFailureNotification |
createNotificationForValidationFailure(javax.validation.ConstraintViolationException exception) |
ValidationFailureNotification |
createNotificationForValidationFailure(javax.validation.ConstraintViolationException exception,
AdditionalNotificationData additionalNotificationData)
Returns
ValidationFailureNotification instance. |
default ValidationFailureNotification |
createNotificationForValidationFailure(org.springframework.validation.Errors errors,
java.lang.Class<?> validationFailedOwningType) |
ValidationFailureNotification |
createNotificationForValidationFailure(org.springframework.validation.Errors errors,
java.lang.Class<?> validationFailedOwningType,
AdditionalNotificationData additionalNotificationData)
Returns
ValidationFailureNotification instance. |
ValidationFailureNotification createNotificationForValidationFailure(org.springframework.validation.Errors errors, java.lang.Class<?> validationFailedOwningType, AdditionalNotificationData additionalNotificationData)
ValidationFailureNotification instance. Default severity is WARNING. Resolved validation failure messages are added to notification messageList. Title of notification is resolved from code
notification.validation-failed.titleand content of notification is resolved from code:
notification.validation-failed.content.
errors - Springs Errors that will be used to resolve validation notification messages.validationFailedOwningType - class on which validation errors were foundadditionalNotificationData - additional notification data to add to notificationValidationFailureNotification instanceValidationFailureNotification createNotificationForValidationFailure(javax.validation.ConstraintViolationException exception, AdditionalNotificationData additionalNotificationData)
ValidationFailureNotification instance. Default severity is WARNING. Resolved validation failure messages are added to notification messageList. Title of notification is resolved from code
notification.validation-failed.titleand content of notification is resolved from code:
notification.validation-failed.content.
exception - validation exception that will be used to resolve validation notification messages.additionalNotificationData - additional notification data to add to notificationValidationFailureNotification instanceNotification createNotificationForException(java.lang.Throwable throwable, AdditionalNotificationData additionalNotificationData, java.lang.Object... exceptionMessageArgumentList)
Notification instance for exception. Default severity is ERROR. Resolved error message is added as notification content. Title of notification is resolved from code
fullyQualifiedExceptionClass.titleand content of notification is resolved from code:
fullyQualifiedExceptionClass.code.
throwable - exception for which to resolve notificationadditionalNotificationData - additional notification data to add to notificationexceptionMessageArgumentList - optional exception argument list, will be used when resolving exception messageNotification instanceNotification createNotificationForAction(java.lang.String actionName, AdditionalNotificationData additionalNotificationData)
Notification instance for action. Default severity is INFO. Resolved action message is added as notification content. Title of notification is resolved from code
actionName.titleand content of notification is resolved from code:
actionName.code.
actionName - name of the action for which to resolve notificationadditionalNotificationData - additional notification data to add to notificationNotification instancedefault ValidationFailureNotification createNotificationForValidationFailure(org.springframework.validation.Errors errors, java.lang.Class<?> validationFailedOwningType)
default ValidationFailureNotification createNotificationForValidationFailure(javax.validation.ConstraintViolationException exception)
default Notification createNotificationForException(java.lang.Throwable throwable, java.lang.Object... exceptionMessageArgumentList)
default Notification createNotificationForAction(java.lang.String actionName)