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
This commit is contained in:
Giancarlo Panichi 2013-11-21 14:22:07 +00:00
parent 15d85054ed
commit 95c5de0ec6
3 changed files with 8 additions and 8 deletions

View File

@ -1182,14 +1182,14 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
if(tMetadata instanceof ExportMetadata){ if(tMetadata instanceof ExportMetadata){
TRExportMetadata trExportMetadata=new TRExportMetadata(); TRExportMetadata trExportMetadata=new TRExportMetadata();
trExportMetadata.setDestinationType(((ExportMetadata)tMetadata).getDestinationType()); trExportMetadata.setDestinationType(((ExportMetadata)tMetadata).getDestinationType());
trExportMetadata.setExportDate(((ExportMetadata)tMetadata).getExportDate()); trExportMetadata.setExportDate(sdf.format(((ExportMetadata)tMetadata).getExportDate()));
trExportMetadata.setUrl(((ExportMetadata)tMetadata).getUri()); trExportMetadata.setUrl(((ExportMetadata)tMetadata).getUri());
listTRMetadata.add(trExportMetadata); listTRMetadata.add(trExportMetadata);
}else{ }else{
if(tMetadata instanceof ImportMetadata){ if(tMetadata instanceof ImportMetadata){
TRImportMetadata trImportMetadata=new TRImportMetadata(); TRImportMetadata trImportMetadata=new TRImportMetadata();
trImportMetadata.setSourceType(((ImportMetadata)tMetadata).getSourceType()); trImportMetadata.setSourceType(((ImportMetadata)tMetadata).getSourceType());
trImportMetadata.setImportDate(((ImportMetadata)tMetadata).getImportDate()); trImportMetadata.setImportDate(sdf.format(((ImportMetadata)tMetadata).getImportDate()));
trImportMetadata.setUrl(((ImportMetadata)tMetadata).getUri()); trImportMetadata.setUrl(((ImportMetadata)tMetadata).getUri());
listTRMetadata.add(trImportMetadata); listTRMetadata.add(trImportMetadata);
}else{ }else{

View File

@ -17,7 +17,7 @@ public class TRExportMetadata implements TRMetadata {
private String destinationType; private String destinationType;
private String url; private String url;
private Date exportDate; private String exportDate;
public String getDestinationType() { public String getDestinationType() {
return destinationType; return destinationType;
@ -31,10 +31,10 @@ public class TRExportMetadata implements TRMetadata {
public void setUrl(String url) { public void setUrl(String url) {
this.url = url; this.url = url;
} }
public Date getExportDate() { public String getExportDate() {
return exportDate; return exportDate;
} }
public void setExportDate(Date exportDate) { public void setExportDate(String exportDate) {
this.exportDate = exportDate; this.exportDate = exportDate;
} }
@Override @Override

View File

@ -16,7 +16,7 @@ public class TRImportMetadata implements TRMetadata {
private String sourceType; private String sourceType;
private String url; private String url;
private Date importDate; private String importDate;
public String getSourceType() { public String getSourceType() {
return sourceType; return sourceType;
@ -34,11 +34,11 @@ public class TRImportMetadata implements TRMetadata {
this.url = url; this.url = url;
} }
public Date getImportDate() { public String getImportDate() {
return importDate; return importDate;
} }
public void setImportDate(Date importDate) { public void setImportDate(String importDate) {
this.importDate = importDate; this.importDate = importDate;
} }