Class ReceiveNotificationServiceImpl
java.lang.Object
com.is.findyourplace.service.gestioneUtenza.ReceiveNotificationServiceImpl
- All Implemented Interfaces:
ReceiveNotificationService
@Service
public class ReceiveNotificationServiceImpl
extends Object
implements ReceiveNotificationService
-
Constructor Summary
ConstructorsConstructorDescriptionReceiveNotificationServiceImpl(NotificaRepository notificaRepository, NotificaRicevutaRepository notificaRicevutaRepository) Costruttore del Service. -
Method Summary
Modifier and TypeMethodDescriptionTrova Lista di Notifiche Ricevute di un utente.findByIdNotifica(long id) Trova NotificaDto tramite il suo id.findByIdUtenteAndIdNotifica(long idUtente, long idNotifica) Trova NotificaRicevuta tramite l'Id di un utente e l'Id della notifica.voidsetRead(NotificaRicevuta notificaRicevuta, boolean isRead) Cambia il valore che indica se una notifica è stata letta.
-
Constructor Details
-
ReceiveNotificationServiceImpl
public ReceiveNotificationServiceImpl(NotificaRepository notificaRepository, NotificaRicevutaRepository notificaRicevutaRepository) Costruttore del Service.- Parameters:
notificaRepository- NotificaRepositorynotificaRicevutaRepository- NotificaRicevutaRepository
-
-
Method Details
-
findAllNotificheRicevuteByIdUtente
Description copied from interface:ReceiveNotificationServiceTrova Lista di Notifiche Ricevute di un utente.- Specified by:
findAllNotificheRicevuteByIdUtentein interfaceReceiveNotificationService- Parameters:
id- Id dell' Utente- Returns:
- Lista di NotificheRicevute
-
findByIdNotifica
Description copied from interface:ReceiveNotificationServiceTrova NotificaDto tramite il suo id.- Specified by:
findByIdNotificain interfaceReceiveNotificationService- Parameters:
id- Id della Notifica- Returns:
- NotificaDto
-
findByIdUtenteAndIdNotifica
Description copied from interface:ReceiveNotificationServiceTrova NotificaRicevuta tramite l'Id di un utente e l'Id della notifica.- Specified by:
findByIdUtenteAndIdNotificain interfaceReceiveNotificationService- Parameters:
idUtente- Id dell' UtenteidNotifica- Id della Notifica- Returns:
- NotificaRicevuta
-
setRead
Description copied from interface:ReceiveNotificationServiceCambia il valore che indica se una notifica è stata letta.- Specified by:
setReadin interfaceReceiveNotificationService- Parameters:
notificaRicevuta- NotificaRicevutaisRead- true/false
-