Class NotificationService
java.lang.Object
es.kukenan.smartfi.microservice.communication.service.messaging.AbstractDomainEventService
es.kukenan.smartfi.microservice.communication.service.NotificationService
Service class that holds and manage all the on demand notification.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelRepositoryChannel repository.static final StringEvent associated to send on demand message.private UsersRepositoryuser repository.Fields inherited from class es.kukenan.smartfi.microservice.communication.service.messaging.AbstractDomainEventService
CAT_DESTINATION_PREFIX, CAT_LANG, CAT_USER, notificationService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>Get notification channels.voidsendOnDemanNotification(es.kukenan.smartfi.microservice.communications.api.ondemand.OnDemandNotificationRequestDto requestDto) Send on demand notification.Methods inherited from class es.kukenan.smartfi.microservice.communication.service.messaging.AbstractDomainEventService
createVirtualUserForCatDestination, eventTypeDescriptor, findMessages, findRealUser, findRealUserFromOnboarding, handleGenericNotificationEvent, handleGenericNotificationEvent, toMessageSpecialProperties
-
Field Details
-
EVENT_ONDEMAND_NOTIFICATION
Event associated to send on demand message.- See Also:
-
channelRepository
Channel repository. -
usersRepository
user repository.
-
-
Constructor Details
-
NotificationService
public NotificationService()
-
-
Method Details
-
getNotificationsChannels
Get notification channels.- Returns:
- channels
-
sendOnDemanNotification
public void sendOnDemanNotification(es.kukenan.smartfi.microservice.communications.api.ondemand.OnDemandNotificationRequestDto requestDto) Send on demand notification.- Parameters:
requestDto- notification info.
-