public class DownloadCacheContentAction extends AbstractMultiItemAction<DownloadCacheContentActionDefinition>
Constructor and Description |
---|
DownloadCacheContentAction(DownloadCacheContentActionDefinition definition,
com.vaadin.v7.data.Item relatedItem,
info.magnolia.ui.api.context.UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
DownloadCacheContentAction(DownloadCacheContentActionDefinition 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 |
---|---|
protected void |
downloadFile(String fileName,
byte[] data) |
void |
execute() |
protected void |
executeOnItem(com.vaadin.v7.data.Item item) |
protected String |
getFailureMessageKey() |
protected String |
getSuccessMessageKey() |
protected String |
itemToString(com.vaadin.v7.data.Item item) |
protected void |
zipAndDownloadFile(Map<String,byte[]> cacheContents) |
formatFailedItemsForMessage, getDefinition, getItems, getTranslator, getUiContext
public DownloadCacheContentAction(DownloadCacheContentActionDefinition definition, com.vaadin.v7.data.Item relatedItem, info.magnolia.ui.api.context.UiContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
public DownloadCacheContentAction(DownloadCacheContentActionDefinition definition, List<com.vaadin.v7.data.Item> relatedItems, info.magnolia.ui.api.context.UiContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
public void execute() throws info.magnolia.ui.api.action.ActionExecutionException
execute
in interface info.magnolia.ui.api.action.Action
execute
in class AbstractMultiItemAction<DownloadCacheContentActionDefinition>
info.magnolia.ui.api.action.ActionExecutionException
protected void executeOnItem(com.vaadin.v7.data.Item item) throws Exception
executeOnItem
in class AbstractMultiItemAction<DownloadCacheContentActionDefinition>
Exception
protected String getSuccessMessageKey()
getSuccessMessageKey
in class AbstractMultiItemAction<DownloadCacheContentActionDefinition>
protected String getFailureMessageKey()
getFailureMessageKey
in class AbstractMultiItemAction<DownloadCacheContentActionDefinition>
protected String itemToString(com.vaadin.v7.data.Item item)
itemToString
in class AbstractMultiItemAction<DownloadCacheContentActionDefinition>
protected void zipAndDownloadFile(Map<String,byte[]> cacheContents) throws IOException
IOException
protected void downloadFile(String fileName, byte[] data)
Copyright © 2021 Magnolia International Ltd.. All rights reserved.