add platformVersion field

This commit is contained in:
Roberto Cirillo 2023-02-16 12:41:34 +01:00
parent b064f74fbd
commit 5b9f1d927f
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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());