D
- Definitionpublic abstract class AbstractMultiItemAction<D extends info.magnolia.ui.api.action.ActionDefinition>
extends info.magnolia.ui.api.action.AbstractAction<D>
Item
s.Constructor and Description |
---|
AbstractMultiItemAction(D definition,
com.vaadin.v7.data.Item relatedItem,
info.magnolia.ui.api.context.UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
AbstractMultiItemAction(D definition,
List<com.vaadin.v7.data.Item> relatedItems,
info.magnolia.ui.api.context.UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected abstract void |
executeOnItem(com.vaadin.v7.data.Item item) |
protected String |
formatFailedItemsForMessage(Map<com.vaadin.v7.data.Item,String> failedItems) |
D |
getDefinition() |
protected abstract String |
getFailureMessageKey() |
List<com.vaadin.v7.data.Item> |
getItems() |
protected abstract String |
getSuccessMessageKey() |
info.magnolia.i18nsystem.SimpleTranslator |
getTranslator() |
info.magnolia.ui.api.context.UiContext |
getUiContext() |
protected abstract String |
itemToString(com.vaadin.v7.data.Item item) |
public AbstractMultiItemAction(D definition, com.vaadin.v7.data.Item relatedItem, info.magnolia.ui.api.context.UiContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
public void execute() throws info.magnolia.ui.api.action.ActionExecutionException
info.magnolia.ui.api.action.ActionExecutionException
protected abstract void executeOnItem(com.vaadin.v7.data.Item item) throws Exception
Exception
protected abstract String getSuccessMessageKey()
protected abstract String getFailureMessageKey()
protected abstract String itemToString(com.vaadin.v7.data.Item item)
protected String formatFailedItemsForMessage(Map<com.vaadin.v7.data.Item,String> failedItems)
public D getDefinition()
getDefinition
in class info.magnolia.ui.api.action.AbstractAction<D extends info.magnolia.ui.api.action.ActionDefinition>
public List<com.vaadin.v7.data.Item> getItems()
public info.magnolia.ui.api.context.UiContext getUiContext()
public info.magnolia.i18nsystem.SimpleTranslator getTranslator()
Copyright © 2021 Magnolia International Ltd.. All rights reserved.