Task #411
closed
Allow using multiple sender implementations for one notification channel
Added by Peter Štrunc over 7 years ago.
Updated over 6 years ago.
Description
When multiple implementations of NotificationSender for particular notification type are present in ApplicationContext, notification is sent using all of them. The goal of this ticket is to implement mechanism for choosing which sender will be used for sending particular notification with given type.
Must haves:
- Admin can select which sender is used for particular notification type
Admin can see, which sender was used to send each notification (even when the sender is no longer in application context)
Admin can globally set what to do, when sender is no longer present in application context (use default, log error) default sender will be used as default
Nice to haves:
Admin can specify multiple senders for one notification type and relationships among them (use all, use first successfull)
- Category set to Notification
- Assignee set to Radek Tomiška
- Target version set to Diamond (7.4.0)
- Target version deleted (
Diamond (7.4.0))
- Status changed from New to In Progress
- Target version set to Garnet (7.8.0)
- Description updated (diff)
- Description updated (diff)
- % Done changed from 0 to 80
It's implemented the same way as filter builders, Configurable interface was added for notification senders.
Registered notification sender implementation with less order is used as default ( by notification type).
Notification sender implementation can be configured by property (see DefaultIdmNotificationConfigurationServiceIntegrationTest):
'idm.sec.<module_id>.notification-sender.<notification_type>.impl=springBeanName'
e.g.:
'idm.sec.core.notification-sender.email.impl=emailNotificationSender'
Documentation remains.
- Status changed from In Progress to Needs feedback
- Assignee changed from Radek Tomiška to Ondřej Kopr
- % Done changed from 80 to 90
- Status changed from Needs feedback to Resolved
- Assignee changed from Ondřej Kopr to Radek Tomiška
- % Done changed from 90 to 100
I made review, everything works nice and clean. Thanks for documentation!
- Status changed from Resolved to Closed
Also available in: Atom
PDF