Class ExternalStorageUploadStatusDialog

  • 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 ExternalStorageUploadStatusDialog
    extends BaseWindow
    This class shows the External storage upload status for a document and also creates a temporary view url for verifying the upload
    Author:
    sudghosh
    See Also:
    Serialized Form
    • Field Detail

      • SHAREBASE_UPLOAD_STATUS_DIALOG_ZUL

        public static final java.lang.String SHAREBASE_UPLOAD_STATUS_DIALOG_ZUL
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExternalStorageUploadStatusDialog

        public ExternalStorageUploadStatusDialog()
    • Method Detail

      • show

        public static void show​(boolean uploadStatus,
                                com.saperion.externalstorage.library.Document uploadedDocument,
                                com.saperion.externalstorage.client.ExternalStorageClient externalStorageClient,
                                com.saperion.externalstorage.ExternalStorageType storageType)
        Shows the status dialog for successful upload to sharebase and also for failure
        Parameters:
        uploadStatus - true if document uploaded successfully else false
        uploadedDocument - Uploaded ShareBase document object
      • setExternalStorageClient

        public void setExternalStorageClient​(com.saperion.externalstorage.client.ExternalStorageClient client,
                                             com.saperion.externalstorage.ExternalStorageType storageType)
        Sets External Storage client for the dialog object
        Parameters:
        client - client
      • setItem

        public void setItem​(ExternalStorageListItem item)
        Sets ShareBase list item
        Parameters:
        item - sharebase list item
      • setTempVerifyURL

        public void setTempVerifyURL​(java.lang.String tempVerifyURL)
        Sets the temporary verify share link to the dialog object
        Parameters:
        tempVerifyURL -
      • endModalCancel

        public void endModalCancel()
        Cancel or close the dialog
      • openVerifyURL

        public void openVerifyURL()
        Called from zk, it opens the verifying link in a new tab for any browser
      • createShareLink

        public void createShareLink()
        Called from zk, it opens the ShareBase new share dialog for given ExternalStorageListItem
      • manageShareLink

        public void manageShareLink()
        Called from zk, it opens the ShareBase manage share dialog for given ExternalStorageListItem