Notification Subscription Management
Users need to be able to manage subscriptions of the different kinds of notification channels and corresponding events, overriding the configuration managed by the operator on the level of the security system.
In the Engine Cockpit, operators are able to see and change the user specific configuration for any user.
The new API in the Core can be used by the Portal Team to implement the same functionality for the users themselves.
Audience
Value
- Configurable subscriptions of different notification channels on user level by operators
- Debugging capabilities for operators regarding notifications
- API for Portal to allow users to change their notification settings
Version
Discussion
- Migration of Email-Settings
- Feedback
Next steps
Screenshots / Code

Get config of specific user and notification channel:
public interface NotificationChannel {
NotificationChannelUserConfig configFor(ISecurityMember securityMember);
}
Use config to get subscriptions:
public interface NotificationChannelUserConfig {
NotificationSubscription subscription(String event);
List<NotificationSubscription> subscriptions();
}
Read and write config using subscriptions:
public class NotificationSubscription {
public String event();
public State state();
public void state(State newState);
public boolean isSubscribedByDefault();
public static enum State {
USE_DEFAULT, SUBSCRIBED, NOT_SUBSCRIBED;
}
}