|
||||||||||
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> |
fetchAllCriteria()
Returns all Kiezatlas ctriteria. |
private List<Topic> |
fetchGeoObjects(long geomapId)
|
private AssociationDefinition |
getAssocDef(String facetTypeUri)
|
private String |
getChildTypeUri(String facetTypeUri)
|
private ResultList<RelatedTopic> |
getFacetTypes(ClientState clientState)
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)
|
InputStream |
launchWebclient()
|
void |
postUpdateTopic(Topic topic,
TopicModel newModel,
TopicModel oldModel,
ClientState clientState,
Directives directives)
|
void |
preSendTopic(Topic topic,
ClientState clientState)
|
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). |
void |
serviceArrived(PluginService service)
Note: we *wait* for the Access Control service but we don't actually *consume* it. |
void |
serviceGone(PluginService service)
|
private void |
updateFacets(Topic geoObject,
ResultList<RelatedTopic> facetTypes,
TopicModel newModel,
ClientState clientState,
Directives directives)
|
Methods inherited from class de.deepamehta.core.osgi.PluginActivator |
---|
getBundleContext, getUri, init, postInstall, publishDirectory, 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 InputStream launchWebclient()
public Topic getWebsite(long geomapId)
KiezatlasService
getWebsite
in interface KiezatlasService
public ResultList<RelatedTopic> getFacetTypes(long websiteId)
KiezatlasService
getFacetTypes
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 serviceArrived(PluginService service)
serviceArrived
in interface PluginContext
serviceArrived
in class PluginActivator
public void serviceGone(PluginService service)
serviceGone
in interface PluginContext
serviceGone
in class PluginActivator
public void preSendTopic(Topic topic, ClientState clientState)
preSendTopic
in interface PreSendTopicListener
public void postUpdateTopic(Topic topic, TopicModel newModel, TopicModel oldModel, ClientState clientState, Directives directives)
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, ClientState clientState, Directives directives)
private List<Topic> fetchAllCriteria()
ka2.criteria.
but does not end with .facet
.
private ResultList<RelatedTopic> getFacetTypes(ClientState clientState)
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 |