info.magnolia.ui.contentapp.movedialog.action
Class MoveNodeAction

java.lang.Object
  extended by info.magnolia.ui.api.action.AbstractAction<D>
      extended by info.magnolia.ui.framework.action.AbstractMultiItemAction<MoveNodeActionDefinition>
          extended by info.magnolia.ui.contentapp.movedialog.action.MoveNodeAction
All Implemented Interfaces:
Action

public class MoveNodeAction
extends AbstractMultiItemAction<MoveNodeActionDefinition>

Action that moves a node.

See Also:
MoveNodeActionDefinition

Field Summary
protected  info.magnolia.event.EventBus admincentralEventBus
           
 
Constructor Summary
MoveNodeAction(MoveNodeActionDefinition definition, List<JcrItemAdapter> items, JcrNodeAdapter targetItem, info.magnolia.event.EventBus admincentralEventBus, UiContext uiContext, MoveActionCallback callback)
           
 
Method Summary
 void execute()
          Executes the action.
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
 

Field Detail

admincentralEventBus

protected final info.magnolia.event.EventBus admincentralEventBus
Constructor Detail

MoveNodeAction

public MoveNodeAction(MoveNodeActionDefinition definition,
                      List<JcrItemAdapter> items,
                      JcrNodeAdapter targetItem,
                      @Named(value="admincentral")
                      info.magnolia.event.EventBus admincentralEventBus,
                      UiContext uiContext,
                      MoveActionCallback callback)
Method Detail

execute

public void execute()
             throws ActionExecutionException
Description copied from interface: Action
Executes the action.

Specified by:
execute in interface Action
Overrides:
execute in class AbstractMultiItemAction<MoveNodeActionDefinition>
Throws:
ActionExecutionException - if an error occurs performing the action

executeOnItem

protected void executeOnItem(JcrItemAdapter item)
                      throws Exception
Description copied from class: AbstractMultiItemAction
Executes the action on ONE item.

Specified by:
executeOnItem in class AbstractMultiItemAction<MoveNodeActionDefinition>
Throws:
Exception

getSuccessMessage

protected String getSuccessMessage()
Description copied from class: AbstractMultiItemAction
Returns the message to display, if the execution succeeds on ALL items. May return null, if the implementing action handles the user notification on its own.

Specified by:
getSuccessMessage in class AbstractMultiItemAction<MoveNodeActionDefinition>

getFailureMessage

protected String getFailureMessage()
Description copied from class: AbstractMultiItemAction
Returns the message to display, if the execution fails on at least ONE item. May return null, if the implementing action handles the user notification on its own.

Specified by:
getFailureMessage in class AbstractMultiItemAction<MoveNodeActionDefinition>


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.