Package com.microstrategy.web.app.maps
Interface MapObjectRepository<T extends MapObject>
-
- All Superinterfaces:
GeoDataRequestResultVisitor<T>
- All Known Implementing Classes:
KMLShapeRepository
,MapShapeRepository
public interface MapObjectRepository<T extends MapObject> extends GeoDataRequestResultVisitor<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GeoData
getCachedGeoData(java.lang.String cacheId)
Retrieve theGeoData
from the cache.java.lang.String
loadObjects(java.lang.String path, java.lang.Integer shapeType)
Load objects from a specified location.java.lang.String
loadObjects(java.lang.String path, java.lang.Integer shapeType, java.util.Map<java.lang.String,java.lang.String> config)
Load objects from a specified location with specified config object.-
Methods inherited from interface com.microstrategy.web.app.maps.GeoDataRequestResultVisitor
addHierarchy, addMatchedMapObject, addNameList, addTileMap, getLookupKey
-
-
-
-
Method Detail
-
loadObjects
java.lang.String loadObjects(java.lang.String path, java.lang.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.
-
loadObjects
java.lang.String loadObjects(java.lang.String path, java.lang.Integer shapeType, java.util.Map<java.lang.String,java.lang.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.
-
getCachedGeoData
GeoData getCachedGeoData(java.lang.String cacheId)
Retrieve theGeoData
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- Returns:
- See Also:
GeoData
-
-