public class RestoreVersionAction extends ShowVersionsAction<RestoreVersionActionDefinition>
ShowVersionsAction.VersionName
dialogID, nodeAdapter
formDialogPresenter, i18n, locationController, MESSAGE_FORMAT_VERSION_OPTION_LABEL, MESSAGE_FORMAT_VERSION_OPTION_LABEL_NO_COMMENT, uiContext
Constructor and Description |
---|
RestoreVersionAction(RestoreVersionActionDefinition definition,
AppContext appContext,
LocationController locationController,
UiContext uiContext,
FormDialogPresenter formDialogPresenter,
AbstractJcrNodeAdapter nodeAdapter,
info.magnolia.i18nsystem.SimpleTranslator i18n,
info.magnolia.cms.core.version.VersionManager versionManager,
info.magnolia.event.EventBus eventBus)
|
RestoreVersionAction(RestoreVersionActionDefinition definition,
AppContext appContext,
LocationController locationController,
UiContext uiContext,
FormDialogPresenter formDialogPresenter,
AbstractJcrNodeAdapter nodeAdapter,
info.magnolia.i18nsystem.SimpleTranslator i18n,
info.magnolia.cms.core.version.VersionManager versionManager,
info.magnolia.event.EventBus eventBus,
info.magnolia.cms.beans.config.VersionConfig versionConfig)
|
RestoreVersionAction(RestoreVersionActionDefinition definition,
AppContext appContext,
LocationController locationController,
UiContext uiContext,
FormDialogPresenter formDialogPresenter,
AbstractJcrNodeAdapter nodeAdapter,
info.magnolia.i18nsystem.SimpleTranslator i18n,
info.magnolia.cms.core.version.VersionManager versionManager,
info.magnolia.event.EventBus eventBus,
info.magnolia.cms.beans.config.VersionConfig versionConfig,
ContentConnector contentConnector)
|
RestoreVersionAction(RestoreVersionActionDefinition definition,
AppContext appContext,
LocationController locationController,
UiContext uiContext,
FormDialogPresenter formDialogPresenter,
AbstractJcrNodeAdapter nodeAdapter,
info.magnolia.i18nsystem.SimpleTranslator i18n,
info.magnolia.cms.core.version.VersionManager versionManager,
info.magnolia.event.EventBus eventBus,
info.magnolia.cms.beans.config.VersionConfig versionConfig,
ContentConnector contentConnector,
info.magnolia.context.Context context) |
Modifier and Type | Method and Description |
---|---|
protected javax.jcr.version.Version |
createVersionBeforeRestore(javax.jcr.Node node)
Creates a version with an extra comment before restoring.
|
protected ConfirmationCallback |
getConfirmationCallback()
Confirmation callback when version store is full and user has to decide whether to restore the last version
without creating another version of the page before restoring.
|
protected EditorCallback |
getEditorCallback() |
buildNewComponentDialog, getBeanItemClass, getContentConnectorForDeprecations, getLocation, getNode, getVersionName
execute, getAvailableVersionInfoList, getItem, getModalityLevel, getVersionLabel
getDefinition
@Inject public RestoreVersionAction(RestoreVersionActionDefinition definition, AppContext appContext, LocationController locationController, UiContext uiContext, FormDialogPresenter formDialogPresenter, AbstractJcrNodeAdapter nodeAdapter, info.magnolia.i18nsystem.SimpleTranslator i18n, info.magnolia.cms.core.version.VersionManager versionManager, @Named(value="admincentral") info.magnolia.event.EventBus eventBus, info.magnolia.cms.beans.config.VersionConfig versionConfig, ContentConnector contentConnector, info.magnolia.context.Context context)
@Deprecated public RestoreVersionAction(RestoreVersionActionDefinition definition, AppContext appContext, LocationController locationController, UiContext uiContext, FormDialogPresenter formDialogPresenter, AbstractJcrNodeAdapter nodeAdapter, info.magnolia.i18nsystem.SimpleTranslator i18n, info.magnolia.cms.core.version.VersionManager versionManager, @Named(value="admincentral") info.magnolia.event.EventBus eventBus, info.magnolia.cms.beans.config.VersionConfig versionConfig, ContentConnector contentConnector)
@Deprecated public RestoreVersionAction(RestoreVersionActionDefinition definition, AppContext appContext, LocationController locationController, UiContext uiContext, FormDialogPresenter formDialogPresenter, AbstractJcrNodeAdapter nodeAdapter, info.magnolia.i18nsystem.SimpleTranslator i18n, info.magnolia.cms.core.version.VersionManager versionManager, @Named(value="admincentral") info.magnolia.event.EventBus eventBus, info.magnolia.cms.beans.config.VersionConfig versionConfig)
@Deprecated public RestoreVersionAction(RestoreVersionActionDefinition definition, AppContext appContext, LocationController locationController, UiContext uiContext, FormDialogPresenter formDialogPresenter, AbstractJcrNodeAdapter nodeAdapter, info.magnolia.i18nsystem.SimpleTranslator i18n, info.magnolia.cms.core.version.VersionManager versionManager, @Named(value="admincentral") info.magnolia.event.EventBus eventBus)
protected EditorCallback getEditorCallback()
getEditorCallback
in class AbstractVersionAction<RestoreVersionActionDefinition>
protected ConfirmationCallback getConfirmationCallback()
protected javax.jcr.version.Version createVersionBeforeRestore(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2018 Magnolia International Ltd.. All rights reserved.