From f5fd25759a09bf066841e42c91393ddffff0818e Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Fri, 24 Sep 2021 12:04:01 +0200 Subject: [PATCH] added property Name to WorkspaceContent --- .../geoportalcommon/ConvertToDataViewModel.java | 1 + .../products/content/WorkspaceContentDV.java | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/application/geoportalcommon/ConvertToDataViewModel.java b/src/main/java/org/gcube/application/geoportalcommon/ConvertToDataViewModel.java index eaa90c7..2b702fc 100644 --- a/src/main/java/org/gcube/application/geoportalcommon/ConvertToDataViewModel.java +++ b/src/main/java/org/gcube/application/geoportalcommon/ConvertToDataViewModel.java @@ -475,6 +475,7 @@ public class ConvertToDataViewModel { theWSDV.setMimetype(wContent.getMimetype()); theWSDV.setStorageID(wContent.getStorageID()); theWSDV.setId(wContent.getId()); + theWSDV.setName(wContent.getName()); return theWSDV; } diff --git a/src/main/java/org/gcube/application/geoportalcommon/shared/products/content/WorkspaceContentDV.java b/src/main/java/org/gcube/application/geoportalcommon/shared/products/content/WorkspaceContentDV.java index 583a5ce..8499d52 100644 --- a/src/main/java/org/gcube/application/geoportalcommon/shared/products/content/WorkspaceContentDV.java +++ b/src/main/java/org/gcube/application/geoportalcommon/shared/products/content/WorkspaceContentDV.java @@ -27,6 +27,8 @@ public class WorkspaceContentDV implements Serializable { private Long id; + private String name; + public WorkspaceContentDV() { } @@ -63,6 +65,14 @@ public class WorkspaceContentDV implements Serializable { this.link = link; } + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + @Override public String toString() { StringBuilder builder = new StringBuilder(); @@ -74,10 +84,10 @@ public class WorkspaceContentDV implements Serializable { builder.append(link); builder.append(", id="); builder.append(id); + builder.append(", name="); + builder.append(name); builder.append("]"); return builder.toString(); } - - }