Class SettingsBackwardCompatibilityService

java.lang.Object
es.kukenan.smartfi.microservice.security.gateway.service.SettingsBackwardCompatibilityService

@Service public class SettingsBackwardCompatibilityService extends Object
Backward compatibility service.
  • Field Details

    • USER_ID_MASK

      private static final String USER_ID_MASK
      User identifier mask.
      See Also:
    • DEVICE_ID_MASK

      private static final String DEVICE_ID_MASK
      Device identifier mask.
      See Also:
    • restTemplate

      private final org.springframework.web.client.RestTemplate restTemplate
      Rest template.
    • sessionCacheUtilities

      private final SessionCacheUtilities sessionCacheUtilities
      Session cache utilities.
    • notificationsHost

      @Value("${security.gateway.service.notifications.uri}") private String notificationsHost
      Notifications host.
    • usersHost

      @Value("${security.gateway.service.users.uri}") private String usersHost
      Users host.
  • Constructor Details

    • SettingsBackwardCompatibilityService

      public SettingsBackwardCompatibilityService(org.springframework.web.client.RestTemplate restTemplate, SessionCacheUtilities sessionCacheUtilities)
      Constructor.
      Parameters:
      restTemplate - Rest template
      sessionCacheUtilities - Session cache utilities
  • Method Details

    • backwardCompatibility

      public org.springframework.http.ResponseEntity<byte[]> backwardCompatibility(String uuid, com.fasterxml.jackson.databind.node.ObjectNode body) throws URISyntaxException
      Do settings backward compatibility calls.
      Parameters:
      uuid - Session identifier
      body - Request body
      Returns:
      Response entity
      Throws:
      URISyntaxException - Uri syntax exception
    • biometricCall

      private org.springframework.http.ResponseEntity<byte[]> biometricCall(com.fasterxml.jackson.databind.JsonNode body, org.springframework.http.HttpHeaders headers, es.kukenan.smartfi.microservice.security.gateway.cache.model.SessionCache sessionCache) throws URISyntaxException
      Throws:
      URISyntaxException
    • pushNotificationCall

      private org.springframework.http.ResponseEntity<byte[]> pushNotificationCall(com.fasterxml.jackson.databind.node.ObjectNode body, org.springframework.http.HttpHeaders headers) throws URISyntaxException
      Throws:
      URISyntaxException