com.ontimize.util.gis.server.defaultimplementations
Class DefaultLayerConfigurationManager

java.lang.Object
  extended by com.ontimize.util.gis.server.defaultimplementations.DefaultLayerConfigurationManager
All Implemented Interfaces:
IGisLayerConfigurationManager

public class DefaultLayerConfigurationManager
extends java.lang.Object
implements IGisLayerConfigurationManager


Field Summary
protected  java.lang.String columnConfName
           
protected  java.lang.String columnUserId
           
protected  java.lang.String columnXMLDefinition
           
protected  java.lang.String entityName
           
protected  com.ontimize.db.Entity layersConfEntity
           
protected  com.ontimize.db.Entity profileEntity
           
protected  java.lang.Object referenceLocator
           
protected static java.lang.String STR_MISSING_PARAMETER
           
 
Constructor Summary
DefaultLayerConfigurationManager()
           
DefaultLayerConfigurationManager(java.util.Hashtable parameters)
           
 
Method Summary
protected  void checkConfiguration()
          Check if all configuration variables have the correct values
 void deleteLayer(java.lang.Object layerId, int sessionId)
          Delete the layer layerId
 java.lang.Object getLayerDefinition(java.lang.Object layerKeys, int sessionId)
          Get the layer configuration with the identifiers defined in layerKeys
 java.lang.Object getLayersInformation(java.lang.Object layersConfigurationId, int sessionId)
          Get the layers configuration with the identifier layersConfigurationId
 void insertLayer(java.lang.Object insertParameters, int sessionId)
          Insert a new layer with the parameters insertParameters
protected  void processConstructorParameter(java.util.Map.Entry entry)
          Process an entry of the incoming hastable constructor
 void setReferenceLocator(java.lang.Object referenceLocator)
          Sets the Ontimize Reference Locator
 void updateLayer(java.lang.Object layerId, java.lang.Object updateParameters, int sessionId)
          Update the parameters defined at updateParameters for the layer with reference layerId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_MISSING_PARAMETER

protected static java.lang.String STR_MISSING_PARAMETER

entityName

protected java.lang.String entityName

columnConfName

protected java.lang.String columnConfName

columnUserId

protected java.lang.String columnUserId

columnXMLDefinition

protected java.lang.String columnXMLDefinition

layersConfEntity

protected com.ontimize.db.Entity layersConfEntity

profileEntity

protected com.ontimize.db.Entity profileEntity

referenceLocator

protected java.lang.Object referenceLocator
Constructor Detail

DefaultLayerConfigurationManager

public DefaultLayerConfigurationManager()

DefaultLayerConfigurationManager

public DefaultLayerConfigurationManager(java.util.Hashtable parameters)
Method Detail

processConstructorParameter

protected void processConstructorParameter(java.util.Map.Entry entry)
Process an entry of the incoming hastable constructor

Parameters:
entry - Hashtable entry for xml definition parameters. Key -> param name, Value -> param value

checkConfiguration

protected void checkConfiguration()
Check if all configuration variables have the correct values


deleteLayer

public void deleteLayer(java.lang.Object layerId,
                        int sessionId)
                 throws java.lang.Exception
Description copied from interface: IGisLayerConfigurationManager
Delete the layer layerId

Specified by:
deleteLayer in interface IGisLayerConfigurationManager
Parameters:
layerId - Identifier for the layer to delete
sessionId - Session Id for this user
Throws:
java.lang.Exception

getLayersInformation

public java.lang.Object getLayersInformation(java.lang.Object layersConfigurationId,
                                             int sessionId)
                                      throws java.lang.Exception
Description copied from interface: IGisLayerConfigurationManager
Get the layers configuration with the identifier layersConfigurationId

Specified by:
getLayersInformation in interface IGisLayerConfigurationManager
Parameters:
layersConfigurationId - Identifier for the layers configuration data
sessionId - Session Id for this user
Returns:
requested layers configuration data
Throws:
java.lang.Exception

insertLayer

public void insertLayer(java.lang.Object insertParameters,
                        int sessionId)
                 throws java.lang.Exception
Description copied from interface: IGisLayerConfigurationManager
Insert a new layer with the parameters insertParameters

Specified by:
insertLayer in interface IGisLayerConfigurationManager
Parameters:
insertParameters - New layer configuration parameters
sessionId - Session Id for this user
Throws:
java.lang.Exception

updateLayer

public void updateLayer(java.lang.Object layerId,
                        java.lang.Object updateParameters,
                        int sessionId)
                 throws java.lang.Exception
Description copied from interface: IGisLayerConfigurationManager
Update the parameters defined at updateParameters for the layer with reference layerId

Specified by:
updateLayer in interface IGisLayerConfigurationManager
Parameters:
layerId - Identifier for the layer to update
updateParameters - Parameters to update
sessionId - Session Id for this user
Throws:
java.lang.Exception

setReferenceLocator

public void setReferenceLocator(java.lang.Object referenceLocator)
                         throws java.lang.Exception
Description copied from interface: IGisLayerConfigurationManager
Sets the Ontimize Reference Locator

Specified by:
setReferenceLocator in interface IGisLayerConfigurationManager
Parameters:
referenceLocator - Ontimize reference locator
Throws:
java.lang.Exception

getLayerDefinition

public java.lang.Object getLayerDefinition(java.lang.Object layerKeys,
                                           int sessionId)
                                    throws java.lang.Exception
Description copied from interface: IGisLayerConfigurationManager
Get the layer configuration with the identifiers defined in layerKeys

Specified by:
getLayerDefinition in interface IGisLayerConfigurationManager
Parameters:
layerKeys - Identifiers for the layer to query
sessionId - Session Id for this user
Returns:
requested layers configuration data
Throws:
java.lang.Exception