Class UserDeviceTokenDeletedService
java.lang.Object
es.kukenan.smartfi.microservice.communication.service.messaging.UserDeviceTokenDeletedService
Service class that holds and manage all the token expired events.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) PushNotificationRepositoryPush notifications repository.private UsersRepositoryuser repository. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckDeviceId(String deviceId) Method in charge to check the existence of device id.private voidcheckUserId(String userId) Method in charge to check the existence of user.voidhandleUserDeviceTokenDeletedEvent(es.kukenan.smartfi.microservice.clients.events.tokendeleted.UserDeviceTokenDeletedEvent userDeviceTokenDeletedEvent) Method to handle and manage UserDeviceTokenDeleted event.
-
Field Details
-
usersRepository
user repository. -
pushNotificationRepository
Push notifications repository.
-
-
Constructor Details
-
UserDeviceTokenDeletedService
public UserDeviceTokenDeletedService()
-
-
Method Details
-
handleUserDeviceTokenDeletedEvent
public void handleUserDeviceTokenDeletedEvent(es.kukenan.smartfi.microservice.clients.events.tokendeleted.UserDeviceTokenDeletedEvent userDeviceTokenDeletedEvent) Method to handle and manage UserDeviceTokenDeleted event.- Parameters:
userDeviceTokenDeletedEvent- event received with data.
-
checkUserId
Method in charge to check the existence of user.- Parameters:
userId- user unique identifier.
-
checkDeviceId
Method in charge to check the existence of device id.- Parameters:
deviceId- device unique identifier.
-