diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRDescriptionsMetadata.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRDescriptionsMetadata.java index 3fd8e8a..a571f3d 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRDescriptionsMetadata.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRDescriptionsMetadata.java @@ -12,6 +12,10 @@ import java.util.ArrayList; public class TRDescriptionsMetadata implements TRMetadata { private static final long serialVersionUID = -2663624208642658528L; + + String id="DescriptionsMetadata"; + String title="Descriptions"; + ArrayList listTRLocalizedText; public ArrayList getListTRLocalizedText() { @@ -27,6 +31,16 @@ public class TRDescriptionsMetadata implements TRMetadata { return "TRDescriptionsMetadata [listTRLocalizedText=" + listTRLocalizedText + "]"; } + + @Override + public String getId() { + return id; + } + + @Override + public String getTitle() { + return title; + } diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRExportMetadata.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRExportMetadata.java index 55f339a..4c69845 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRExportMetadata.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRExportMetadata.java @@ -12,6 +12,9 @@ import java.util.Date; public class TRExportMetadata implements TRMetadata { private static final long serialVersionUID = -2663624208642658528L; + String id="ExportMetadata"; + String title="Export"; + private String destinationType; private String url; private Date exportDate; @@ -39,6 +42,14 @@ public class TRExportMetadata implements TRMetadata { return "TRExportMetadata [destinationType=" + destinationType + ", url=" + url + ", exportDate=" + exportDate + "]"; } + @Override + public String getId() { + return id; + } + @Override + public String getTitle() { + return title; + } diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRGenericMapMetadata.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRGenericMapMetadata.java index 4e36d81..7130ed2 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRGenericMapMetadata.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRGenericMapMetadata.java @@ -12,6 +12,9 @@ import java.util.HashMap; public class TRGenericMapMetadata implements TRMetadata { private static final long serialVersionUID = -2663624208642658528L; + String id="GenericMapMetadata"; + String title="Generic Map"; + private HashMap metadataMap = new HashMap(); public HashMap getMetadataMap() { @@ -26,6 +29,16 @@ public class TRGenericMapMetadata implements TRMetadata { public String toString() { return "TRGenericMapMetadata [metadataMap=" + metadataMap + "]"; } + + @Override + public String getId() { + return id; + } + + @Override + public String getTitle() { + return title; + } diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRImportMetadata.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRImportMetadata.java index 06f510d..f8d5139 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRImportMetadata.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRImportMetadata.java @@ -11,6 +11,9 @@ import java.util.Date; public class TRImportMetadata implements TRMetadata { private static final long serialVersionUID = -2663624208642658528L; + String id="ImportMetadata"; + String title="Import"; + private String sourceType; private String url; private Date importDate; @@ -45,4 +48,14 @@ public class TRImportMetadata implements TRMetadata { + ", importDate=" + importDate + "]"; } + @Override + public String getId() { + return id; + } + + @Override + public String getTitle() { + return title; + } + } diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRMetadata.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRMetadata.java index 7821257..112b3a8 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRMetadata.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRMetadata.java @@ -11,5 +11,8 @@ import java.io.Serializable; */ public interface TRMetadata extends Serializable { + public String getId(); + public String getTitle(); + } diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRNamesMetadata.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRNamesMetadata.java index 183acd7..39264dc 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRNamesMetadata.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRNamesMetadata.java @@ -13,6 +13,9 @@ public class TRNamesMetadata implements TRMetadata { private static final long serialVersionUID = 7635332011036656032L; + String id="NamesMetadata"; + String title="Names"; + ArrayList listTRLocalizedText; public ArrayList getListTRLocalizedText() { @@ -27,6 +30,16 @@ public class TRNamesMetadata implements TRMetadata { public String toString() { return "TRNamesMetadata [listTRLocalizedText=" + listTRLocalizedText + "]"; } + + @Override + public String getId() { + return id; + } + + @Override + public String getTitle() { + return title; + } diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRVersionMetadata.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRVersionMetadata.java index c53a8f9..9fba299 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRVersionMetadata.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/metadata/TRVersionMetadata.java @@ -13,6 +13,9 @@ public class TRVersionMetadata implements TRMetadata { private static final long serialVersionUID = 5208229342328376604L; + String id="VersionMetadata"; + String title="Version"; + private String version; public String getVersion() { @@ -27,6 +30,16 @@ public class TRVersionMetadata implements TRMetadata { public String toString() { return "TRVersionMetadata [version=" + version + "]"; } + + @Override + public String getId() { + return id; + } + + @Override + public String getTitle() { + return title; + } }