public class KiezatlasPlugin extends de.deepamehta.core.osgi.PluginActivator implements KiezatlasService, de.deepamehta.core.service.event.PostUpdateTopicListener, de.deepamehta.core.service.event.PreSendTopicListener
BEZIRKSREGION_FACET, GEO_COORDINATE_FACET, GEO_OBJECT, GEO_OBJECT_ADDRESS, GEO_OBJECT_NAME, IMAGE_FACET, IMAGE_PATH, KIEZATLAS_WORKSPACE_NAME, KIEZATLAS_WORKSPACE_SHARING_MODE, KIEZATLAS_WORKSPACE_URI, WEBSITE, WEBSITE_TITLE| Constructor and Description |
|---|
KiezatlasPlugin() |
| Modifier and Type | Method and Description |
|---|---|
de.deepamehta.core.Association |
addGeoObjectToWebsite(long geoObjectId,
long siteId)
Useful to create a standard association between a "Geo object" topic and a "Site" topic.
|
de.deepamehta.core.Association |
addGeoObjectToWebsite(de.deepamehta.core.Topic geoObject,
de.deepamehta.core.Topic website)
Creates an assignment between a Kiezatlas Geo Object and the given Kiezatlas Website.
|
de.deepamehta.core.Topic |
createKiezatlasWebsite(String siteName,
String siteUri)
Service method to create unique "Kiezatlas Website" topics.
|
de.deepamehta.core.Topic |
createWebsite(String siteName,
String siteUri)
Useful to create a new or load an existing "Site" topic (by its uri).
|
de.deepamehta.core.Topic |
enrichWithFacets(de.deepamehta.core.Topic geoObject,
long websiteId)
Utility to enrich the given Geo Object with the facets configured for the given Kiezatlas Website.
|
List<de.deepamehta.core.RelatedTopic> |
getAggregatingGeoObjects(de.deepamehta.core.Topic bezirksFacet)
Fetches the Geo Object for any of its aggregated childs.
|
List<de.deepamehta.core.Topic> |
getAllCriteria()
Returns all Kiezatlas criteria existing in the DB.
|
de.deepamehta.core.Topic |
getDomainTopicByGeoCoordinate(de.deepamehta.core.Topic geoCoords)
Fetches the domain topic a Geo Coordinate topic.
|
List<de.deepamehta.core.TopicType> |
getFacetTopicTypes(long websiteId)
Returns the facet type definitions assigned to the given Kiezatlas Website.
|
List<de.deepamehta.core.RelatedTopic> |
getFacetTypes(long websiteId)
Returns the facet types assigned to the given Kiezatlas Website.
|
de.deepamehta.geomaps.model.GeoCoordinate |
getGeoCoordinateByGeoObject(de.deepamehta.core.Topic geoObject)
Fetches the "Geo Coordinate" facet related to the given Geo Object.
|
de.deepamehta.core.Topic |
getGeoCoordinateFacet(de.deepamehta.core.Topic addressTopic)
Fetches the geo coordinate topic for the given topic.
|
de.deepamehta.core.Topic |
getGeoObjectByGeoCoordinate(de.deepamehta.core.Topic geoCoords)
Fetches a Geo Object by a Geo Coordinate topic.
|
List<de.deepamehta.core.Topic> |
getGeoObjects(long geomapId)
Returns all Geo Objects assigned to the given "Geomap" (a special kind of "Topicmap").
|
List<de.deepamehta.core.RelatedTopic> |
getGeoObjectsByCategory(long categoryId)
Returns all "Geo Objects" associated (aggregated, parent) with the given category.
|
List<de.deepamehta.core.RelatedTopic> |
getGeoObjectsBySite(long siteId)
Returns all "Geo Objects" associated (parent) with the given Kiezatlas Website.
|
String |
getKiezatlasWorkspaceMember() |
long |
getStandardWorkspaceId() |
de.deepamehta.core.Topic |
getWebsite(long geomapId)
Returns the "Kiezatlas Website" topic the given geomap is assigned to.
|
boolean |
isAssignedToKiezatlasWebsite(de.deepamehta.core.Topic geoObject,
de.deepamehta.core.Topic website)
Utility to check if the given Geo Object is assigned to the given Kiezatlas Website.
|
boolean |
isKiezatlasWorkspaceMember()
Utility method to check if the requesting user is a member of the "Kiezatlas" workspace.
|
boolean |
isKiezatlasWorkspaceMember(de.deepamehta.core.Topic username)
Utility method to check if the requesting user is a member of the "Kiezatlas" workspace.
|
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)
------------------------------------------ Listener Implementations ------------------------------------
|
void |
removeGeoObjectFromWebsite(long geoObjectId,
long siteId)
Useful to create a standard association between a "Geo object" topic and a "Site" topic.
|
void |
removeGeoObjectFromWebsite(de.deepamehta.core.Topic geoObject,
de.deepamehta.core.Topic website)
Removes an assignment between a Kiezatlas Geo Object and the given Kiezatlas Website.
|
GroupedGeoObjects |
searchCategories(String searchTerm,
long clock)
Searches for categories (topics with typeUri="ka2.criteria.*" introduced via dm4-kiezatlas-etl)
that match the search term (case-insensitive substring search) and returns all Geo Objects of
those categories, grouped by category.
|
GeoObjects |
searchGeoObjectNames(String searchTerm,
long clock)
Searches for Geo Objects whose name match the search term (case-insensitive substring search).
|
void |
updateFacets(long geoObjectId,
List<de.deepamehta.core.RelatedTopic> facetTypes,
de.deepamehta.core.model.TopicModel newModel)
Method to update the facet values configured for the given Kiezatlas Website on the Geo Object.
|
public de.deepamehta.core.Topic createWebsite(String siteName, String siteUri)
siteName - siteUri - public void removeGeoObjectFromWebsite(long geoObjectId,
long siteId)
geoObjectId - siteId - public de.deepamehta.core.Association addGeoObjectToWebsite(long geoObjectId,
long siteId)
geoObjectId - siteId - public de.deepamehta.core.Topic getWebsite(long geomapId)
KiezatlasServicegetWebsite in interface KiezatlasServicepublic List<de.deepamehta.core.RelatedTopic> getFacetTypes(long websiteId)
KiezatlasServicegetFacetTypes in interface KiezatlasServicepublic List<de.deepamehta.core.TopicType> getFacetTopicTypes(long websiteId)
KiezatlasServicegetFacetTopicTypes in interface KiezatlasServicepublic List<de.deepamehta.core.RelatedTopic> getGeoObjectsBySite(long siteId)
KiezatlasServicegetGeoObjectsBySite in interface KiezatlasServicepublic List<de.deepamehta.core.Topic> getAllCriteria()
KiezatlasServiceka2.criteria.
but does not end with .facet.getAllCriteria in interface KiezatlasServicepublic List<de.deepamehta.core.Topic> getGeoObjects(long geomapId)
KiezatlasServicegetGeoObjects in interface KiezatlasServicepublic List<de.deepamehta.core.RelatedTopic> getGeoObjectsByCategory(long categoryId)
KiezatlasServicegetGeoObjectsByCategory in interface KiezatlasServicepublic String getKiezatlasWorkspaceMember()
public long getStandardWorkspaceId()
getStandardWorkspaceId in interface KiezatlasServicepublic GeoObjects searchGeoObjectNames(String searchTerm, long clock)
KiezatlasServicesearchGeoObjectNames in interface KiezatlasServiceclock - 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)
KiezatlasServicesearchCategories in interface KiezatlasServiceclock - The logical clock value send back to the client (contained in GroupedGeoObjects).
Allows the client to order asynchronous responses.public de.deepamehta.core.Topic createKiezatlasWebsite(String siteName, String siteUri)
KiezatlasServicecreateKiezatlasWebsite in interface KiezatlasServicepublic de.deepamehta.core.Association addGeoObjectToWebsite(de.deepamehta.core.Topic geoObject,
de.deepamehta.core.Topic website)
KiezatlasServiceaddGeoObjectToWebsite in interface KiezatlasServicepublic void removeGeoObjectFromWebsite(de.deepamehta.core.Topic geoObject,
de.deepamehta.core.Topic website)
KiezatlasServiceremoveGeoObjectFromWebsite in interface KiezatlasServicepublic de.deepamehta.geomaps.model.GeoCoordinate getGeoCoordinateByGeoObject(de.deepamehta.core.Topic geoObject)
KiezatlasServicegetGeoCoordinateByGeoObject in interface KiezatlasServicepublic de.deepamehta.core.Topic getGeoObjectByGeoCoordinate(de.deepamehta.core.Topic geoCoords)
KiezatlasServicegetGeoObjectByGeoCoordinate in interface KiezatlasServicepublic de.deepamehta.core.Topic getDomainTopicByGeoCoordinate(de.deepamehta.core.Topic geoCoords)
KiezatlasServicegetDomainTopicByGeoCoordinate in interface KiezatlasServicepublic de.deepamehta.core.Topic getGeoCoordinateFacet(de.deepamehta.core.Topic addressTopic)
KiezatlasServicegetGeoCoordinateFacet in interface KiezatlasServicenull if no geo coordinate is stored.public List<de.deepamehta.core.RelatedTopic> getAggregatingGeoObjects(de.deepamehta.core.Topic bezirksFacet)
KiezatlasServicegetAggregatingGeoObjects in interface KiezatlasServicepublic boolean isAssignedToKiezatlasWebsite(de.deepamehta.core.Topic geoObject,
de.deepamehta.core.Topic website)
KiezatlasServiceisAssignedToKiezatlasWebsite in interface KiezatlasServicepublic boolean isKiezatlasWorkspaceMember()
KiezatlasServiceisKiezatlasWorkspaceMember in interface KiezatlasServicepublic boolean isKiezatlasWorkspaceMember(de.deepamehta.core.Topic username)
KiezatlasServiceisKiezatlasWorkspaceMember in interface KiezatlasServicepublic de.deepamehta.core.Topic enrichWithFacets(de.deepamehta.core.Topic geoObject,
long websiteId)
KiezatlasServiceenrichWithFacets in interface KiezatlasServicepublic void updateFacets(long geoObjectId,
List<de.deepamehta.core.RelatedTopic> facetTypes,
de.deepamehta.core.model.TopicModel newModel)
KiezatlasServiceupdateFacets in interface KiezatlasServicepublic void preSendTopic(de.deepamehta.core.Topic topic)
preSendTopic in interface de.deepamehta.core.service.event.PreSendTopicListenerpublic 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.PostUpdateTopicListenerCopyright © 2018. All rights reserved.