Class UserDeviceTokenDeletedService

java.lang.Object
es.kukenan.smartfi.microservice.communication.service.messaging.UserDeviceTokenDeletedService

@Service public class UserDeviceTokenDeletedService extends Object
Service class that holds and manage all the token expired events.
  • Field Details

    • usersRepository

      @Autowired private UsersRepository usersRepository
      user repository.
    • pushNotificationRepository

      @Autowired PushNotificationRepository 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

      private void checkUserId(String userId)
      Method in charge to check the existence of user.
      Parameters:
      userId - user unique identifier.
    • checkDeviceId

      private void checkDeviceId(String deviceId)
      Method in charge to check the existence of device id.
      Parameters:
      deviceId - device unique identifier.