exportData
Class ExportUtils

java.lang.Object
  extended by exportData.ExportUtils

public class ExportUtils
extends java.lang.Object


Field Summary
static javax.xml.xpath.XPathExpression coverageExpression
           
static javax.xml.xpath.XPathExpression featureTypeExpression
           
static javax.xml.xpath.XPathExpression nativeNameExpression
           
static javax.xml.xpath.XPathExpression storeConnectionExpression
           
static javax.xml.xpath.XPathExpression storeExpression
           
 
Constructor Summary
ExportUtils()
           
 
Method Summary
static java.util.Map<java.lang.String,java.lang.String> connectionData(Layer layer, java.lang.String format)
           
static byte[] createCsvFormat(java.util.Map<java.lang.String,ColumnData> columns, java.util.List<java.util.Map<java.lang.String,java.lang.String>> records, Layer layer)
           
static byte[] createCsvFormat(java.util.Map<java.lang.String,ColumnData> columns, java.util.List<java.util.Map<java.lang.String,java.lang.String>> records, Layer layer, BBox requestBbox)
           
static byte[] createExcelFormat(java.lang.String alias, java.util.Map<java.lang.String,ColumnData> columns, java.util.List<java.util.Map<java.lang.String,java.lang.String>> records)
           
static byte[] createExcelFormat(java.lang.String alias, java.util.Map<java.lang.String,ColumnData> columns, java.util.List<java.util.Map<java.lang.String,java.lang.String>> records, BBox requestBbox)
           
static ExportData generateBboxLayerData(User user, java.lang.Long layerId, FeatureInfoRequest requestData, java.lang.String expFormat)
           
static ExportData generateLayerData(User user, java.lang.Long layerId, java.lang.String expFormat)
           
static java.lang.String getAlias(Layer layer, java.lang.String expFormat)
           
static LayerData layerData(Layer layer, java.util.Map<java.lang.String,java.lang.String> connectionParams)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

featureTypeExpression

public static final javax.xml.xpath.XPathExpression featureTypeExpression

coverageExpression

public static final javax.xml.xpath.XPathExpression coverageExpression

storeExpression

public static final javax.xml.xpath.XPathExpression storeExpression

storeConnectionExpression

public static final javax.xml.xpath.XPathExpression storeConnectionExpression

nativeNameExpression

public static final javax.xml.xpath.XPathExpression nativeNameExpression
Constructor Detail

ExportUtils

public ExportUtils()
Method Detail

generateLayerData

public static ExportData generateLayerData(User user,
                                           java.lang.Long layerId,
                                           java.lang.String expFormat)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

createExcelFormat

public static byte[] createExcelFormat(java.lang.String alias,
                                       java.util.Map<java.lang.String,ColumnData> columns,
                                       java.util.List<java.util.Map<java.lang.String,java.lang.String>> records)

createExcelFormat

public static byte[] createExcelFormat(java.lang.String alias,
                                       java.util.Map<java.lang.String,ColumnData> columns,
                                       java.util.List<java.util.Map<java.lang.String,java.lang.String>> records,
                                       BBox requestBbox)

createCsvFormat

public static byte[] createCsvFormat(java.util.Map<java.lang.String,ColumnData> columns,
                                     java.util.List<java.util.Map<java.lang.String,java.lang.String>> records,
                                     Layer layer)

createCsvFormat

public static byte[] createCsvFormat(java.util.Map<java.lang.String,ColumnData> columns,
                                     java.util.List<java.util.Map<java.lang.String,java.lang.String>> records,
                                     Layer layer,
                                     BBox requestBbox)

getAlias

public static java.lang.String getAlias(Layer layer,
                                        java.lang.String expFormat)

connectionData

public static java.util.Map<java.lang.String,java.lang.String> connectionData(Layer layer,
                                                                              java.lang.String format)
                                                                       throws java.lang.Exception
Throws:
java.lang.Exception

layerData

public static LayerData layerData(Layer layer,
                                  java.util.Map<java.lang.String,java.lang.String> connectionParams)

generateBboxLayerData

public static ExportData generateBboxLayerData(User user,
                                               java.lang.Long layerId,
                                               FeatureInfoRequest requestData,
                                               java.lang.String expFormat)
                                        throws java.lang.Exception
Throws:
java.lang.Exception