de.deepamehta.plugins.webclient
Class WebclientPlugin

java.lang.Object
  extended by de.deepamehta.core.osgi.PluginActivator
      extended by de.deepamehta.plugins.webclient.WebclientPlugin
All Implemented Interfaces:
de.deepamehta.core.osgi.PluginContext, de.deepamehta.core.service.event.AllPluginsActiveListener, de.deepamehta.core.service.event.IntroduceAssociationTypeListener, de.deepamehta.core.service.event.IntroduceTopicTypeListener, de.deepamehta.core.service.event.PostUpdateTopicListener, de.deepamehta.core.service.event.PreUpdateTopicListener, de.deepamehta.core.service.EventListener, org.osgi.framework.BundleActivator

public class WebclientPlugin
extends de.deepamehta.core.osgi.PluginActivator
implements de.deepamehta.core.service.event.AllPluginsActiveListener, de.deepamehta.core.service.event.IntroduceTopicTypeListener, de.deepamehta.core.service.event.IntroduceAssociationTypeListener, de.deepamehta.core.service.event.PreUpdateTopicListener, de.deepamehta.core.service.event.PostUpdateTopicListener


Field Summary
 
Fields inherited from class de.deepamehta.core.osgi.PluginActivator
bundle, dms
 
Constructor Summary
WebclientPlugin()
           
 
Method Summary
 void allPluginsActive()
           
 de.deepamehta.core.service.ResultList getRelatedTopics(long topicId)
           
 de.deepamehta.core.Topic getTopics(String typeUri, int maxResultSize)
          Performs a by-type search and creates a search result topic.
 void introduceAssociationType(de.deepamehta.core.AssociationType assocType)
           
 void introduceTopicType(de.deepamehta.core.TopicType topicType)
           
 void postUpdateTopic(de.deepamehta.core.Topic topic, de.deepamehta.core.model.TopicModel newModel, de.deepamehta.core.model.TopicModel oldModel)
          Once a view configuration is updated in the DB we must update the cached view configuration model.
 void preUpdateTopic(de.deepamehta.core.Topic topic, de.deepamehta.core.model.TopicModel newModel)
           
 de.deepamehta.core.Topic searchTopics(String searchTerm, String fieldUri)
          Performs a fulltext search and creates a search result topic.
 
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
 

Constructor Detail

WebclientPlugin

public WebclientPlugin()
Method Detail

searchTopics

public de.deepamehta.core.Topic searchTopics(String searchTerm,
                                             String fieldUri)
Performs a fulltext search and creates a search result topic.


getTopics

public de.deepamehta.core.Topic getTopics(String typeUri,
                                          int maxResultSize)
Performs a by-type search and creates a search result topic.

Note: this resource method is actually part of the Type Search plugin. TODO: proper modularization. Either let the Type Search plugin provide its own REST resource (with another namespace again) or make the Type Search plugin an integral part of the Webclient plugin.


getRelatedTopics

public de.deepamehta.core.service.ResultList getRelatedTopics(long topicId)

allPluginsActive

public void allPluginsActive()
Specified by:
allPluginsActive in interface de.deepamehta.core.service.event.AllPluginsActiveListener

preUpdateTopic

public void preUpdateTopic(de.deepamehta.core.Topic topic,
                           de.deepamehta.core.model.TopicModel newModel)
Specified by:
preUpdateTopic in interface de.deepamehta.core.service.event.PreUpdateTopicListener

postUpdateTopic

public void postUpdateTopic(de.deepamehta.core.Topic topic,
                            de.deepamehta.core.model.TopicModel newModel,
                            de.deepamehta.core.model.TopicModel oldModel)
Once a view configuration is updated in the DB we must update the cached view configuration model.

Specified by:
postUpdateTopic in interface de.deepamehta.core.service.event.PostUpdateTopicListener

introduceTopicType

public void introduceTopicType(de.deepamehta.core.TopicType topicType)
Specified by:
introduceTopicType in interface de.deepamehta.core.service.event.IntroduceTopicTypeListener

introduceAssociationType

public void introduceAssociationType(de.deepamehta.core.AssociationType assocType)
Specified by:
introduceAssociationType in interface de.deepamehta.core.service.event.IntroduceAssociationTypeListener


Copyright © 2015. All rights reserved.