From 5b9f1d927f0923e56e67dcba52b8bc59c953bbe3 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Thu, 16 Feb 2023 12:41:34 +0100 Subject: [PATCH] add platformVersion field --- .../icproxy/profiles/ServiceEndpointProfile.java | 3 +++ .../icproxy/resources/ServiceEndpointResource.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/informationsystem/icproxy/profiles/ServiceEndpointProfile.java b/src/main/java/org/gcube/informationsystem/icproxy/profiles/ServiceEndpointProfile.java index fe161a2..f733cb8 100644 --- a/src/main/java/org/gcube/informationsystem/icproxy/profiles/ServiceEndpointProfile.java +++ b/src/main/java/org/gcube/informationsystem/icproxy/profiles/ServiceEndpointProfile.java @@ -18,6 +18,9 @@ public class ServiceEndpointProfile { private String platform="d4science"; @Getter @Setter + private String platformVersion="1.0.0"; + @Getter + @Setter private String accessPointName; @Getter @Setter (AccessLevel.PROTECTED) diff --git a/src/main/java/org/gcube/informationsystem/icproxy/resources/ServiceEndpointResource.java b/src/main/java/org/gcube/informationsystem/icproxy/resources/ServiceEndpointResource.java index da7702a..7559923 100644 --- a/src/main/java/org/gcube/informationsystem/icproxy/resources/ServiceEndpointResource.java +++ b/src/main/java/org/gcube/informationsystem/icproxy/resources/ServiceEndpointResource.java @@ -92,7 +92,8 @@ public class ServiceEndpointResource { if (Objects.nonNull(resourceProfile) && isRoleEnabled()){ ServiceEndpoint newResource= new ServiceEndpoint(); ServiceEndpoint.Profile profile=newResource.newProfile().category(resourceProfile.getCategory()).name(resourceProfile.getName()); - profile.newPlatform().name(resourceProfile.getPlatform()); + ServiceEndpoint.Platform platform=profile.newPlatform().name(resourceProfile.getPlatform()); + platform.version(resourceProfile.getPlatformVersion()); ServiceEndpoint.AccessPoint ap=new ServiceEndpoint.AccessPoint(); ap.name(resourceProfile.getAccessPointName()); ap.address(resourceProfile.getAccessPointAddress());