com.mizar.faces.javax.utils
Class MapCacheUtils

java.lang.Object
  extended by com.mizar.faces.javax.utils.MapCacheUtils

Deprecated.

@Deprecated
public class MapCacheUtils
extends java.lang.Object

There is no need for this Class to be at the Faces level. No further work should be done here. Use the more generalized Class in the MizarMetadata package.

See Also:
MapCacheTools

Constructor Summary
MapCacheUtils(java.lang.String user, java.lang.String password, java.lang.String serverUrl, java.lang.String mcsAdminUrl, java.lang.String adminUrl, java.lang.String dataSource)
          Deprecated.  
 
Method Summary
 java.lang.String bringCacheOnline(java.lang.String cacheName)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 void clearAllGeomCache()
          Deprecated.  
 java.lang.String clearCache(GeometryBean bean)
          Deprecated. Clears all levels of all map tiles that the table might occur in.
 java.lang.String clearCache(GeometryBean bean, double[] affectedArea)
          Deprecated.  
 java.lang.String clearCache(GeometryBean bean, oracle.spatial.geometry.JGeometry affectedArea)
          Deprecated.  
 java.lang.String clearCache(java.lang.String cacheName, int level)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String clearCache(java.lang.String cacheName, int[] levels)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String clearCache(java.lang.String cacheName, int[] levels, double[] ordinates)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String clearCache(java.lang.String cacheName, int[] levels, oracle.spatial.geometry.JGeometry geom)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String clearCache(java.lang.String cacheName, int level, double[] ordinates)
          Deprecated. The method interprets geometry as a point if it has a length of 2.
 java.lang.String clearCache(java.lang.String cacheName, int level, oracle.spatial.geometry.JGeometry geom)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String clearGeomCache(java.lang.String themeName)
          Deprecated.  
 java.lang.String clearGeomCaches(java.util.List<UserSdoThemesBean> beans)
          Deprecated.  
 java.lang.String getAdminRequestStatus(int requestNumber)
          Deprecated.  
 int[] getAllLevels(GeometryBean bean)
          Deprecated.  
 java.util.List<CacheInstance> getCacheInstances()
          Deprecated.  
 java.lang.String getCacheStatus()
          Deprecated. The method will work with either the mcserver or mcsadmin urls
 java.lang.String getClientConfig(java.lang.String cacheName)
          Deprecated. The method will work with either the mcserver or mcsadmin urls
 java.util.Map<java.lang.String,ClientConfig> getClientConfigs()
          Deprecated.  
 java.lang.String getDataSource()
          Deprecated.  
 int getEstimatedDiskSpaceRequired()
          Deprecated.  
 int getEstimatedTileRemaining()
          Deprecated.  
 int getEstimatedTimeRemaining()
          Deprecated.  
 java.lang.String getMapCache(java.lang.String cacheName)
          Deprecated.  
 MapTileServerResponse getMapTileServerResponse()
          Deprecated.  
 java.lang.String getMcsAdminUrl()
          Deprecated.  
 int getRequestId()
          Deprecated.  
 java.lang.String getServerUrl()
          Deprecated.  
 java.lang.String getUser()
          Deprecated.  
 java.lang.String prefetchCache(GeometryBean bean)
          Deprecated. Prefetches all levels of all map tiles that the table might occur in.
 java.lang.String prefetchCache(java.lang.String cacheName, int level)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String prefetchCache(java.lang.String cacheName, int[] levels)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String prefetchCache(java.lang.String cacheName, int[] levels, double[] ordinates)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String prefetchCache(java.lang.String cacheName, int[] levels, oracle.spatial.geometry.JGeometry geom)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String prefetchCache(java.lang.String cacheName, int level, double[] ordinates)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String prefetchCache(java.lang.String cacheName, int level, oracle.spatial.geometry.JGeometry geom)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String refreshCache(GeometryBean bean)
          Deprecated. Refreshes all levels of all map tiles that the table might occur in.
 java.lang.String refreshCache(java.lang.String cacheName, int level)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String refreshCache(java.lang.String cacheName, int[] levels)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String refreshCache(java.lang.String cacheName, int[] levels, double[] ordinates)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String refreshCache(java.lang.String cacheName, int[] levels, oracle.spatial.geometry.JGeometry geom)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String refreshCache(java.lang.String cacheName, int level, double[] ordinates)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String refreshCache(java.lang.String cacheName, int level, oracle.spatial.geometry.JGeometry geom)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String removeCacheInstance(java.lang.String cacheName, boolean cleanDisk, boolean removePermanently)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String restartCacheServer()
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 java.lang.String sendRequest(java.lang.String url, java.lang.String requestBody)
          Deprecated.  
 java.lang.String sendRequests(java.lang.String url, java.util.List<java.lang.String> requests)
          Deprecated.  
 void setDataSource(java.lang.String dataSource)
          Deprecated.  
 void setMcsAdminUrl(java.lang.String adminUrl)
          Deprecated.  
 void setPassword(java.lang.String password)
          Deprecated.  
 void setServerUrl(java.lang.String serverUrl)
          Deprecated.  
 void setUser(java.lang.String user)
          Deprecated.  
 java.lang.String takeCacheOffline(java.lang.String cacheName)
          Deprecated. The method requires the mcsadmin serverUrl, otherwise it will do nothing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapCacheUtils

public MapCacheUtils(java.lang.String user,
                     java.lang.String password,
                     java.lang.String serverUrl,
                     java.lang.String mcsAdminUrl,
                     java.lang.String adminUrl,
                     java.lang.String dataSource)
Deprecated. 
Method Detail

getCacheStatus

public java.lang.String getCacheStatus()
Deprecated. 
The method will work with either the mcserver or mcsadmin urls

Returns:
the response to the get_cache_status request

getClientConfig

public java.lang.String getClientConfig(java.lang.String cacheName)
Deprecated. 
The method will work with either the mcserver or mcsadmin urls

Parameters:
cacheName -
Returns:

removeCacheInstance

public java.lang.String removeCacheInstance(java.lang.String cacheName,
                                            boolean cleanDisk,
                                            boolean removePermanently)
Deprecated. 
The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName -
cleanDisk -
removePermanently -
Returns:

getAdminRequestStatus

public java.lang.String getAdminRequestStatus(int requestNumber)
Deprecated. 
Parameters:
requestNumber -
Returns:

takeCacheOffline

public java.lang.String takeCacheOffline(java.lang.String cacheName)
Deprecated. 
The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName -
Returns:

bringCacheOnline

public java.lang.String bringCacheOnline(java.lang.String cacheName)
Deprecated. 
The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName -
Returns:

restartCacheServer

public java.lang.String restartCacheServer()
Deprecated. 
The method requires the mcsadmin serverUrl, otherwise it will do nothing

Returns:
the response to the restart_cache_server request

clearCache

public java.lang.String clearCache(java.lang.String cacheName,
                                   int level)
Deprecated. 
The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName - a name of a cache map in the current data source
level - a valid zoomLevel for the cached map
Returns:
the response to the clear_cache map_cache_name request

clearCache

public java.lang.String clearCache(java.lang.String cacheName,
                                   int level,
                                   double[] ordinates)
Deprecated. 
The method interprets geometry as a point if it has a length of 2. Otherwise as a polyline unless the first and last coordinates are the same and then it is assumed to be a polygon.

The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName - a name of a cache map in the current data source
level - a valid zoomLevel for the cached map
ordinates - a 2D geometry
Returns:
the response to the clear_cache map_cache_name request

clearCache

public java.lang.String clearCache(java.lang.String cacheName,
                                   int level,
                                   oracle.spatial.geometry.JGeometry geom)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName - a name of a cache map in the current data source
level - a valid zoomLevel for the cached map
geom -
Returns:
the response to the clear_cache map_cache_name request

getAllLevels

public int[] getAllLevels(GeometryBean bean)
Deprecated. 

clearCache

public java.lang.String clearCache(java.lang.String cacheName,
                                   int[] levels)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName - a name of a cache map in the current data source
levels - an array of valid zoomLevels for the cached map
Returns:
the response to the clear_cache map_cache_name request

clearCache

public java.lang.String clearCache(java.lang.String cacheName,
                                   int[] levels,
                                   double[] ordinates)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

The method interprets geometry as a point if it has a length of 2. Otherwise as a polyline unless the first and last coordinates are the same and then it is assumed to be a polygon.

Parameters:
cacheName - a name of a cache map in the current data source
levels - an array of valid zoomLevels for the cached map
ordinates - a 2D geometry
Returns:
the response to the clear_cache map_cache_name request

clearCache

public java.lang.String clearCache(java.lang.String cacheName,
                                   int[] levels,
                                   oracle.spatial.geometry.JGeometry geom)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName - a name of a cache map in the current data source
levels - an array of valid zoomLevels for the cached map
geom -
Returns:
the response to the clear_cache map_cache_name request

clearCache

public java.lang.String clearCache(GeometryBean bean)
Deprecated. 
Clears all levels of all map tiles that the table might occur in.

Parameters:
bean -
Returns:
the response to the refresh_cache map_cache_name request

clearCache

public java.lang.String clearCache(GeometryBean bean,
                                   oracle.spatial.geometry.JGeometry affectedArea)
Deprecated. 
Parameters:
bean -
Returns:
See Also:
clearCache(GeometryBean bean)

clearCache

public java.lang.String clearCache(GeometryBean bean,
                                   double[] affectedArea)
Deprecated. 
Parameters:
bean -
Returns:
See Also:
clearCache(GeometryBean bean)

clearAllGeomCache

public void clearAllGeomCache()
Deprecated. 

clearGeomCaches

public java.lang.String clearGeomCaches(java.util.List<UserSdoThemesBean> beans)
Deprecated. 

clearGeomCache

public java.lang.String clearGeomCache(java.lang.String themeName)
Deprecated. 

prefetchCache

public java.lang.String prefetchCache(java.lang.String cacheName,
                                      int level)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName - a name of a cache map in the current data source
level - a valid zoomLevel for the cached map
Returns:
the response to the prefetch_cache map_cache_name request

prefetchCache

public java.lang.String prefetchCache(java.lang.String cacheName,
                                      int level,
                                      double[] ordinates)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

The method interprets geometry as a point if it has a length of 2. Otherwise as a polyline unless the first and last coordinates are the same and then it is assumed to be a polygon.

Parameters:
cacheName - a name of a cache map in the current data source
level - a valid zoomLevel for the cached map
ordinates - a 2D geometry
Returns:
the response to the prefetch_cache map_cache_name request

prefetchCache

public java.lang.String prefetchCache(java.lang.String cacheName,
                                      int level,
                                      oracle.spatial.geometry.JGeometry geom)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName - a name of a cache map in the current data source
level - a valid zoomLevel for the cached map
geom -
Returns:
the response to the prefetch_cache map_cache_name request

prefetchCache

public java.lang.String prefetchCache(java.lang.String cacheName,
                                      int[] levels)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName - a name of a cache map in the current data source
levels - an array of valid zoomLevels for the cached map
Returns:
the response to the prefetch_cache map_cache_name request

prefetchCache

public java.lang.String prefetchCache(java.lang.String cacheName,
                                      int[] levels,
                                      double[] ordinates)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

The method interprets geometry as a point if it has a length of 2. Otherwise as a polyline unless the first and last coordinates are the same and then it is assumed to be a polygon.

Parameters:
cacheName - a name of a cache map in the current data source
levels - an array of valid zoomLevels for the cached map
ordinates - a 2D geometry
Returns:
the response to the prefetch_cache map_cache_name request

prefetchCache

public java.lang.String prefetchCache(java.lang.String cacheName,
                                      int[] levels,
                                      oracle.spatial.geometry.JGeometry geom)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName - a name of a cache map in the current data source
levels - an array of valid zoomLevels for the cached map
geom -
Returns:
the response to the prefetch_cache map_cache_name request

prefetchCache

public java.lang.String prefetchCache(GeometryBean bean)
Deprecated. 
Prefetches all levels of all map tiles that the table might occur in.

Parameters:
bean -
Returns:
the response to the refresh_cache map_cache_name request

refreshCache

public java.lang.String refreshCache(java.lang.String cacheName,
                                     int level)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName - a name of a cache map in the current data source
level - a valid zoomLevel for the cached map
Returns:
the response to the refresh_cache map_cache_name request

refreshCache

public java.lang.String refreshCache(java.lang.String cacheName,
                                     int level,
                                     double[] ordinates)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

The method interprets geometry as a point if it has a length of 2. Otherwise as a polyline unless the first and last coordinates are the same and then it is assumed to be a polygon.

Parameters:
cacheName - a name of a cache map in the current data source
level - a valid zoomLevel for the cached map
ordinates - a 2D geometry
Returns:
the response to the refresh_cache map_cache_name request

refreshCache

public java.lang.String refreshCache(java.lang.String cacheName,
                                     int level,
                                     oracle.spatial.geometry.JGeometry geom)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName - a name of a cache map in the current data source
level - a valid zoomLevel for the cached map
geom -
Returns:
the response to the refresh_cache map_cache_name request

refreshCache

public java.lang.String refreshCache(java.lang.String cacheName,
                                     int[] levels)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName - a name of a cache map in the current data source
levels - an array of valid zoomLevels for the cached map
Returns:
the response to the refresh_cache map_cache_name request

refreshCache

public java.lang.String refreshCache(java.lang.String cacheName,
                                     int[] levels,
                                     double[] ordinates)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

The method interprets geometry as a point if it has a length of 2. Otherwise as a polyline unless the first and last coordinates are the same and then it is assumed to be a polygon.

Parameters:
cacheName - a name of a cache map in the current data source
levels - an array of valid zoomLevels for the cached map
ordinates - a 2D geometry
Returns:
the response to the refresh_cache map_cache_name request

refreshCache

public java.lang.String refreshCache(java.lang.String cacheName,
                                     int[] levels,
                                     oracle.spatial.geometry.JGeometry geom)
Deprecated. 

The method requires the mcsadmin serverUrl, otherwise it will do nothing

Parameters:
cacheName - a name of a cache map in the current data source
levels - an array of valid zoomLevels for the cached map
geom -
Returns:
the response to the refresh_cache map_cache_name request

refreshCache

public java.lang.String refreshCache(GeometryBean bean)
Deprecated. 
Refreshes all levels of all map tiles that the table might occur in.

Parameters:
bean -
Returns:
the response to the refresh_cache map_cache_name request

setDataSource

public void setDataSource(java.lang.String dataSource)
Deprecated. 

getDataSource

public java.lang.String getDataSource()
Deprecated. 

getMapCache

public java.lang.String getMapCache(java.lang.String cacheName)
Deprecated. 

setServerUrl

public void setServerUrl(java.lang.String serverUrl)
Deprecated. 
Parameters:
serverUrl - must be the full URL specification of the server (mcserver) servlet as specified in web.xml

getServerUrl

public java.lang.String getServerUrl()
Deprecated. 

setMcsAdminUrl

public void setMcsAdminUrl(java.lang.String adminUrl)
Deprecated. 
Parameters:
adminUrl - must be the full URL specification of the administration (mcsadmin) servlet as specified in web.xml

getMcsAdminUrl

public java.lang.String getMcsAdminUrl()
Deprecated. 

setUser

public void setUser(java.lang.String user)
Deprecated. 

getUser

public java.lang.String getUser()
Deprecated. 

setPassword

public void setPassword(java.lang.String password)
Deprecated. 

getCacheInstances

public java.util.List<CacheInstance> getCacheInstances()
Deprecated. 

getClientConfigs

public java.util.Map<java.lang.String,ClientConfig> getClientConfigs()
Deprecated. 

getMapTileServerResponse

public MapTileServerResponse getMapTileServerResponse()
Deprecated. 

getRequestId

public int getRequestId()
Deprecated. 

getEstimatedTileRemaining

public int getEstimatedTileRemaining()
Deprecated. 

getEstimatedTimeRemaining

public int getEstimatedTimeRemaining()
Deprecated. 

getEstimatedDiskSpaceRequired

public int getEstimatedDiskSpaceRequired()
Deprecated. 

sendRequests

public java.lang.String sendRequests(java.lang.String url,
                                     java.util.List<java.lang.String> requests)
Deprecated. 

sendRequest

public java.lang.String sendRequest(java.lang.String url,
                                    java.lang.String requestBody)
Deprecated. 
Parameters:
requestBody -
Returns:
the response to the request, might include an error message or single space if no response found.