|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.deepamehta.core.osgi.PluginActivator
de.kiezatlas.KiezatlasPlugin
public class KiezatlasPlugin
Field Summary | |
---|---|
private FacetsService |
facetsService
|
private GeomapsService |
geomapsService
|
private Logger |
logger
|
private static String |
ROLE_TYPE_FACET_TYPE
|
private static String |
ROLE_TYPE_GEOMAP
|
private static String |
ROLE_TYPE_WEBSITE
|
private static String |
TYPE_URI_GEO_OBJECT
|
private static String |
TYPE_URI_GEO_OBJECT_NAME
|
private static String |
WEBSITE_FACET_TYPES
|
private static String |
WEBSITE_GEOMAP
|
Fields inherited from class de.deepamehta.core.osgi.PluginActivator |
---|
bundle, dms |
Constructor Summary | |
---|---|
KiezatlasPlugin()
|
Method Summary | |
---|---|
private void |
enrichWithFacets(Topic geoObject,
ResultList<RelatedTopic> facetTypes)
|
private void |
enrichWithMultiFacet(Topic geoObject,
String facetTypeUri)
|
private void |
enrichWithSingleFacet(Topic geoObject,
String facetTypeUri)
|
private List<Topic> |
fetchGeoObjects(long geomapId)
|
List<Topic> |
getAllCriteria()
Returns all Kiezatlas criteria existing in the DB. |
private AssociationDefinition |
getAssocDef(String facetTypeUri)
|
private String |
getChildTypeUri(String facetTypeUri)
|
private ResultList<RelatedTopic> |
getFacetTypes()
Returns the facet types for the current topicmap, or null if the facet types can't be determined. |
ResultList<RelatedTopic> |
getFacetTypes(long websiteId)
Returns the facet types assigned to the given Kiezatlas Website. |
private Topic |
getGeoObject(Topic geoObjectName)
|
List<Topic> |
getGeoObjects(long geomapId)
Returns all Geo Objects assigned to the given geomap. |
List<RelatedTopic> |
getGeoObjectsByCategory(long categoryId)
Returns all Geo Objects assigned to the given category. |
Topic |
getWebsite(long geomapId)
Returns the "Kiezatlas Website" topic the given geomap is assigned to. |
private boolean |
isGeomap(long topicmapId)
|
private boolean |
isMultiFacet(String facetTypeUri)
|
void |
postUpdateTopic(Topic topic,
TopicModel newModel,
TopicModel oldModel)
|
void |
preSendTopic(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). |
private void |
updateFacets(Topic geoObject,
ResultList<RelatedTopic> facetTypes,
TopicModel newModel)
|
Methods inherited from class de.deepamehta.core.osgi.PluginActivator |
---|
getBundleContext, getPluginName, getStaticResource, getUri, init, postInstall, publishDirectory, serviceArrived, serviceGone, setCoreService, shutdown, start, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final String TYPE_URI_GEO_OBJECT
private static final String TYPE_URI_GEO_OBJECT_NAME
private static final String WEBSITE_GEOMAP
private static final String ROLE_TYPE_WEBSITE
private static final String ROLE_TYPE_GEOMAP
private static final String WEBSITE_FACET_TYPES
private static final String ROLE_TYPE_FACET_TYPE
private GeomapsService geomapsService
private FacetsService facetsService
private Logger logger
Constructor Detail |
---|
public KiezatlasPlugin()
Method Detail |
---|
public Topic getWebsite(long geomapId)
KiezatlasService
getWebsite
in interface KiezatlasService
public ResultList<RelatedTopic> getFacetTypes(long websiteId)
KiezatlasService
getFacetTypes
in interface KiezatlasService
public List<Topic> getAllCriteria()
KiezatlasService
ka2.criteria.
but does not end with .facet
.
getAllCriteria
in interface KiezatlasService
public List<Topic> getGeoObjects(long geomapId)
KiezatlasService
getGeoObjects
in interface KiezatlasService
public List<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(Topic topic)
preSendTopic
in interface PreSendTopicListener
public void postUpdateTopic(Topic topic, TopicModel newModel, TopicModel oldModel)
postUpdateTopic
in interface PostUpdateTopicListener
private void enrichWithFacets(Topic geoObject, ResultList<RelatedTopic> facetTypes)
private void enrichWithSingleFacet(Topic geoObject, String facetTypeUri)
private void enrichWithMultiFacet(Topic geoObject, String facetTypeUri)
private void updateFacets(Topic geoObject, ResultList<RelatedTopic> facetTypes, TopicModel newModel)
private ResultList<RelatedTopic> getFacetTypes()
null
.private List<Topic> fetchGeoObjects(long geomapId)
private Topic getGeoObject(Topic geoObjectName)
private boolean isGeomap(long topicmapId)
private boolean isMultiFacet(String facetTypeUri)
private String getChildTypeUri(String facetTypeUri)
private AssociationDefinition getAssocDef(String facetTypeUri)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |