de.deepamehta.plugins.geomaps.model
Class Geomap
java.lang.Object
de.deepamehta.plugins.geomaps.model.Geomap
- All Implemented Interfaces:
- JSONEnabled
public class Geomap
- extends Object
- implements JSONEnabled
A geomap model: a collection of Geo Coordinate topics.
Features:
- load from DB (by constructor).
- Serialization to JSON.
geomapTopic
protected Topic geomapTopic
topics
protected Map<Long,TopicModel> topics
dms
protected DeepaMehtaService dms
logger
private Logger logger
Geomap
public Geomap(long geomapId,
DeepaMehtaService dms)
- Loads a topicmap from the DB.
getId
public long getId()
fetchGeomapTopics
public static ResultList<RelatedTopic> fetchGeomapTopics(long geomapId,
DeepaMehtaService dms)
containsTopic
public boolean containsTopic(long topicId)
toJSON
public JSONObject toJSON()
- Specified by:
toJSON
in interface JSONEnabled
toString
public String toString()
- Overrides:
toString
in class Object
loadTopics
private void loadTopics()
fetchGeomapTopics
private static ResultList<RelatedTopic> fetchGeomapTopics(Topic geomapTopic,
boolean fetchComposite)
addTopic
private void addTopic(TopicModel topic)
Copyright © 2013. All Rights Reserved.