public class DeleteEmptyFolderAction extends DeleteAction<DeleteEmptyFolderActionDefinition>
DeleteEmptyFolderActionDefinition
eventBus, items, uiContext
COMMAND_RESULT, LONG_RUNNING_ACTION_NOTIFICATION, PARALLEL_EXECUTION_NOT_ALLOWED_NOTIFICATION
Constructor and Description |
---|
DeleteEmptyFolderAction(DeleteEmptyFolderActionDefinition definition,
JcrItemAdapter item,
info.magnolia.commands.CommandsManager commandsManager,
info.magnolia.event.EventBus eventBus,
UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
DeleteEmptyFolderAction(DeleteEmptyFolderActionDefinition definition,
List<JcrItemAdapter> items,
info.magnolia.commands.CommandsManager commandsManager,
info.magnolia.event.EventBus eventBus,
UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
protected void |
onError(Exception e)
Class that implement CommansActionBase should use
this in order to perform tasks or notification in case of error.
|
void |
onPreExecute()
Pre Command Execution.
|
executeOnItem, getFailureMessage, getI18n, getSuccessMessage, onPostExecute
buildParams, getCommand, getCommandsManager, getParams, isInvokeAsynchronously
execute, getCurrentItem, getErrorNotification, getFailedItems, getItemComparator, getItems, getSortedItems, getUiContext, setCurrentItem
getDefinition
public DeleteEmptyFolderAction(DeleteEmptyFolderActionDefinition definition, JcrItemAdapter item, info.magnolia.commands.CommandsManager commandsManager, @Named(value="admincentral") info.magnolia.event.EventBus eventBus, UiContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
public DeleteEmptyFolderAction(DeleteEmptyFolderActionDefinition definition, List<JcrItemAdapter> items, info.magnolia.commands.CommandsManager commandsManager, @Named(value="admincentral") info.magnolia.event.EventBus eventBus, UiContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
public void onPreExecute() throws Exception
AbstractCommandAction
onPreExecute
in class DeleteAction<DeleteEmptyFolderActionDefinition>
Exception
protected void onError(Exception e)
AbstractCommandAction
onError
in class AbstractCommandAction<DeleteEmptyFolderActionDefinition>
Copyright © 2018 Magnolia International Ltd.. All rights reserved.