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.PreCreateTopicTypeListener, de.deepamehta.core.service.event.PreCreateAssociationTypeListener, de.deepamehta.core.service.event.PostUpdateTopicListener
| Constructor and Description |
|---|
WebclientPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
allPluginsActive() |
List<de.deepamehta.core.RelatedTopic> |
getRelatedTopics(long objectId) |
de.deepamehta.core.Topic |
getTopics(String typeUri)
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 updateModel,
de.deepamehta.core.model.TopicModel oldTopic)
Once a view configuration is updated in the DB we must update the cached view configuration model.
|
void |
preCreateAssociationType(de.deepamehta.core.model.AssociationTypeModel model)
Add a default view config to the type in case no one is set.
|
void |
preCreateTopicType(de.deepamehta.core.model.TopicTypeModel model)
Add a default view config to the type in case no one is set.
|
de.deepamehta.core.Topic |
searchTopics(String searchTerm,
String fieldUri)
Performs a fulltext search and creates a search result topic.
|
public de.deepamehta.core.Topic searchTopics(String searchTerm, String fieldUri)
public de.deepamehta.core.Topic getTopics(String typeUri)
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 service or make the Type Search plugin an integral part of the Webclient plugin.
public List<de.deepamehta.core.RelatedTopic> getRelatedTopics(long objectId)
public void allPluginsActive()
allPluginsActive in interface de.deepamehta.core.service.event.AllPluginsActiveListenerpublic void preCreateTopicType(de.deepamehta.core.model.TopicTypeModel model)
Note: the default view config needs a workspace assignment. The default view config must be added *before* the assignment can take place. Workspace assignment for a type (including its components like the view config) is performed by the type-introduction hook of the Workspaces module. Here we use the pre-create-type hook (instead of type-introduction too) as the pre-create-type hook is guaranteed to be invoked *before* type-introduction. On the other hand the order of type-introduction invocations is not deterministic accross plugins.
preCreateTopicType in interface de.deepamehta.core.service.event.PreCreateTopicTypeListenerpublic void preCreateAssociationType(de.deepamehta.core.model.AssociationTypeModel model)
Note: the default view config needs a workspace assignment. The default view config must be added *before* the assignment can take place. Workspace assignment for a type (including its components like the view config) is performed by the type-introduction hook of the Workspaces module. Here we use the pre-create-type hook (instead of type-introduction too) as the pre-create-type hook is guaranteed to be invoked *before* type-introduction. On the other hand the order of type-introduction invocations is not deterministic accross plugins.
preCreateAssociationType in interface de.deepamehta.core.service.event.PreCreateAssociationTypeListenerpublic void postUpdateTopic(de.deepamehta.core.Topic topic,
de.deepamehta.core.model.TopicModel updateModel,
de.deepamehta.core.model.TopicModel oldTopic)
postUpdateTopic in interface de.deepamehta.core.service.event.PostUpdateTopicListenerpublic void introduceTopicType(de.deepamehta.core.TopicType topicType)
introduceTopicType in interface de.deepamehta.core.service.event.IntroduceTopicTypeListenerpublic void introduceAssociationType(de.deepamehta.core.AssociationType assocType)
introduceAssociationType in interface de.deepamehta.core.service.event.IntroduceAssociationTypeListenerCopyright © 2018. All rights reserved.