T - Type of response with notification i.e. NotificationDataResponsepublic interface BaseNotificationResponseService<T>
| Modifier and Type | Method and Description |
|---|---|
NotificationResolverService |
notificationResolverService() |
T |
responseWithExceptionNotification(java.lang.Throwable throwable,
AdditionalNotificationData additionalNotificationData,
java.lang.Object... exceptionMessageArgumentList)
Returns response with
Notification instance. |
default T |
responseWithExceptionNotification(java.lang.Throwable throwable,
java.lang.Object... additionalMessageArgumentList) |
default T |
responseWithNotification(java.lang.String actionName) |
T |
responseWithNotification(java.lang.String actionName,
AdditionalNotificationData additionalNotificationData)
Returns response with
Notification instance. |
default T |
responseWithNotificationActionResolvedFromRequest() |
T |
responseWithNotificationActionResolvedFromRequest(AdditionalNotificationData additionalNotificationData)
Returns response with
Notification instance. |
default T |
responseWithValidationFailureNotification(javax.validation.ConstraintViolationException exception) |
T |
responseWithValidationFailureNotification(javax.validation.ConstraintViolationException exception,
AdditionalNotificationData additionalNotificationData)
Returns response with
ValidationFailureNotification instance. |
default T |
responseWithValidationFailureNotification(org.springframework.validation.Errors errors,
java.lang.Class<?> validationFailedOwningType) |
T |
responseWithValidationFailureNotification(org.springframework.validation.Errors errors,
java.lang.Class<?> validationFailedOwningType,
AdditionalNotificationData additionalNotificationData)
Returns response with
ValidationFailureNotification instance. |
T responseWithValidationFailureNotification(org.springframework.validation.Errors errors, java.lang.Class<?> validationFailedOwningType, AdditionalNotificationData additionalNotificationData)
ValidationFailureNotification instance.errors - Spring's Errors that will be used to resolve validation notification messages.validationFailedOwningType - class on which validation errors were foundadditionalNotificationData - additional notification data to add to notificationT responseWithValidationFailureNotification(javax.validation.ConstraintViolationException exception, AdditionalNotificationData additionalNotificationData)
ValidationFailureNotification instance.exception - validation exception that will be used to resolve validation notification messages.additionalNotificationData - additional notification data to add to notificationT responseWithExceptionNotification(java.lang.Throwable throwable, AdditionalNotificationData additionalNotificationData, java.lang.Object... exceptionMessageArgumentList)
Notification instance.throwable - exception for which to resolve notificationadditionalNotificationData - additional notification data to add to notificationexceptionMessageArgumentList - optional exception argument list, will be used when resolving exception messageT responseWithNotification(java.lang.String actionName, AdditionalNotificationData additionalNotificationData)
Notification instance.actionName - name of the action for which to resolve notificationadditionalNotificationData - additional notification data to add to notificationT responseWithNotificationActionResolvedFromRequest(AdditionalNotificationData additionalNotificationData)
Notification instance.additionalNotificationData - additional notification data to add to notificationNotificationResolverService notificationResolverService()
default T responseWithValidationFailureNotification(org.springframework.validation.Errors errors, java.lang.Class<?> validationFailedOwningType)
default T responseWithValidationFailureNotification(javax.validation.ConstraintViolationException exception)
default T responseWithExceptionNotification(java.lang.Throwable throwable, java.lang.Object... additionalMessageArgumentList)
default T responseWithNotificationActionResolvedFromRequest()
default T responseWithNotification(java.lang.String actionName)