From 95c5de0ec6098373a109daa92a933be960beab57 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Thu, 21 Nov 2013 14:22:07 +0000 Subject: [PATCH] Fixed Date information git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@85874 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/td/gwtservice/server/TDGWTServiceImpl.java | 4 ++-- .../td/gwtservice/shared/tr/metadata/TRExportMetadata.java | 6 +++--- .../td/gwtservice/shared/tr/metadata/TRImportMetadata.java | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java index 73d4392..d11d242 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java @@ -1182,14 +1182,14 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements if(tMetadata instanceof ExportMetadata){ TRExportMetadata trExportMetadata=new TRExportMetadata(); trExportMetadata.setDestinationType(((ExportMetadata)tMetadata).getDestinationType()); - trExportMetadata.setExportDate(((ExportMetadata)tMetadata).getExportDate()); + trExportMetadata.setExportDate(sdf.format(((ExportMetadata)tMetadata).getExportDate())); trExportMetadata.setUrl(((ExportMetadata)tMetadata).getUri()); listTRMetadata.add(trExportMetadata); }else{ if(tMetadata instanceof ImportMetadata){ TRImportMetadata trImportMetadata=new TRImportMetadata(); trImportMetadata.setSourceType(((ImportMetadata)tMetadata).getSourceType()); - trImportMetadata.setImportDate(((ImportMetadata)tMetadata).getImportDate()); + trImportMetadata.setImportDate(sdf.format(((ImportMetadata)tMetadata).getImportDate())); trImportMetadata.setUrl(((ImportMetadata)tMetadata).getUri()); listTRMetadata.add(trImportMetadata); }else{ 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 4c69845..e7a4e04 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 @@ -17,7 +17,7 @@ public class TRExportMetadata implements TRMetadata { private String destinationType; private String url; - private Date exportDate; + private String exportDate; public String getDestinationType() { return destinationType; @@ -31,10 +31,10 @@ public class TRExportMetadata implements TRMetadata { public void setUrl(String url) { this.url = url; } - public Date getExportDate() { + public String getExportDate() { return exportDate; } - public void setExportDate(Date exportDate) { + public void setExportDate(String exportDate) { this.exportDate = exportDate; } @Override 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 f8d5139..96d508c 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 @@ -16,7 +16,7 @@ public class TRImportMetadata implements TRMetadata { private String sourceType; private String url; - private Date importDate; + private String importDate; public String getSourceType() { return sourceType; @@ -34,11 +34,11 @@ public class TRImportMetadata implements TRMetadata { this.url = url; } - public Date getImportDate() { + public String getImportDate() { return importDate; } - public void setImportDate(Date importDate) { + public void setImportDate(String importDate) { this.importDate = importDate; }