|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.util.gis.client.manager.DefaultGisClientManager
public class DefaultGisClientManager
| Field Summary | |
|---|---|
protected IGisDataDispatcher |
dataDispatcher
|
protected com.ontimize.gui.container.EJDialog |
dGisInfo
|
protected com.ontimize.gui.Form |
fGisInfo
|
protected IGisCacheManager |
gisClientCache
|
protected IGisServerManager |
gisServerManager
|
protected int |
lastTicketNumber
|
protected IGisClientSideDataManager |
localDataManager
|
protected com.ontimize.locator.ReferenceLocator |
referenceLocator
|
protected IGisDataRequestsManager |
requestsManager
|
protected java.util.concurrent.ExecutorService |
requestsThreadPool
|
protected java.util.HashMap<java.lang.Object,java.lang.Object> |
storedConfigurations
|
protected java.util.HashMap<java.lang.Object,java.lang.Object> |
storedLayersConfigurations
|
protected java.util.HashMap<java.lang.Object,java.lang.Object> |
storedLayersLists
|
| Constructor Summary | |
|---|---|
DefaultGisClientManager()
|
|
DefaultGisClientManager(java.util.Hashtable parameters)
|
|
DefaultGisClientManager(java.lang.String xmlPath)
|
|
| Method Summary | |
|---|---|
protected void |
addKeyListeners()
|
protected void |
checkGisClientLibraries()
|
void |
clearConfiguration(java.lang.Object configurationId)
Clear all the data on client side related to the given Gis layers configuration |
void |
clearLayersCache(java.lang.Object layersId)
Clear the client data cache related to the given layers identifiers layersId |
void |
deleteLayer(java.lang.Object layerKeys)
Delete the layer layerId |
void |
deleteLayerData(java.lang.Object layerKeys,
java.lang.Object deletedKeys)
Delete the data identified by deletedKeys from the layer
layerId |
IGisCacheManager |
getCacheManager()
Get cache manager |
java.lang.Object |
getConfigurationParameters(java.lang.Object configurationId)
Get the initial configuration parameters for the gis viewer with the identifier configurationId |
IGisDataDispatcher |
getDataDispatcher()
Get Gis data dispatcher |
java.lang.Object |
getDataHandlerReference(java.lang.Object layerKeys)
Get the reference of the data handler related to the given layer |
IGisDataRequestsManager |
getDataRequestsManager()
Get Gis data requests manager |
void |
getLayerData(java.lang.Object requesterId,
java.lang.Object layerKeys,
java.lang.Object appliedFilters)
Request the data related to the filters appliedFilters
from the layer layerId, the requester receives the data throught the method
setData() of interface IDataRequester |
java.lang.Object |
getLayerDataSynchronous(java.lang.Object requesterId,
java.lang.Object layerKeys,
java.lang.Object appliedFilters)
Synchonous request of data related to the filters appliedFilters
from the layer layerId, the requester waits for the client manager data
returning |
java.lang.Object |
getLayersInformation(java.lang.Object layersConfigurationId)
Get the layers configuration with the identifier layersConfigurationId |
IGisClientSideDataManager |
getLocalDataManager()
Gets the client side data manager, if exists |
com.ontimize.locator.ReferenceLocator |
getReferenceLocator()
|
java.lang.String |
getRemotePreference(java.lang.String preference)
Get a remote preference |
IGisServerManager |
getServerManager()
Get gis server manager reference |
protected int |
getTicketNumber()
|
protected void |
init(java.util.Hashtable parameters)
|
protected void |
initCacheManager(java.util.Hashtable<java.lang.String,java.lang.Object> cacheParameters)
Init the Gis Cache Manager with the given parameters |
protected void |
initDataDispatcher(java.util.Hashtable<java.lang.String,java.lang.Object> dispatcherParameters)
Init the client data dispatcher with the given parameters |
protected void |
initDataRequester(java.util.Hashtable<java.lang.String,java.lang.Object> requesterParameters)
Init the client data requester with the given parameters |
protected void |
initGisDataManager(java.lang.Object dataManagerParams,
boolean defaultConf)
|
protected void |
initLogger(java.util.Hashtable<java.lang.String,java.lang.Object> loggerParameters)
Init the Gis Client Logger |
void |
insertLayer(java.lang.Object insertParameters)
Insert a new layer with the parameters insertParameters |
java.lang.Object |
insertLayerData(java.lang.Object layerKeys,
java.lang.Object insertedValues)
Insert the given data insertedValues into the layer
indentified by layerId |
protected void |
log(java.lang.Object o,
int level)
|
protected java.util.Hashtable<java.lang.String,java.lang.Object> |
parseParametersFromXML(java.lang.String xmlPath)
Get the parameters configuration Hashtable from the XML configuration file |
protected void |
registerInformationKey()
|
void |
showGisInformation()
|
void |
updateLayer(java.lang.Object layerKeys,
java.lang.Object updateParameters)
Update the parameters defined at updateParameters for the
layer with reference layerId |
void |
updateLayerData(java.lang.Object layerKeys,
java.lang.Object updatedKeys,
java.lang.Object newValues)
Update the data identified by updatedKeys with the values
newValues for the layer layerId |
void |
updateRemotePreference(java.lang.String preference,
java.lang.String param)
Updates a remote preference |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.HashMap<java.lang.Object,java.lang.Object> storedConfigurations
protected java.util.HashMap<java.lang.Object,java.lang.Object> storedLayersLists
protected java.util.HashMap<java.lang.Object,java.lang.Object> storedLayersConfigurations
protected com.ontimize.gui.container.EJDialog dGisInfo
protected com.ontimize.gui.Form fGisInfo
protected IGisServerManager gisServerManager
protected IGisCacheManager gisClientCache
protected IGisDataDispatcher dataDispatcher
protected IGisDataRequestsManager requestsManager
protected IGisClientSideDataManager localDataManager
protected com.ontimize.locator.ReferenceLocator referenceLocator
protected java.util.concurrent.ExecutorService requestsThreadPool
protected int lastTicketNumber
| Constructor Detail |
|---|
public DefaultGisClientManager()
public DefaultGisClientManager(java.lang.String xmlPath)
public DefaultGisClientManager(java.util.Hashtable parameters)
| Method Detail |
|---|
protected void addKeyListeners()
protected void checkGisClientLibraries()
protected void init(java.util.Hashtable parameters)
protected void registerInformationKey()
public void showGisInformation()
protected void initLogger(java.util.Hashtable<java.lang.String,java.lang.Object> loggerParameters)
loggerParameters - Gis Client Logger configuration parametersprotected void initCacheManager(java.util.Hashtable<java.lang.String,java.lang.Object> cacheParameters)
cacheParameters - Gis Cache Manager configuration parametersprotected void initDataDispatcher(java.util.Hashtable<java.lang.String,java.lang.Object> dispatcherParameters)
dispatcherParameters - Data dispatcher configuration parametersprotected void initDataRequester(java.util.Hashtable<java.lang.String,java.lang.Object> requesterParameters)
requesterParameters - Data requester configuration parameterspublic void clearLayersCache(java.lang.Object layersId)
IGisClientManagerlayersId
clearLayersCache in interface IGisClientManagerlayersId - Indentifier of the layers to delete from the cachepublic void deleteLayer(java.lang.Object layerKeys)
IGisClientManagerlayerId
deleteLayer in interface IGisClientManagerlayerKeys - Identifiers for the layer to delete
public void deleteLayerData(java.lang.Object layerKeys,
java.lang.Object deletedKeys)
IGisClientManagerdeletedKeys from the layer
layerId
deleteLayerData in interface IGisClientManagerlayerKeys - Identifiers for the layer to deletedeletedKeys - Identifiers of the values to deletepublic java.lang.Object getDataHandlerReference(java.lang.Object layerKeys)
IGisClientManager
getDataHandlerReference in interface IGisClientManagerlayerKeys - Identifiers for the layer
public java.lang.Object getLayersInformation(java.lang.Object layersConfigurationId)
IGisClientManagerlayersConfigurationId
getLayersInformation in interface IGisClientManagerlayersConfigurationId - Identifier for the layers configuration data
public java.lang.Object getConfigurationParameters(java.lang.Object configurationId)
IGisClientManagerconfigurationId
getConfigurationParameters in interface IGisClientManagerconfigurationId - Identifier for the configuration data
public void insertLayer(java.lang.Object insertParameters)
IGisClientManagerinsertParameters
insertLayer in interface IGisClientManagerinsertParameters - New layer configuration parameters
public java.lang.Object insertLayerData(java.lang.Object layerKeys,
java.lang.Object insertedValues)
IGisClientManagerinsertedValues into the layer
indentified by layerId
insertLayerData in interface IGisClientManagerlayerKeys - Identifiers for the layer to insertinsertedValues - New values to insert
public void updateLayer(java.lang.Object layerKeys,
java.lang.Object updateParameters)
IGisClientManagerupdateParameters for the
layer with reference layerId
updateLayer in interface IGisClientManagerlayerKeys - Identifiers for the layer to updateupdateParameters - Parameters to update
public void updateLayerData(java.lang.Object layerKeys,
java.lang.Object updatedKeys,
java.lang.Object newValues)
IGisClientManagerupdatedKeys with the values
newValues for the layer layerId
updateLayerData in interface IGisClientManagerlayerKeys - Identifiers for the layer to updateupdatedKeys - Identifiers of the values to updatenewValues - Values to update
public void getLayerData(java.lang.Object requesterId,
java.lang.Object layerKeys,
java.lang.Object appliedFilters)
IGisClientManagerappliedFilters
from the layer layerId, the requester receives the data throught the method
setData() of interface IDataRequester
getLayerData in interface IGisClientManagerrequesterId - Reference to the object that request the datalayerKeys - Identifiers for the layer to requestappliedFilters - Defined filters for the data requestprotected int getTicketNumber()
public java.lang.Object getLayerDataSynchronous(java.lang.Object requesterId,
java.lang.Object layerKeys,
java.lang.Object appliedFilters)
IGisClientManagerappliedFilters
from the layer layerId, the requester waits for the client manager data
returning
getLayerDataSynchronous in interface IGisClientManagerrequesterId - Reference to the object that request the datalayerKeys - Identifiers for the layer to requestappliedFilters - Defined filters for the data request
protected java.util.Hashtable<java.lang.String,java.lang.Object> parseParametersFromXML(java.lang.String xmlPath)
xmlPath - Path to the configuration file
public IGisCacheManager getCacheManager()
IGisClientManager
getCacheManager in interface IGisClientManagerpublic IGisDataDispatcher getDataDispatcher()
IGisClientManager
getDataDispatcher in interface IGisClientManagerpublic IGisServerManager getServerManager()
IGisClientManager
getServerManager in interface IGisClientManagerpublic com.ontimize.locator.ReferenceLocator getReferenceLocator()
getReferenceLocator in interface IGisClientManagerpublic java.lang.String getRemotePreference(java.lang.String preference)
IGisClientManager
getRemotePreference in interface IGisClientManagerpreference - Preference name
public void updateRemotePreference(java.lang.String preference,
java.lang.String param)
IGisClientManager
updateRemotePreference in interface IGisClientManagerpreference - Preference nameparam - Preference value
protected void log(java.lang.Object o,
int level)
public IGisClientSideDataManager getLocalDataManager()
IGisClientManager
getLocalDataManager in interface IGisClientManager
protected void initGisDataManager(java.lang.Object dataManagerParams,
boolean defaultConf)
public void clearConfiguration(java.lang.Object configurationId)
IGisClientManager
clearConfiguration in interface IGisClientManagerconfigurationId - Layers configuration to clearpublic IGisDataRequestsManager getDataRequestsManager()
IGisClientManager
getDataRequestsManager in interface IGisClientManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||