All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.imunity.furms.ui.notifications.UINotificationService Maven / Gradle / Ivy

There is a newer version: 4.3.1
Show newest version
/*
 * 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