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:
parent
15d85054ed
commit
95c5de0ec6
|
@ -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{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue