Class ExternalStorageUploadDialog

  • All Implemented Interfaces:
    EventChild, EventChildHandler, LogEventChildHandler, java.io.Serializable, java.lang.Cloneable, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.ext.Scope, org.zkoss.zk.ui.IdSpace, org.zkoss.zk.ui.sys.ComponentCtrl, org.zkoss.zul.ext.Framable

    public class ExternalStorageUploadDialog
    extends BaseWindow
    This class is responsible for opening up the upload dialog box for uploading a saperion document to external storage
    Author:
    sudghosh
    See Also:
    Serialized Form
    • Field Detail

      • FOLDER_LIST_CELL_STYLE_ICON

        public static final java.lang.String FOLDER_LIST_CELL_STYLE_ICON
        See Also:
        Constant Field Values
      • SHAREBASE_FOLDER_TRAVERSE_BACK_BUTTON

        public static final java.lang.String SHAREBASE_FOLDER_TRAVERSE_BACK_BUTTON
        See Also:
        Constant Field Values
      • SHARE_BASE_UPLOAD_BUTTON

        public static final java.lang.String SHARE_BASE_UPLOAD_BUTTON
        See Also:
        Constant Field Values
      • DOCUMENT_LIST_CELL_STYLE_ICON

        public static final java.lang.String DOCUMENT_LIST_CELL_STYLE_ICON
        See Also:
        Constant Field Values
      • LIBRARY_LIST_BOX

        protected static final java.lang.String LIBRARY_LIST_BOX
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExternalStorageUploadDialog

        public ExternalStorageUploadDialog()
    • Method Detail

      • show

        public static void show​(DocumentId documentId,
                                org.zkoss.zk.ui.event.EventListener eventListener,
                                BaseWindow parent,
                                com.saperion.externalstorage.client.ExternalStorageClient client,
                                com.saperion.externalstorage.ExternalStorageType storageType)
        Shows the External Storage Upload dialog
        Parameters:
        documentId - selected Saperion doc id
        eventListener - event listener for upload event
        parent - parent view
        client - ShareBase client instance
      • setFolderStack

        public void setFolderStack​(java.util.Stack<java.lang.String> folderStack)
      • endModalCancel

        public void endModalCancel()
                            throws java.lang.Exception
        Cancel dialog.
        Throws:
        java.lang.Exception - exception
      • showSelectedItem

        public void showSelectedItem()
        Load folders upon selecting library
      • popStackAndShowFolders

        public void popStackAndShowFolders()
        This method is called from zk and it handles folder traversing
      • onFolderSelection

        public void onFolderSelection()
        This method enables upload button upon selecting a folder in the dialog
      • onUploadOK

        public void onUploadOK()
                        throws java.lang.Exception
        Calls the onEvent on event handler upon successful uploading of document to External Storage with upload data
        Throws:
        java.lang.Exception - exception is thrown if there is any problem with onEvent for the event listener