public class KiezatlasPlugin extends de.deepamehta.core.osgi.PluginActivator implements KiezatlasService, de.deepamehta.core.service.event.PostUpdateTopicListener, de.deepamehta.core.service.event.PreSendTopicListener
Constructor and Description |
---|
KiezatlasPlugin() |
Modifier and Type | Method and Description |
---|---|
List<de.deepamehta.core.Topic> |
getAllCriteria()
Returns all Kiezatlas criteria existing in the DB.
|
List<de.deepamehta.core.RelatedTopic> |
getFacetTypes(long websiteId)
Returns the facet types assigned to the given Kiezatlas Website.
|
List<de.deepamehta.core.Topic> |
getGeoObjects(long geomapId)
Returns all Geo Objects assigned to the given geomap.
|
List<de.deepamehta.core.RelatedTopic> |
getGeoObjectsByCategory(long categoryId)
Returns all Geo Objects assigned to the given category.
|
de.deepamehta.core.Topic |
getWebsite(long geomapId)
Returns the "Kiezatlas Website" topic the given geomap is assigned to.
|
void |
postUpdateTopic(de.deepamehta.core.Topic topic,
de.deepamehta.core.model.TopicModel newModel,
de.deepamehta.core.model.TopicModel oldModel) |
void |
preSendTopic(de.deepamehta.core.Topic topic) |
GroupedGeoObjects |
searchCategories(String searchTerm,
long clock)
Searches for categories that match the search term (case-insensitive substring search)
and returns all Geo Objects of those categories, grouped by category.
|
GeoObjects |
searchGeoObjects(String searchTerm,
long clock)
Searches for Geo Objects whose name match the search term (case-insensitive substring search).
|
public de.deepamehta.core.Topic getWebsite(long geomapId)
KiezatlasService
getWebsite
in interface KiezatlasService
public List<de.deepamehta.core.RelatedTopic> getFacetTypes(long websiteId)
KiezatlasService
getFacetTypes
in interface KiezatlasService
public List<de.deepamehta.core.Topic> getAllCriteria()
KiezatlasService
ka2.criteria.
but does not end with .facet
.getAllCriteria
in interface KiezatlasService
public List<de.deepamehta.core.Topic> getGeoObjects(long geomapId)
KiezatlasService
getGeoObjects
in interface KiezatlasService
public List<de.deepamehta.core.RelatedTopic> getGeoObjectsByCategory(long categoryId)
KiezatlasService
getGeoObjectsByCategory
in interface KiezatlasService
public GeoObjects searchGeoObjects(String searchTerm, long clock)
KiezatlasService
searchGeoObjects
in interface KiezatlasService
clock
- The logical clock value send back to the client (contained in GeoObjects).
Allows the client to order asynchronous responses.public GroupedGeoObjects searchCategories(String searchTerm, long clock)
KiezatlasService
searchCategories
in interface KiezatlasService
clock
- The logical clock value send back to the client (contained in GroupedGeoObjects).
Allows the client to order asynchronous responses.public void preSendTopic(de.deepamehta.core.Topic topic)
preSendTopic
in interface de.deepamehta.core.service.event.PreSendTopicListener
public void postUpdateTopic(de.deepamehta.core.Topic topic, de.deepamehta.core.model.TopicModel newModel, de.deepamehta.core.model.TopicModel oldModel)
postUpdateTopic
in interface de.deepamehta.core.service.event.PostUpdateTopicListener
Copyright © 2018. All Rights Reserved.