it.eng.qbe.geo.configuration
Class MapConfiguration

java.lang.Object
  extended by it.eng.qbe.geo.configuration.MapConfiguration

public class MapConfiguration
extends java.lang.Object

The Class MapConfiguration.


Constructor Summary
MapConfiguration()
          Instantiates a new map configuration.
MapConfiguration(java.lang.String contextPath, byte[] template, it.eng.spago.base.SourceBean servReq)
          Builds the MapConfiguration object loading configuration from xml template into SourceBeans.
 
Method Summary
 DatamartProviderConfiguration getDatamartProviderConfiguration()
          Gets the DatamartProvider Configuration.
 java.lang.String getLegend()
          Builds the svg code used for the legend rendering.
 it.eng.spago.base.SourceBean getLegenda()
          Gets the legenda.
static it.eng.spagobi.utilities.callbacks.mapcatalogue.MapCatalogueAccessUtils getMapCatalogueAccessUtils()
          Gets the map catalogue access utils.
 java.lang.String getMapName()
          Gets the map name.
 MapProviderConfiguration getMapProviderConfiguration()
          Gets the MapProvider Configuration.
 MapRendererConfiguration getMapRendererConfiguration()
          Gets the map renderer configuration.
 java.util.Properties getParametersFromRequest(it.eng.spago.base.SourceBean servReq)
          Gets the parameters from request.
 java.lang.String getStyle(int value)
          Recovers the svg style associated to the level of the legend which contains the value.
 void setDatamartProviderConfiguration(DatamartProviderConfiguration datamartProviderConfiguration)
          Sets the DatamartProvider Configuration.
 void setLegenda(it.eng.spago.base.SourceBean legenda)
          Sets the legenda.
static void setMapCatalogueAccessUtils(it.eng.spagobi.utilities.callbacks.mapcatalogue.MapCatalogueAccessUtils mapCatalogueAccessUtils)
          Sets the map catalogue access utils.
 void setMapName(java.lang.String mapName)
          Sets the map name.
 void setMapProviderConfiguration(MapProviderConfiguration mapProviderConfiguration)
          Sets the MapProvider Configuration.
 void setMapRendererConfiguration(MapRendererConfiguration mapRendererConfiguration)
          Sets the map renderer configuration.
 java.lang.String toXml()
          To xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapConfiguration

public MapConfiguration()
Instantiates a new map configuration.


MapConfiguration

public MapConfiguration(java.lang.String contextPath,
                        byte[] template,
                        it.eng.spago.base.SourceBean servReq)
                 throws ConfigurationException
Builds the MapConfiguration object loading configuration from xml template into SourceBeans.

Parameters:
template - The byte array of the xml template
contextPath - the context path
servReq - the serv req
Throws:
ConfigurationException - raised If some configurations is missing or wrong
Method Detail

toXml

public java.lang.String toXml()
To xml.

Returns:
the string

getParametersFromRequest

public java.util.Properties getParametersFromRequest(it.eng.spago.base.SourceBean servReq)
Gets the parameters from request.

Parameters:
servReq - the serv req
Returns:
the parameters from request

getStyle

public java.lang.String getStyle(int value)
Recovers the svg style associated to the level of the legend which contains the value.

Parameters:
value - The value associated to an svg element of the map
Returns:
the svg style associated to the level of the legend which contains the value

getLegend

public java.lang.String getLegend()
Builds the svg code used for the legend rendering.

Returns:
the svg code of the legend

getMapName

public java.lang.String getMapName()
Gets the map name.

Returns:
the map name

setMapName

public void setMapName(java.lang.String mapName)
Sets the map name.

Parameters:
mapName - the map name

getDatamartProviderConfiguration

public DatamartProviderConfiguration getDatamartProviderConfiguration()
Gets the DatamartProvider Configuration.

Returns:
SourceBean that contains the configuration

setDatamartProviderConfiguration

public void setDatamartProviderConfiguration(DatamartProviderConfiguration datamartProviderConfiguration)
Sets the DatamartProvider Configuration.

Parameters:
datamartProviderConfiguration - SourceBean that contains the configuration

getMapProviderConfiguration

public MapProviderConfiguration getMapProviderConfiguration()
Gets the MapProvider Configuration.

Returns:
SourceBean that contains the configuration

setMapProviderConfiguration

public void setMapProviderConfiguration(MapProviderConfiguration mapProviderConfiguration)
Sets the MapProvider Configuration.

Parameters:
mapProviderConfiguration - SourceBean that contains the configuration

getLegenda

public it.eng.spago.base.SourceBean getLegenda()
Gets the legenda.

Returns:
the legenda

setLegenda

public void setLegenda(it.eng.spago.base.SourceBean legenda)
Sets the legenda.

Parameters:
legenda - the new legenda

getMapRendererConfiguration

public MapRendererConfiguration getMapRendererConfiguration()
Gets the map renderer configuration.

Returns:
the map renderer configuration

setMapRendererConfiguration

public void setMapRendererConfiguration(MapRendererConfiguration mapRendererConfiguration)
Sets the map renderer configuration.

Parameters:
mapRendererConfiguration - the new map renderer configuration

getMapCatalogueAccessUtils

public static it.eng.spagobi.utilities.callbacks.mapcatalogue.MapCatalogueAccessUtils getMapCatalogueAccessUtils()
Gets the map catalogue access utils.

Returns:
the map catalogue access utils

setMapCatalogueAccessUtils

public static void setMapCatalogueAccessUtils(it.eng.spagobi.utilities.callbacks.mapcatalogue.MapCatalogueAccessUtils mapCatalogueAccessUtils)
Sets the map catalogue access utils.

Parameters:
mapCatalogueAccessUtils - the new map catalogue access utils