
io.imunity.furms.ui.notifications.UINotificationService Maven / Gradle / Ivy
/*
* Copyright (c) 2020 Bixbit s.c. All rights reserved.
* See LICENSE file for licensing information.
*/
package io.imunity.furms.ui.notifications;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
@Service
public class UINotificationService {
private final List notificationProducers;
UINotificationService(List notificationProducers) {
this.notificationProducers = notificationProducers;
}
public Set findAllCurrentUserNotification(){
return notificationProducers.stream()
.flatMap(NotificationProducer::findAllCurrentUserNotifications)
.collect(Collectors.toSet());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy