Class SettingsBackwardCompatibilityService
java.lang.Object
es.kukenan.smartfi.microservice.security.gateway.service.SettingsBackwardCompatibilityService
Backward compatibility service.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringDevice identifier mask.private StringNotifications host.private final org.springframework.web.client.RestTemplateRest template.private final SessionCacheUtilitiesSession cache utilities.private static final StringUser identifier mask.private StringUsers host. -
Constructor Summary
ConstructorsConstructorDescriptionSettingsBackwardCompatibilityService(org.springframework.web.client.RestTemplate restTemplate, SessionCacheUtilities sessionCacheUtilities) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<byte[]>backwardCompatibility(String uuid, com.fasterxml.jackson.databind.node.ObjectNode body) Do settings backward compatibility calls.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) private org.springframework.http.ResponseEntity<byte[]>pushNotificationCall(com.fasterxml.jackson.databind.node.ObjectNode body, org.springframework.http.HttpHeaders headers)
-
Field Details
-
USER_ID_MASK
User identifier mask.- See Also:
-
DEVICE_ID_MASK
Device identifier mask.- See Also:
-
restTemplate
private final org.springframework.web.client.RestTemplate restTemplateRest template. -
sessionCacheUtilities
Session cache utilities. -
notificationsHost
Notifications host. -
usersHost
Users host.
-
-
Constructor Details
-
SettingsBackwardCompatibilityService
public SettingsBackwardCompatibilityService(org.springframework.web.client.RestTemplate restTemplate, SessionCacheUtilities sessionCacheUtilities) Constructor.- Parameters:
restTemplate- Rest templatesessionCacheUtilities- 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 identifierbody- 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
-