info.magnolia.ui.contentapp.detail.action
Class CreateItemAction

java.lang.Object
  extended by info.magnolia.ui.api.action.AbstractAction<CreateItemActionDefinition>
      extended by info.magnolia.ui.contentapp.detail.action.CreateItemAction
All Implemented Interfaces:
Action

public class CreateItemAction
extends AbstractAction<CreateItemActionDefinition>

Action for creating a new item. The DetailSubApp only gets a location containing nodePath and DetailView.ViewType. When creating a new node, we either create it here and pass the new path to the subapp or we pass all needed parameters to the location. This is less messy, but not optimal.. at all. See MGNLUI-222.

See Also:
CreateItemActionDefinition

Constructor Summary
CreateItemAction(CreateItemActionDefinition definition, LocationController locationController, AbstractJcrNodeAdapter parentItem)
           
 
Method Summary
 void execute()
          Executes the action.
 
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

CreateItemAction

public CreateItemAction(CreateItemActionDefinition definition,
                        LocationController locationController,
                        AbstractJcrNodeAdapter parentItem)
Method Detail

execute

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

Throws:
ActionExecutionException - if an error occurs performing the action


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