org.gcube.contentmanagement.timeseries.geotools.gisconnectors
Class GISOperations

java.lang.Object
  extended by org.gcube.contentmanagement.timeseries.geotools.gisconnectors.GISOperations

public class GISOperations
extends java.lang.Object


Nested Class Summary
static class GISOperations.featuresTypes
           
 
Field Summary
static java.lang.String DEFAULTSTYLE
           
static java.lang.String TEMPLATEGROUP
           
 
Constructor Summary
GISOperations()
           
 
Method Summary
static java.lang.String createFulfilGeometriesStatement(java.lang.String tableName)
           
 boolean createGroupOnGeoServer(GISInformation gisInfo)
          Creates a new group on the geoserver using a previous template
 boolean createLayers(GISInformation gisInfo)
           
static java.lang.String createLayerTableStatement(java.lang.String tableName, java.lang.String featureName, GISOperations.featuresTypes type)
           
 boolean createNewGroupOnGeoServer(GISInformation gisInfo)
          creates a new group on the most unloaded geoserver
 boolean deleteGroup(GISInformation gisInfo, java.lang.String groupName)
          deletes a group on the geoserver containing it
 boolean deleteLayer(GISInformation gisInfo, java.lang.String layerName)
          deletes a layer on the right geoserver by asking to geonetwork
 boolean deleteStyle(GISInformation gisInfo, java.lang.String styleName)
          deletes a style on the selected geoserver
 boolean generateGisMap(GISInformation gisInfo)
          generates a gis map blocking if a style creation failure happens
 boolean generateGisMap(GISInformation gisInfo, boolean ignoreStylesFailure)
          generates a complete GIS MAP on a remote GEO SERVER The user has to fill in the gisInfo object in order to generate the map
 java.lang.String getCurrentGeoServer()
           
 GeoCaller getGeoCaller(GISInformation gisInfo)
          builds up a GeoCaller which will call geonetwork for getting a geoserver reference and then will use the geoserver like in the old GeoserverCaller
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULTSTYLE

public static java.lang.String DEFAULTSTYLE

TEMPLATEGROUP

public static java.lang.String TEMPLATEGROUP
Constructor Detail

GISOperations

public GISOperations()
Method Detail

getCurrentGeoServer

public java.lang.String getCurrentGeoServer()

createFulfilGeometriesStatement

public static java.lang.String createFulfilGeometriesStatement(java.lang.String tableName)

createLayerTableStatement

public static java.lang.String createLayerTableStatement(java.lang.String tableName,
                                                         java.lang.String featureName,
                                                         GISOperations.featuresTypes type)

getGeoCaller

public GeoCaller getGeoCaller(GISInformation gisInfo)
builds up a GeoCaller which will call geonetwork for getting a geoserver reference and then will use the geoserver like in the old GeoserverCaller

Parameters:
gisInfo -
Returns:

deleteStyle

public boolean deleteStyle(GISInformation gisInfo,
                           java.lang.String styleName)
                    throws java.lang.Exception
deletes a style on the selected geoserver

Parameters:
gisInfo -
styleName -
Returns:
Throws:
java.lang.Exception

deleteLayer

public boolean deleteLayer(GISInformation gisInfo,
                           java.lang.String layerName)
                    throws java.lang.Exception
deletes a layer on the right geoserver by asking to geonetwork

Parameters:
gisInfo -
layerName -
Returns:
Throws:
java.lang.Exception

deleteGroup

public boolean deleteGroup(GISInformation gisInfo,
                           java.lang.String groupName)
                    throws java.lang.Exception
deletes a group on the geoserver containing it

Parameters:
gisInfo -
groupName -
Returns:
Throws:
java.lang.Exception

createLayers

public boolean createLayers(GISInformation gisInfo)
                     throws java.lang.Exception
Throws:
java.lang.Exception

createNewGroupOnGeoServer

public boolean createNewGroupOnGeoServer(GISInformation gisInfo)
                                  throws java.lang.Exception
creates a new group on the most unloaded geoserver

Parameters:
gisInfo -
Returns:
Throws:
java.lang.Exception

createGroupOnGeoServer

public boolean createGroupOnGeoServer(GISInformation gisInfo)
                               throws java.lang.Exception
Creates a new group on the geoserver using a previous template

Parameters:
gisInfo -
Returns:
Throws:
java.lang.Exception

generateGisMap

public boolean generateGisMap(GISInformation gisInfo)
generates a gis map blocking if a style creation failure happens

Parameters:
gisInfo -
Returns:

generateGisMap

public boolean generateGisMap(GISInformation gisInfo,
                              boolean ignoreStylesFailure)
generates a complete GIS MAP on a remote GEO SERVER The user has to fill in the gisInfo object in order to generate the map


main

public static void main(java.lang.String[] args)