From 3b9b348d4d43f4dbaa0b567c8bb4048c9365c62b Mon Sep 17 00:00:00 2001 From: sgiannopoulos Date: Mon, 23 Oct 2023 16:53:32 +0300 Subject: [PATCH] update External Refence --- .../eudat/models/data/ExternalReference.java | 36 ++----------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/ExternalReference.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/ExternalReference.java index e0199b85a..8a9b0943a 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/ExternalReference.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/ExternalReference.java @@ -15,10 +15,7 @@ public class ExternalReference { private String id; private String name; - private String abbreviation; private String pid; - private String originalId; - private String key; private String pidTypeField; private String uri; private String description; @@ -31,22 +28,6 @@ public class ExternalReference { private String lastName; private String tag; - public String getOriginalId() { - return originalId; - } - - public void setOriginalId(String originalId) { - this.originalId = originalId; - } - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - public String getId() { return id; } @@ -159,24 +140,13 @@ public class ExternalReference { this.tag = tag; } - public String getAbbreviation() { - return abbreviation; - } - - public void setAbbreviation(String abbreviation) { - this.abbreviation = abbreviation; - } - public static ExternalReference fromRemoteModel(Map data) { ExternalReference externalReference = new ExternalReference(); if (data == null) return externalReference; externalReference.setId(data.getOrDefault("id", null)); externalReference.setName(data.getOrDefault("name", null)); - externalReference.setAbbreviation(data.getOrDefault("abbreviation", null)); externalReference.setPid(data.getOrDefault("pid", null)); - externalReference.setOriginalId(data.getOrDefault("originalId", null)); - externalReference.setKey(data.getOrDefault("key", null)); externalReference.setPidTypeField(data.getOrDefault("pidTypeField", null)); externalReference.setUri(data.getOrDefault("uri", null)); externalReference.setDescription(data.getOrDefault("description", null)); @@ -192,7 +162,7 @@ public class ExternalReference { } public ExternalReference fromDataRepository(DataRepository entity) { - this.setAbbreviation(entity.getAbbreviation()); +// this.setAbbreviation(entity.getAbbreviation()); this.setName(entity.getLabel()); this.setUri(entity.getUri()); this.setId(entity.getId().toString()); @@ -208,7 +178,7 @@ public class ExternalReference { public ExternalReference fromRegistry(Registry entity){ this.id = entity.getId().toString(); - this.abbreviation = entity.getAbbreviation(); +// this.abbreviation = entity.getAbbreviation(); // this.created = entity.getCreated(); // this.label = entity.getLabel(); this.name = entity.getLabel(); @@ -224,7 +194,7 @@ public class ExternalReference { return this; } public ExternalReference fromService(Service entity) { - this.abbreviation = entity.getAbbreviation(); +// this.abbreviation = entity.getAbbreviation(); // this.created = entity.getCreated(); this.id = entity.getId().toString(); // this.label = entity.getLabel();