| 12 | |
| 13 | |
| 14 | === Introducing my custom types to DeepaMehta's default workspace === |
| 15 | |
| 16 | '''Assigning your custom types to a workspace is not yet configurable. And manually assigning custom types to the default workspace opens up space for errors.''' |
| 17 | |
| 18 | So, especially in a clean installation (DB from scratch) your plugins migration assigning your types to the defualt workspace depends on the "de.deepamehta.workspaces"-plugin which initially creates the "Default Workspace Topic (uri: de.workspaces.deepamehta)". |
| 19 | |
| 20 | Adding ''de.deepamehta.workspaces'' into the line "importModels = " of my ''plugin.poperties'' file makes sure that the dm4-workspaces-plugin is started, and thus the default workspace topic is created, before my custom plugin starts running any of its migrations. |
| 21 | |
| 22 | |
| 23 | === Working on server-side with dms (Application Service) === |
| 24 | |
| 25 | As a rule of thumb: Whenever you pass the ''ClientState''-Object into a dms.*-call, all necessary ACL- and Workspace-Assignments should be set automatically by DeepaMehta. This happens because the information which "User" is currrently active in which "Workspace" is part of the Session-Cookie. |
| 26 | |
| 27 | |
| 28 | === DeepaMehtas default behaviour for new types introduced by a plugin === |
| 29 | |
| 30 | DeepaMehtas default behaviour for new (programmatically introduced) types is to not automatically assign type's to a "Workspace" if the types uri does not begin with the identifier "dm4.*". |