public class PreviewPageAction extends AbstractAction<PreviewPageActionDefinition>
Constructor and Description |
---|
PreviewPageAction(PreviewPageActionDefinition definition,
AbstractJcrNodeAdapter nodeItemToPreview,
LocationController locationController)
Instantiates a new preview page action.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the action.
|
getDefinition
@Inject public PreviewPageAction(PreviewPageActionDefinition definition, AbstractJcrNodeAdapter nodeItemToPreview, LocationController locationController)
definition
- the definitionnodeItemToPreview
- the node to previewpublic void execute() throws ActionExecutionException
Action
ActionExecutionException
- if an error occurs performing the actionCopyright © 2015 Magnolia International Ltd.. All rights reserved.