in ddm-notification-service/src/main/java/com/epam/digital/data/platform/notification/facade/UserNotificationFacade.java [113:128]
private List<Channel> getChannelsFromSettings(Recipient recipient,
UserNotificationMessageDto notificationRecord) {
var userSettings = getUserSettings(recipient, notificationRecord);
var channelObjects =
userSettings.getChannels().stream()
.filter(channelDto ->
channelProducerMap.containsKey(channelDto.getChannel())
&& channelDto.isActivated())
.map(c -> channelMapperMap.get(c.getChannel()).map(c))
.collect(Collectors.toList());
recipient.setChannels(channelObjects);
return channelObjects.stream()
.map(c -> Channel.valueOf(c.getChannel().toUpperCase()))
.collect(Collectors.toList());
}