...
- Independent of the UI
- Back-end executable
- Executed by UI (for example by an action), Web services or other modules such as the Workflow and Scheduler
You can write your own custom commands and execute them on-demand or scheduled.
...
Advanced Tables - Table Plus |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Value |
---|
| |
| |
| | |
| | |
| | info.magnolia.commands.impl.MarkNodeAsDeletedCommand | | true | | |
| | info.magnolia.importexport.command.JcrExportCommand | | |
| | info.magnolia.importexport.command.JcrImportCommand | | |
| |
| | info.magnolia.module.activation.commands.DeactivationCommand | | true | |
| | info.magnolia.commands.impl.DeleteCommand | | true | |
| | info.magnolia.commands.impl.RestorePreviousVersionCommand | | true | |
| | info.magnolia.commands.ExportJcrNodeToYamlCommand | |
...
Advanced Tables - Table Plus |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
|
The advantage of using a catalog is that you can have identically named commands. You might want two activate
commands – one for pages and another for assets. To call a command that resides in a catalog, use the catalog name followed by a hyphen, then the command name. For example, you would distinguish the two activate commands by calling one with workflow-activate
and the other with default-activate
.
...
Advanced Tables - Table Plus |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Value |
---|
| |
| | |
| | |
| | |
| | info.magnolia.module.activation.commands.ActivationCommand | |
| | |
| |
| |
| | info.magnolia.commands.impl.VersionCommand | | true | |
| | info.magnolia.commands.DelegateCommand | | default-activate | | |
| |
Executing commands with actions
...
Advanced Tables - Table Plus |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Value |
---|
| |
| | |
| | |
| | |
| |
| |
| | |
| |
| | website | | info.magnolia.ui.framework.action.ActivationActionDefinition | | activate | | icon-publish | |
...
Advanced Tables - Table Plus |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Value |
---|
|
| |
| | |
| | |
| | |
| | /news | | website | | false | | website | | activate | | 0 0 * * * * | | activate each hour the page news.html | |
...
Advanced Tables - Table Plus |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Value |
---|
| |
| | |
| |
| | |
| |
| | com.example.modules.acme.commands.MyCommand | |
...