de.deepamehta.core.service.event
Interface IntroduceTopicTypeListener
- All Superinterfaces:
- EventListener
- All Known Implementing Classes:
- AccessControlPlugin, WebclientPlugin, WorkspacesPlugin
public interface IntroduceTopicTypeListener
- extends EventListener
### FIXDOC
Allows a plugin to modify type definitions -- exisisting ones and future ones.
Plugins get a opportunity to visit (and modify) each type definition extacly once.
This hook is triggered in 2 situations:
- for each type that exists already while a plugin clean install.
- for types created (interactively by the user, or programmatically by a migration) after
the plugin has been installed.
This hook is typically used by plugins which provide cross-cutting concerns by affecting all
type definitions of a DeepaMehta installation. Typically such a plugin adds new data fields to types
or relates types with specific topics.
Examples of plugins which use this hook:
- The "DeepaMehta 4 Workspaces" plugin adds a "Workspaces" field to all types.
- The "DeepaMehta 4 Time" plugin adds timestamp fields to all types.
- The "DeepaMehta 4 Access Control" plugin adds a "Creator" field to all types and relates them to a user.
introduceTopicType
void introduceTopicType(TopicType topicType,
ClientState clientState)
Copyright © 2014. All Rights Reserved.