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 void
allPluginsActive()
void
introduceAssocType(AssocType assocType)
void
introduceRoleType(RoleType roleType)
void
introduceTopicType(TopicType topicType)
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.void
preCreateAssocType(AssocTypeModel model)
Add a default view config to the type in case no one is set.void
preCreateRoleType(RoleTypeModel model)
Add a default view config to the role type in case no one is set.void
preCreateTopicType(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:
allPluginsActive
in 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:
preCreateTopicType
in 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:
preCreateAssocType
in 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:
preCreateRoleType
in 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:
postUpdateTopic
in interfacePostUpdateTopic
-
introduceTopicType
public void introduceTopicType(TopicType topicType)
- Specified by:
introduceTopicType
in interfaceIntroduceTopicType
-
introduceAssocType
public void introduceAssocType(AssocType assocType)
- Specified by:
introduceAssocType
in interfaceIntroduceAssocType
-
introduceRoleType
public void introduceRoleType(RoleType roleType)
- Specified by:
introduceRoleType
in interfaceIntroduceRoleType
-
-