Changes between Version 1 and Version 2 of Malted/PluginDevelopmentNotes


Ignore:
Timestamp:
20.05.2013 18:50:18 (8 years ago)
Author:
Malte
Comment:

added default workspace and importModels hint, added clientState hint, added default workspace assingment hint

Legend:

Unmodified
Added
Removed
Modified
  • Malted/PluginDevelopmentNotes

    v1 v2  
    22 
    33== DeepaMehta Webclient Development == 
    4  
    54 
    65=== Implementing Many Simple Renderers === 
     
    1110 
    1211After slicing all my simple_renderers into seperate .js-files, webclient startup works fine again. 
     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 
     18So, 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 
     20Adding ''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 
     25As 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 
     30DeepaMehtas 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.*".