|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.ui.api.action.AbstractAction<D> info.magnolia.ui.framework.action.AbstractMultiItemAction<DeleteItemActionDefinition> info.magnolia.ui.framework.action.DeleteItemAction
public class DeleteItemAction
Deletes a node or property from the repository.
DeleteItemActionDefinition
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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. |
Methods inherited from class info.magnolia.ui.framework.action.AbstractMultiItemAction |
---|
getCurrentItem, getErrorNotification, getFailedItems, getItemComparator, getItems, getSortedItems, getUiContext, setCurrentItem |
Methods inherited from class info.magnolia.ui.api.action.AbstractAction |
---|
getDefinition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
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>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |