public interface KiezatlasService
Modifier and Type | Field and Description |
---|---|
static String |
BEZIRKSREGION_FACET |
static String |
GEO_COORDINATE_FACET |
static String |
GEO_OBJECT |
static String |
GEO_OBJECT_ADDRESS |
static String |
GEO_OBJECT_NAME |
static String |
IMAGE_FACET |
static String |
IMAGE_PATH |
static String |
KIEZATLAS_WORKSPACE_NAME |
static de.deepamehta.core.service.accesscontrol.SharingMode |
KIEZATLAS_WORKSPACE_SHARING_MODE |
static String |
KIEZATLAS_WORKSPACE_URI |
static String |
WEBSITE |
static String |
WEBSITE_TITLE |
Modifier and Type | Method and Description |
---|---|
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 |
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 address)
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.
|
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 |
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 model)
Method to update the facet values configured for the given Kiezatlas Website on the Geo Object.
|
static final String KIEZATLAS_WORKSPACE_NAME
static final String KIEZATLAS_WORKSPACE_URI
static final de.deepamehta.core.service.accesscontrol.SharingMode KIEZATLAS_WORKSPACE_SHARING_MODE
static final String WEBSITE
static final String WEBSITE_TITLE
static final String GEO_OBJECT
static final String GEO_OBJECT_NAME
static final String GEO_OBJECT_ADDRESS
static final String GEO_COORDINATE_FACET
static final String IMAGE_FACET
static final String IMAGE_PATH
static final String BEZIRKSREGION_FACET
de.deepamehta.core.Topic getWebsite(long geomapId)
List<de.deepamehta.core.RelatedTopic> getFacetTypes(long websiteId)
List<de.deepamehta.core.TopicType> getFacetTopicTypes(long websiteId)
List<de.deepamehta.core.Topic> getAllCriteria()
ka2.criteria.
but does not end with .facet
.List<de.deepamehta.core.Topic> getGeoObjects(long geomapId)
List<de.deepamehta.core.RelatedTopic> getGeoObjectsBySite(long siteId)
List<de.deepamehta.core.RelatedTopic> getGeoObjectsByCategory(long categoryId)
GeoObjects searchGeoObjectNames(String searchTerm, long clock)
clock
- The logical clock value send back to the client (contained in GeoObjects).
Allows the client to order asynchronous responses.GroupedGeoObjects searchCategories(String searchTerm, long clock)
clock
- The logical clock value send back to the client (contained in GroupedGeoObjects).
Allows the client to order asynchronous responses.de.deepamehta.core.Topic createKiezatlasWebsite(String siteName, String siteUri)
siteName
- siteUri
- de.deepamehta.core.Association addGeoObjectToWebsite(de.deepamehta.core.Topic geoObject, de.deepamehta.core.Topic website)
geoObject
- website
- void removeGeoObjectFromWebsite(de.deepamehta.core.Topic geoObject, de.deepamehta.core.Topic website)
geoObject
- website
- boolean isAssignedToKiezatlasWebsite(de.deepamehta.core.Topic geoObject, de.deepamehta.core.Topic website)
geoObject
- website
- boolean isKiezatlasWorkspaceMember()
long getStandardWorkspaceId()
boolean isKiezatlasWorkspaceMember(de.deepamehta.core.Topic username)
de.deepamehta.geomaps.model.GeoCoordinate getGeoCoordinateByGeoObject(de.deepamehta.core.Topic geoObject)
de.deepamehta.core.Topic enrichWithFacets(de.deepamehta.core.Topic geoObject, long websiteId)
geoObject
- websiteId
- void updateFacets(long geoObjectId, List<de.deepamehta.core.RelatedTopic> facetTypes, de.deepamehta.core.model.TopicModel model)
geoObjectId
- facetTypes
- model
- de.deepamehta.core.Topic getGeoCoordinateFacet(de.deepamehta.core.Topic address)
null
if no geo coordinate is stored.de.deepamehta.core.Topic getGeoObjectByGeoCoordinate(de.deepamehta.core.Topic geoCoords)
de.deepamehta.core.Topic getDomainTopicByGeoCoordinate(de.deepamehta.core.Topic geoCoords)
List<de.deepamehta.core.RelatedTopic> getAggregatingGeoObjects(de.deepamehta.core.Topic bezirksFacet)
Copyright © 2018. All rights reserved.