XWIKI-17034: Allow to define different grouping strategy for notifications (#2203)
Previous work was about introducing strategies to group events for creating composite events. This work is about strategies for chosing how many mails should be sent for each composite event to notify by email. Historically the strategy was hardcoded and consisted in putting all composite events in the same email. Here we provide different strategies: the previous one, but also a strategy allowing to send one email per composite event, and another one allowing to send a separate email specifically for mentions. That work also improves previous API to use a clear UserReference instead of a String which is vague. Co-authored-by:Manuel Leduc <manuel.leduc@xwiki.com> Co-authored-by:
Thomas Mortagne <thomas.mortagne@xwiki.com>
Showing
- xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-notifiers/xwiki-platform-notifications-notifiers-default/src/test/java/org/xwiki/notifications/notifiers/internal/email/DefaultPeriodicMimeMessageIteratorTest.java 82 additions, 18 deletions...nternal/email/DefaultPeriodicMimeMessageIteratorTest.java
- xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-sources/src/main/java/org/xwiki/notifications/sources/internal/DefaultGroupingEventManager.java 8 additions, 14 deletions...cations/sources/internal/DefaultGroupingEventManager.java
- xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-sources/src/main/java/org/xwiki/notifications/sources/internal/DefaultParametrizedNotificationManager.java 9 additions, 3 deletions...rces/internal/DefaultParametrizedNotificationManager.java
- xwiki-platform-tools/xwiki-platform-tool-configuration-resources/src/main/resources/xwiki.properties.vm 8 additions, 0 deletions...guration-resources/src/main/resources/xwiki.properties.vm
Loading
Please register or sign in to comment