public class EditResourceAction extends AbstractResourceAction<EditResourceActionDefinition>
This action will try to find the file for editing within JCR workspace. If no such file exist then a so-called 'hotfix' will be created first, which involves importing a resource from classpath or file system into the JCR workspace. By doing this, the newly imported resource takes precedence over the original one in the resources loading cascade. It may then be edited, on a live instance, and it may eventually be published to a public instance as well.
DETAIL_SUBAPP_NAME, HOTFIX_SUBAPP_NAME
Constructor and Description |
---|
EditResourceAction(EditResourceActionDefinition definition,
Item resourceItem,
info.magnolia.context.Context context,
AppContext appContext,
info.magnolia.i18nsystem.SimpleTranslator i18n,
LocationController locationController,
info.magnolia.resourceloader.ResourceOrigin origin,
info.magnolia.event.EventBus eventBus) |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
unwrapResource
@Inject public EditResourceAction(EditResourceActionDefinition definition, Item resourceItem, info.magnolia.context.Context context, AppContext appContext, info.magnolia.i18nsystem.SimpleTranslator i18n, LocationController locationController, info.magnolia.resourceloader.ResourceOrigin origin, @Named(value=<error>) info.magnolia.event.EventBus eventBus)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.