org.gcube.contentmanagement.timeseriesservice.impl.utils
Class Export

java.lang.Object
  extended by org.gcube.contentmanagement.timeseriesservice.impl.utils.Export

public class Export
extends java.lang.Object


Field Summary
static GCUBELog logger
           
 
Constructor Summary
Export()
           
 
Method Summary
static java.lang.String asCsv(ExportRequest req, ColumnDefinition[] definitionsArray, SimpleTable table)
           
static java.lang.String codeListAsCsv(SimpleTable table, java.lang.String codelistName, boolean header)
          allows to export a codelist, delimiter and encoding are fixed (, as delimiter and utf-8 as encoding)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static GCUBELog logger
Constructor Detail

Export

public Export()
Method Detail

asCsv

public static java.lang.String asCsv(ExportRequest req,
                                     ColumnDefinition[] definitionsArray,
                                     SimpleTable table)
                              throws java.lang.Exception
Throws:
java.lang.Exception

codeListAsCsv

public static java.lang.String codeListAsCsv(SimpleTable table,
                                             java.lang.String codelistName,
                                             boolean header)
                                      throws java.lang.Exception
allows to export a codelist, delimiter and encoding are fixed (, as delimiter and utf-8 as encoding)

Parameters:
definitionsArray -
table -
codelistName -
Returns:
Throws:
java.lang.Exception