T
- type of the item.D
- CommandActionDefinition
.public class CommandAction<T,D extends CommandActionDefinition> extends AbstractAction<D>
Constructor and Description |
---|
CommandAction(D definition,
info.magnolia.commands.CommandsManager commandsManager,
ValueContext<T> valueContext,
info.magnolia.context.Context context,
AsyncActionExecutor asyncActionExecutor) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
buildParams(T item) |
void |
execute()
Executes the action.
|
protected ValueContext<T> |
getValueContext() |
protected Collection<T> |
resolveTargetItems() |
getDefinition
@Inject public CommandAction(D definition, info.magnolia.commands.CommandsManager commandsManager, ValueContext<T> valueContext, info.magnolia.context.Context context, AsyncActionExecutor asyncActionExecutor)
public void execute()
Action
protected Collection<T> resolveTargetItems()
protected ValueContext<T> getValueContext()
Copyright © 2020 Magnolia International Ltd.. All rights reserved.