D
- ActivationActionDefinition
.public class ActivationAction<D extends ActivationActionDefinition> extends AbstractCommandAction<D>
ActivationActionDefinition.isRecursive()
.Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_MODIFIEDONLY |
COMMAND_RESULT, LONG_RUNNING_ACTION_NOTIFICATION, PARALLEL_EXECUTION_NOT_ALLOWED_NOTIFICATION
Constructor and Description |
---|
ActivationAction(D definition,
JcrItemAdapter item,
info.magnolia.commands.CommandsManager commandsManager,
info.magnolia.event.EventBus admincentralEventBus,
SubAppContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
ActivationAction(D definition,
List<JcrItemAdapter> items,
info.magnolia.commands.CommandsManager commandsManager,
info.magnolia.event.EventBus admincentralEventBus,
SubAppContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
buildParams(javax.jcr.Item jcrItem)
Builds a map of parameters which will be passed to the current command
for execution.
|
protected String |
getErrorMessage() |
protected String |
getMessage(boolean success) |
protected void |
onError(Exception e)
Class that implement CommansActionBase should use
this in order to perform tasks or notification in case of error.
|
protected void |
onPostExecute()
Post Command Execution.
|
executeOnItem, getCommand, getCommandsManager, getFailureMessage, getI18n, getParams, getSuccessMessage, isInvokeAsynchronously, onPreExecute
execute, getCurrentItem, getErrorNotification, getFailedItems, getItemComparator, getItems, getSortedItems, getUiContext, setCurrentItem
getDefinition
public static final String ATTRIBUTE_MODIFIEDONLY
public ActivationAction(D definition, JcrItemAdapter item, info.magnolia.commands.CommandsManager commandsManager, @Named(value="admincentral") info.magnolia.event.EventBus admincentralEventBus, SubAppContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
public ActivationAction(D definition, List<JcrItemAdapter> items, info.magnolia.commands.CommandsManager commandsManager, @Named(value="admincentral") info.magnolia.event.EventBus admincentralEventBus, SubAppContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
protected Map<String,Object> buildParams(javax.jcr.Item jcrItem)
AbstractCommandAction
AbstractCommandAction.onPreExecute()
. Default implementation returns
a map containing the parameters defined at
CommandActionDefinition.getParams()
. It also adds the following
parameters with values retrieved from the passed node.
protected Map<String, Object> buildParams(final Node node) { Map<String, Object> params = super.buildParams(node); params.put(Context.ATTRIBUTE_RECURSIVE, getDefinition().isRecursive()); return params; }
buildParams
in class AbstractCommandAction<D extends ActivationActionDefinition>
protected void onError(Exception e)
AbstractCommandAction
onError
in class AbstractCommandAction<D extends ActivationActionDefinition>
protected void onPostExecute() throws Exception
AbstractCommandAction
onPostExecute
in class AbstractCommandAction<D extends ActivationActionDefinition>
Exception
protected String getMessage(boolean success)
protected String getErrorMessage()
Copyright © 2019 Magnolia International Ltd.. All rights reserved.