Class WebclientPlugin
- java.lang.Object
-
- systems.dmx.core.osgi.PluginActivator
-
- systems.dmx.webclient.WebclientPlugin
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator,PluginContext,AllPluginsActive,IntroduceAssocType,IntroduceRoleType,IntroduceTopicType,PostUpdateTopic,PreCreateAssocType,PreCreateRoleType,PreCreateTopicType,EventListener
public class WebclientPlugin extends PluginActivator implements AllPluginsActive, IntroduceTopicType, IntroduceAssocType, IntroduceRoleType, PreCreateTopicType, PreCreateAssocType, PreCreateRoleType, PostUpdateTopic
-
-
Field Summary
-
Fields inherited from class systems.dmx.core.osgi.PluginActivator
bundle, dmx, mf
-
-
Constructor Summary
Constructors Constructor Description WebclientPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallPluginsActive()voidintroduceAssocType(AssocType assocType)voidintroduceRoleType(RoleType roleType)voidintroduceTopicType(TopicType topicType)voidpostUpdateTopic(Topic topic, ChangeReport report, TopicModel updateModel)Once a view config topic is updated we must update the cached view config and inform the webclient.voidpreCreateAssocType(AssocTypeModel model)Add a default view config to the type in case no one is set.voidpreCreateRoleType(RoleTypeModel model)Add a default view config to the role type in case no one is set.voidpreCreateTopicType(TopicTypeModel model)Add a default view config to the type in case no one is set.-
Methods inherited from class systems.dmx.core.osgi.PluginActivator
getBundleContext, getPluginName, getStaticResource, getUri, init, preInstall, publishFileSystem, serviceArrived, serviceGone, setCoreService, shutdown, start, stop, toString
-
-
-
-
Method Detail
-
allPluginsActive
public void allPluginsActive()
- Specified by:
allPluginsActivein interfaceAllPluginsActive
-
preCreateTopicType
public void preCreateTopicType(TopicTypeModel model)
Add a default view config to the type in case no one is set.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.
- Specified by:
preCreateTopicTypein interfacePreCreateTopicType
-
preCreateAssocType
public void preCreateAssocType(AssocTypeModel model)
Add a default view config to the type in case no one is set.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.
- Specified by:
preCreateAssocTypein interfacePreCreateAssocType
-
preCreateRoleType
public void preCreateRoleType(RoleTypeModel model)
Add a default view config to the role type in case no one is set.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 role type (including its view config) is performed by the type-introduction hook of the Workspaces module. Here we use the pre-create-role-type hook (instead of type- introduction too) as the pre-create-role-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.
- Specified by:
preCreateRoleTypein interfacePreCreateRoleType
-
postUpdateTopic
public void postUpdateTopic(Topic topic, ChangeReport report, TopicModel updateModel)
Once a view config topic is updated we must update the cached view config and inform the webclient.- Specified by:
postUpdateTopicin interfacePostUpdateTopic
-
introduceTopicType
public void introduceTopicType(TopicType topicType)
- Specified by:
introduceTopicTypein interfaceIntroduceTopicType
-
introduceAssocType
public void introduceAssocType(AssocType assocType)
- Specified by:
introduceAssocTypein interfaceIntroduceAssocType
-
introduceRoleType
public void introduceRoleType(RoleType roleType)
- Specified by:
introduceRoleTypein interfaceIntroduceRoleType
-
-