|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.ontimize.util.gis.server.manager.GisServerManager
public class GisServerManager
| Field Summary | |
|---|---|
protected IGisDataManager |
dataManager
|
static boolean |
GIS_DEBUG
|
protected IGisLayerConfigurationManager |
layersManager
|
protected IGisLogger |
loggerInstance
|
protected java.lang.Object |
referenceLocator
|
protected IGisSecurityCheck |
securityManager
|
protected java.lang.StringBuilder |
strBuilder
|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
GisServerManager(int port)
|
|
GisServerManager(int port,
com.ontimize.locator.EntityReferenceLocator locator,
java.util.Hashtable hconfig)
|
|
GisServerManager(java.lang.Object prop,
IGisDataManager dataManager,
IGisSecurityCheck securityManager,
int port)
|
|
GisServerManager(java.lang.Object prop,
int port)
|
|
| Method Summary | |
|---|---|
void |
addLog(java.lang.Object o,
int level)
|
protected void |
checkGisServerLibraries()
|
void |
clearProviders(java.lang.Object configurationId)
|
void |
deleteLayer(java.lang.Object layerKeys,
int sessionId)
Delete the layer layerId |
void |
deleteLayerData(java.lang.Object layerKeys,
java.lang.Object deletedKeys,
int sessionId)
Delete the data identified by deletedKeys from the layer
layerId |
java.lang.Object |
getDataHandlerReference(java.lang.Object layerKeys,
int sessionId)
Get the reference of the data handler related to the given layer |
java.lang.Object |
getLayerData(java.lang.Object layerKeys,
java.lang.Object appliedFilters,
int sessionId)
Request the data related to the filters appliedFilters
from the layer layerId |
java.lang.Object |
getLayersInformation(java.lang.Object layersConfigurationId,
int sessionId)
Get the layers configuration with the identifier layersConfigurationId |
protected void |
initGisDataManager(java.lang.Object dataManagerParams,
boolean defaultConf)
Method for gis data manager initial configuration |
protected void |
initGisSecurityManager(java.lang.Object securityManagerParams,
boolean defaultConf)
Method for gis security manager initial configuration |
void |
initLayersConfigurationManager(java.lang.Object layersManagerParams,
boolean defaultConf)
Init the gis server layers configuration manager |
protected void |
initLogger(java.lang.Object propertiesNode)
Initialize the gis logger with the specified configuration |
protected void |
initLogger(java.lang.String propertiesPath)
Initialize the gis logger with the specified configuration |
void |
insertLayer(java.lang.Object insertParameters,
int sessionId)
Insert a new layer with the parameters insertParameters |
java.lang.Object |
insertLayerData(java.lang.Object layerKeys,
java.lang.Object insertedValues,
int sessionId)
Insert the given data insertedValues into the layer
indentified by layerId |
void |
setReferenceLocator(java.lang.Object referenceLocator)
Sets the Ontimize Reference Locator is the GisServerManager class |
void |
updateLayer(java.lang.Object layerKeys,
java.lang.Object updateParameters,
int sessionId)
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,
int sessionId)
Update the data identified by updatedKeys with the values
newValues for the layer layerId |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean GIS_DEBUG
protected java.lang.Object referenceLocator
protected IGisDataManager dataManager
protected IGisSecurityCheck securityManager
protected IGisLayerConfigurationManager layersManager
protected IGisLogger loggerInstance
protected final java.lang.StringBuilder strBuilder
| Constructor Detail |
|---|
public GisServerManager(int port)
throws java.lang.Exception
port - The port number on which the remote object receives calls
java.lang.Exception
public GisServerManager(java.lang.Object prop,
int port)
throws java.lang.Exception
prop - Properties file with all gis server manager configuration parameters
like default configuration values.port - The port number on which the remote object receives calls
java.lang.Exception
public GisServerManager(int port,
com.ontimize.locator.EntityReferenceLocator locator,
java.util.Hashtable hconfig)
throws java.lang.Exception
port - locator - hconfig -
java.lang.Exception
public GisServerManager(java.lang.Object prop,
IGisDataManager dataManager,
IGisSecurityCheck securityManager,
int port)
throws java.lang.Exception
prop - Properties file with all gis server manager configuration parameters
like default configuration values.dataManager - Class to manage data accesssecurityManager - Class to check access to data and security permissionsport - the port number on which the remote object receives calls
java.lang.Exception| Method Detail |
|---|
protected void checkGisServerLibraries()
protected void initGisSecurityManager(java.lang.Object securityManagerParams,
boolean defaultConf)
securityManagerParams - Gis Server XML configuration node corresponding to GisSecurityManagerdefaultConf - Set this value to true to use default configuration instead of xml configuration
protected void initGisDataManager(java.lang.Object dataManagerParams,
boolean defaultConf)
dataManagerParams - Gis Server XML configuration node corresponding to GisDataManagerdefaultConf - Set this value to true to use default configuration instead of xml configuration
public void initLayersConfigurationManager(java.lang.Object layersManagerParams,
boolean defaultConf)
layersManagerParams - Parameters related to layers configuration managerdefaultConf - Set if the server will use the default layers configuration manager or a new one
public void setReferenceLocator(java.lang.Object referenceLocator)
throws java.lang.Exception
IGisServerManager
setReferenceLocator in interface IGisServerManagerreferenceLocator - Ontimize reference locator
java.lang.Exceptionprotected void initLogger(java.lang.String propertiesPath)
propertiesPath - Properties file path with logger configurationprotected void initLogger(java.lang.Object propertiesNode)
propertiesNode - xml node with logger configuration
public void deleteLayer(java.lang.Object layerKeys,
int sessionId)
throws java.lang.Exception
IGisServerManagerlayerId
deleteLayer in interface IGisServerManagerlayerKeys - Identifiers for the layer to deletesessionId - Session Id for this user
java.lang.Exception
public void deleteLayerData(java.lang.Object layerKeys,
java.lang.Object deletedKeys,
int sessionId)
throws java.lang.Exception
IGisServerManagerdeletedKeys from the layer
layerId
deleteLayerData in interface IGisServerManagerlayerKeys - Identifiers for the layer to deletedeletedKeys - Identifiers of the values to deletesessionId - Session Id for this user
java.lang.Exception
public java.lang.Object getDataHandlerReference(java.lang.Object layerKeys,
int sessionId)
throws java.lang.Exception
IGisServerManager
getDataHandlerReference in interface IGisServerManagerlayerKeys - Identifiers for the layer to deletesessionId - Session Id for this user
java.lang.Exception
public java.lang.Object getLayerData(java.lang.Object layerKeys,
java.lang.Object appliedFilters,
int sessionId)
throws java.lang.Exception
IGisServerManagerappliedFilters
from the layer layerId
getLayerData in interface IGisServerManagerlayerKeys - Identifiers for the layer to deleteappliedFilters - Defined filters for the data requestsessionId - Session Id for this user
java.lang.Exception
public java.lang.Object getLayersInformation(java.lang.Object layersConfigurationId,
int sessionId)
throws java.lang.Exception
IGisServerManagerlayersConfigurationId
getLayersInformation in interface IGisServerManagerlayersConfigurationId - Identifier for the layers configuration datasessionId - Session Id for this user
java.lang.Exception
public void insertLayer(java.lang.Object insertParameters,
int sessionId)
throws java.lang.Exception
IGisServerManagerinsertParameters
insertLayer in interface IGisServerManagerinsertParameters - New layer configuration parameterssessionId - Session Id for this user
java.lang.Exception
public java.lang.Object insertLayerData(java.lang.Object layerKeys,
java.lang.Object insertedValues,
int sessionId)
throws java.lang.Exception
IGisServerManagerinsertedValues into the layer
indentified by layerId
insertLayerData in interface IGisServerManagerlayerKeys - Identifiers for the layer to deleteinsertedValues - New values to insertsessionId - Session Id for this user
java.lang.Exception
public void updateLayer(java.lang.Object layerKeys,
java.lang.Object updateParameters,
int sessionId)
throws java.lang.Exception
IGisServerManagerupdateParameters for the
layer with reference layerId
updateLayer in interface IGisServerManagerlayerKeys - Identifiers for the layer to deleteupdateParameters - Parameters to updatesessionId - Session Id for this user
java.lang.Exception
public void updateLayerData(java.lang.Object layerKeys,
java.lang.Object updatedKeys,
java.lang.Object newValues,
int sessionId)
throws java.lang.Exception
IGisServerManagerupdatedKeys with the values
newValues for the layer layerId
updateLayerData in interface IGisServerManagerlayerKeys - Identifiers for the layer to deleteupdatedKeys - Identifiers of the values to updatenewValues - Values to updatesessionId - Session Id for this user
java.lang.Exception
public void addLog(java.lang.Object o,
int level)
throws java.lang.Exception
addLog in interface IGisServerManagerjava.lang.Exception
public void clearProviders(java.lang.Object configurationId)
throws java.lang.Exception
clearProviders in interface IGisServerManagerjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||