public class WebclientPlugin extends PluginActivator implements AllPluginsActive, IntroduceTopicType, IntroduceAssocType, IntroduceRoleType, PreCreateTopicType, PreCreateAssocType, PreCreateRoleType, PostUpdateTopic
bundle, dmx, mf
Constructor and Description |
---|
WebclientPlugin() |
Modifier and Type | Method and 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.
|
getBundleContext, getPluginName, getStaticResource, getUri, init, preInstall, publishFileSystem, serviceArrived, serviceGone, setCoreService, shutdown, start, stop, toString
public void allPluginsActive()
allPluginsActive
in interface AllPluginsActive
public void preCreateTopicType(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 PreCreateTopicType
public void preCreateAssocType(AssocTypeModel 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.
preCreateAssocType
in interface PreCreateAssocType
public void preCreateRoleType(RoleTypeModel 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 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.
preCreateRoleType
in interface PreCreateRoleType
public void postUpdateTopic(Topic topic, ChangeReport report, TopicModel updateModel)
postUpdateTopic
in interface PostUpdateTopic
public void introduceTopicType(TopicType topicType)
introduceTopicType
in interface IntroduceTopicType
public void introduceAssocType(AssocType assocType)
introduceAssocType
in interface IntroduceAssocType
public void introduceRoleType(RoleType roleType)
introduceRoleType
in interface IntroduceRoleType
Copyright © 2023. All Rights Reserved.