D
- ActionDefinition
.public abstract class AbstractVersionAction<D extends ActionDefinition> extends AbstractAction<D>
Modifier and Type | Field and Description |
---|---|
protected FormDialogPresenter |
formDialogPresenter |
protected info.magnolia.i18nsystem.SimpleTranslator |
i18n |
protected LocationController |
locationController |
String |
MESSAGE_FORMAT_VERSION_OPTION_LABEL
Will display: VersionNumber (Date) (User: Comment), i.e.
|
String |
MESSAGE_FORMAT_VERSION_OPTION_LABEL_NO_COMMENT
Will display: VersionNumber (Date) (User), i.e.
|
protected AbstractJcrNodeAdapter |
nodeAdapter
Deprecated.
since 5.3.4 - define and inject
AbstractJcrNodeAdapter in your subclass. |
protected UiContext |
uiContext |
Modifier | Constructor and Description |
---|---|
protected |
AbstractVersionAction(D definition,
LocationController locationController,
UiContext uiContext,
FormDialogPresenter formDialogPresenter,
AbstractJcrNodeAdapter nodeAdapter,
info.magnolia.i18nsystem.SimpleTranslator i18n)
Deprecated.
since 5.3.4 - use
AbstractVersionAction(D, LocationController, UiContext, FormDialogPresenter, SimpleTranslator) instead. |
protected |
AbstractVersionAction(D definition,
LocationController locationController,
UiContext uiContext,
FormDialogPresenter formDialogPresenter,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
protected abstract FormDialogDefinition |
buildNewComponentDialog() |
void |
execute()
Executes the action.
|
protected List<info.magnolia.cms.core.version.VersionInfo> |
getAvailableVersionInfoList() |
protected abstract Class |
getBeanItemClass() |
protected EditorCallback |
getEditorCallback() |
protected com.vaadin.data.util.BeanItem<?> |
getItem() |
protected abstract Location |
getLocation() |
protected OverlayLayer.ModalityLevel |
getModalityLevel()
Returns the
OverlayLayer.ModalityLevel for versions dialogs. |
protected abstract javax.jcr.Node |
getNode() |
protected String |
getVersionLabel(info.magnolia.cms.core.version.VersionInfo versionInfo) |
getDefinition
public final String MESSAGE_FORMAT_VERSION_OPTION_LABEL
1.1 (MM/dd/YYYY HH:mm) (User: Comment)
.public final String MESSAGE_FORMAT_VERSION_OPTION_LABEL_NO_COMMENT
1.1 (MM/dd/YYYY HH:mm) (User)
.protected final LocationController locationController
protected final UiContext uiContext
protected final info.magnolia.i18nsystem.SimpleTranslator i18n
protected final FormDialogPresenter formDialogPresenter
@Deprecated protected final AbstractJcrNodeAdapter nodeAdapter
AbstractJcrNodeAdapter
in your subclass.@Deprecated protected AbstractVersionAction(D definition, LocationController locationController, UiContext uiContext, FormDialogPresenter formDialogPresenter, AbstractJcrNodeAdapter nodeAdapter, info.magnolia.i18nsystem.SimpleTranslator i18n)
AbstractVersionAction(D, LocationController, UiContext, FormDialogPresenter, SimpleTranslator)
instead.protected AbstractVersionAction(D definition, LocationController locationController, UiContext uiContext, FormDialogPresenter formDialogPresenter, info.magnolia.i18nsystem.SimpleTranslator i18n)
public void execute() throws ActionExecutionException
Action
ActionExecutionException
- if an error occurs performing the actionprotected EditorCallback getEditorCallback()
protected List<info.magnolia.cms.core.version.VersionInfo> getAvailableVersionInfoList() throws ActionExecutionException
ActionExecutionException
protected String getVersionLabel(info.magnolia.cms.core.version.VersionInfo versionInfo)
protected com.vaadin.data.util.BeanItem<?> getItem()
protected OverlayLayer.ModalityLevel getModalityLevel()
OverlayLayer.ModalityLevel
for versions dialogs.protected abstract Class getBeanItemClass()
protected abstract FormDialogDefinition buildNewComponentDialog() throws ActionExecutionException, javax.jcr.RepositoryException
ActionExecutionException
javax.jcr.RepositoryException
protected abstract javax.jcr.Node getNode() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected abstract Location getLocation() throws ActionExecutionException
ActionExecutionException
Copyright © 2017 Magnolia International Ltd.. All rights reserved.