Class ImpExExportResultDownload

java.lang.Object
com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<Object>
de.hybris.platform.platformbackoffice.widgets.impex.ImpExExportResultDownload
All Implemented Interfaces:
com.hybris.cockpitng.editors.CockpitEditorRenderer<Object>

public class ImpExExportResultDownload extends com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<Object>
  • Field Summary

    Fields inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer

    HEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENT, YW_EDITOR_AREA_LABEL_CONTAINER

    Fields inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer

    INITIAL_EDIT_STRING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    executeBrowserMediaDownload(InputStream mediaStream, String mime, String fileName)
    This is a wrapper method to execute the download in the browser using Filedownload.save(InputStream, String, String).
    protected void
    The method allows to transfer the given media to the use via browser's download capability.
     
    void
    render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<Object> context, com.hybris.cockpitng.editors.EditorListener<Object> listener)
     

    Methods inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer

    extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecorator

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ImpExExportResultDownload

      public ImpExExportResultDownload()
  • Method Details

    • render

      public void render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<Object> context, com.hybris.cockpitng.editors.EditorListener<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(InputStream mediaStream, String mime, String fileName)
      This is a wrapper method to execute the download in the browser using Filedownload.save(InputStream, String, String).
      Parameters:
      mediaStream - stream to be passed to the browser as the content of the downloaded file
      mime - mime type of the downloaded file
      fileName - name of the downloaded file
      See Also:
      • Filedownload.save(InputStream, String, String)
    • getMediaService

      public MediaService getMediaService()