info.magnolia.ui.contentapp.detail.action
Class CreateItemAction
java.lang.Object
info.magnolia.ui.api.action.AbstractAction<CreateItemActionDefinition>
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
Method Summary |
void |
execute()
Executes the action. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateItemAction
public CreateItemAction(CreateItemActionDefinition definition,
LocationController locationController,
AbstractJcrNodeAdapter parentItem)
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.