Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The CommandsManager class will be extended with a method executeCommand(String catalog, String command, Map<String,Object> parameters) , that will allow to run commands without need to handle Context etc. The UI classes (actions etc.) should use command by calling this method (i.e. this will be the preferred method, but not the only one).

Command Definitions Reorganisation

The commands are still defined in particular modules, as described in http://documentation.magnolia-cms.com/technical-guide/commands.html - but the catalogs are now additive, i.e. it is possible to define a catalog in one module, and add a new command to the catalog in another module. Anyway, it is still forbidden to have two command of the same name in the catalog - if such situation happens, the CommandsManager will produce RuntimeException on its initialisation.

Besides the commands in independent modules (e.g. Data or Forum), there are following commands definitions in the (old) Admin Interface and DMS modules that requires to be moved:

Old pathNew pathNote
/modules/adminInterface/commands/default/activate/modules/activation/commands/default/activate 
/modules/adminInterface/commands/default/deactivate/modules/activation/commands/default/deactivate 
/modules/adminInterface/commands/website/activate/modules/ui-pages-app/commands/website/activateComposite command, composed of 'version' and 'default-activate' command.
/modules/adminInterface/commands/website/delete/modules/ui-pages-app/commands/website/delete 
/modules/dms/commands/dms/activate/modules/dam-app-assets/commands/dms/activateComposite command, composed of 'version' and 'default-activate' command.
/modules/dms/commands/dms/delete/modules/dam-app-assets/commands/dms/delete 

 

Proposals for future goals (not to be implemented in this sprint):

...