Class 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>
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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 using Filedownload.save(InputStream, String, String).
      protected void executeMediaDownload​(ImpExMediaModel media)
      The method allows to transfer the given media to the use via browser's download capability.
      MediaService getMediaService()  
      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)  
      • 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 Detail

      • ImpExExportResultDownload

        public ImpExExportResultDownload()
    • 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 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)