Fixed Export Parameters
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@86500 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
fcd3b8f9f8
commit
1a22b05b81
|
@ -1502,7 +1502,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
parameterInstances.put(Constants.SEPARATOR,
|
||||
exportSession.getSeparator());
|
||||
parameterInstances.put(Constants.COLUMNS,
|
||||
exportSession.getColumnsAsString());
|
||||
exportSession.getColumnsAsArrayOfString());
|
||||
return parameterInstances;
|
||||
}
|
||||
|
||||
|
|
|
@ -47,6 +47,14 @@ public class CSVExportSession implements Serializable {
|
|||
return columnsAsString;
|
||||
}
|
||||
|
||||
public String[] getColumnsAsArrayOfString(){
|
||||
ArrayList<String> columnsAsString=new ArrayList<String>();
|
||||
for(ColumnData cData: columns){
|
||||
columnsAsString.add(cData.getName());
|
||||
}
|
||||
return columnsAsString.toArray(new String[columnsAsString.size()]);
|
||||
}
|
||||
|
||||
public String getEncoding() {
|
||||
return encoding;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ package org.gcube.portlets.user.td.gwtservice.shared.sdmx;
|
|||
import java.io.Serializable;
|
||||
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.type.Agencies;
|
||||
|
||||
|
||||
|
||||
|
@ -21,27 +22,33 @@ public class SDMXExportSession implements Serializable {
|
|||
|
||||
protected String id;
|
||||
protected TabResource tabResource;
|
||||
|
||||
|
||||
protected Agencies agency;
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public TabResource getTabResource() {
|
||||
return tabResource;
|
||||
}
|
||||
public void setTabResource(TabResource tabResource) {
|
||||
this.tabResource = tabResource;
|
||||
}
|
||||
public String getId() {
|
||||
return id;
|
||||
public Agencies getAgency() {
|
||||
return agency;
|
||||
}
|
||||
|
||||
public void setAgency(Agencies agency) {
|
||||
this.agency = agency;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SDMXExportSession [id=" + id + ", tabResource=" + tabResource
|
||||
+ "]";
|
||||
+ ", agency=" + agency + "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue