public interface

MapObjectRepository

implements GeoDataRequestResultVisitor<E extends MapObject>
com.microstrategy.web.app.maps.MapObjectRepository<T extends com.microstrategy.web.app.maps.MapObject>
Known Indirect Subclasses

Summary

Public Methods
abstract GeoData getCachedGeoData(String cacheId)
Retrieve the GeoData from the cache.
abstract String loadObjects(String path, Integer shapeType, Map<String, String> config)
Load objects from a specified location with specified config object.
abstract String loadObjects(String path, Integer shapeType)
Load objects from a specified location.
[Expand]
Inherited Methods
From interface com.microstrategy.web.app.maps.GeoDataRequestResultVisitor

Public Methods

public abstract GeoData getCachedGeoData (String cacheId)

Retrieve the GeoData from the cache. The repository is responsible to cache the geometry data. If cache is missing, it should read it from file system and reset the cache and then returns the data object.

Parameters
cacheId The cache Id

public abstract String loadObjects (String path, Integer shapeType, Map<String, String> config)

Load objects from a specified location with specified config object. If the shapeType is already defined in file, then ignore the parameter. Otherwise, assign the type for each shape loaded from the path.

Parameters
path The path to the location where the file located.
shapeType An integer representing the shape category / shape type for the shapes that are saved into repository.
config A map object contains name-value pair. Example: use queryField as the key and kml path as the value
Returns
  • A string as key to access the loaded object later.

public abstract String loadObjects (String path, Integer shapeType)

Load objects from a specified location. If the shapeType is already defined in file, then ignore the parameter. Otherwise, assign the type for each shape loaded from the path.

Parameters
path The path to the location where the file located.
shapeType An integer representing the shape category / shape type for the shapes that are saved into repository.
Returns
  • A string as key to access the loaded object later.