public class DeleteItemAction extends AbstractMultiItemAction<DeleteItemActionDefinition>
DeleteItemActionDefinition
Constructor and Description |
---|
DeleteItemAction(DeleteItemActionDefinition definition,
JcrItemAdapter item,
info.magnolia.event.EventBus eventBus,
UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
DeleteItemAction(DeleteItemActionDefinition definition,
List<JcrItemAdapter> items,
info.magnolia.event.EventBus eventBus,
UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the action.
|
protected void |
executeAfterConfirmation() |
protected void |
executeOnItem(JcrItemAdapter item)
Executes the action on ONE item.
|
protected String |
getFailureMessage()
Returns the message to display, if the execution fails on at least ONE item.
|
protected String |
getSuccessMessage()
Returns the message to display, if the execution succeeds on ALL items.
|
getCurrentItem, getErrorNotification, getFailedItems, getItemComparator, getItems, getSortedItems, getUiContext, setCurrentItem
getDefinition
public DeleteItemAction(DeleteItemActionDefinition definition, JcrItemAdapter item, @Named(value="admincentral") info.magnolia.event.EventBus eventBus, UiContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
public DeleteItemAction(DeleteItemActionDefinition definition, List<JcrItemAdapter> items, @Named(value="admincentral") info.magnolia.event.EventBus eventBus, UiContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
public void execute() throws ActionExecutionException
Action
execute
in interface Action
execute
in class AbstractMultiItemAction<DeleteItemActionDefinition>
ActionExecutionException
- if an error occurs performing the actionprotected void executeAfterConfirmation()
protected void executeOnItem(JcrItemAdapter item) throws Exception
AbstractMultiItemAction
executeOnItem
in class AbstractMultiItemAction<DeleteItemActionDefinition>
Exception
protected String getSuccessMessage()
AbstractMultiItemAction
null
,
if the implementing action handles the user notification on its own.getSuccessMessage
in class AbstractMultiItemAction<DeleteItemActionDefinition>
protected String getFailureMessage()
AbstractMultiItemAction
null
,
if the implementing action handles the user notification on its own.getFailureMessage
in class AbstractMultiItemAction<DeleteItemActionDefinition>
Copyright © 2018 Magnolia International Ltd.. All rights reserved.