001 package de.deepamehta.plugins.geomaps.service; 002 003 import de.deepamehta.plugins.geomaps.model.Geomap; 004 import de.deepamehta.core.RelatedTopic; 005 import de.deepamehta.core.Topic; 006 import de.deepamehta.core.service.PluginService; 007 import de.deepamehta.core.service.ResultList; 008 009 010 011 public interface GeomapsService extends PluginService { 012 013 Geomap getGeomap(long geomapId); 014 015 /** 016 * Retrieves the domain topic that corresponds to a Geo Coordinate topic. 017 * ### TODO: rename method and argument 018 */ 019 Topic getGeoTopic(long topicId); 020 021 // ### TODO: drop this 022 ResultList<RelatedTopic> getGeomapTopics(long geomapId); 023 024 /** 025 * Adds a Geo Coordinate topic to a geomap. 026 * ### TODO: rename method and argument 027 */ 028 void addTopicToGeomap(long geomapId, long topicId); 029 030 void setGeomapState(long geomapId, double lon, double lat, int zoom); 031 }