Class ImpExExportResultDownload
- java.lang.Object
-
- com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<java.lang.Object>
-
- de.hybris.platform.platformbackoffice.widgets.impex.ImpExExportResultDownload
-
- All Implemented Interfaces:
com.hybris.cockpitng.editors.CockpitEditorRenderer<java.lang.Object>
public class ImpExExportResultDownload extends com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description ImpExExportResultDownload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteBrowserMediaDownload(java.io.InputStream mediaStream, java.lang.String mime, java.lang.String fileName)This is a wrapper method to execute the download in the browser usingFiledownload.save(InputStream, String, String).protected voidexecuteMediaDownload(ImpExMediaModel media)The method allows to transfer the given media to the use via browser's download capability.MediaServicegetMediaService()voidrender(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context, com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener)
-
-
-
Method Detail
-
render
public void render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context, com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener)
-
executeMediaDownload
protected void executeMediaDownload(ImpExMediaModel media)
The method allows to transfer the given media to the use via browser's download capability.- Parameters:
media- media object to be passed on to the user's browser (download)
-
executeBrowserMediaDownload
protected void executeBrowserMediaDownload(java.io.InputStream mediaStream, java.lang.String mime, java.lang.String fileName)This is a wrapper method to execute the download in the browser usingFiledownload.save(InputStream, String, String).- Parameters:
mediaStream- stream to be passed to the browser as the content of the downloaded filemime- mime type of the downloaded filefileName- name of the downloaded file- See Also:
Filedownload.save(InputStream, String, String)
-
getMediaService
public MediaService getMediaService()
-
-