Class ExternalStorageUploadStatusDialog

java.lang.Object
org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Window
com.saperion.ngc.events.BaseWindow
com.saperion.ngc.dialogs.sharebase.dialog.ExternalStorageUploadStatusDialog
All Implemented Interfaces:
EventChild, EventChildHandler, LogEventChildHandler, Serializable, 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:
  • Field Details

  • Constructor Details

    • ExternalStorageUploadStatusDialog

      public ExternalStorageUploadStatusDialog()
  • Method Details

    • 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(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