Class OneDriveLoginDialog

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.onedrive.dialog.OneDriveLoginDialog
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 OneDriveLoginDialog extends BaseWindow
This class is responsible for Login dialog of OneDrive in Saperion web client.
Author:
sugoswami
See Also:
  • Field Details

    • ONEDRIVE_EVENTLISTENER

      public static String ONEDRIVE_EVENTLISTENER
  • Constructor Details

    • OneDriveLoginDialog

      public OneDriveLoginDialog()
  • Method Details

    • show

      public static void show(DocumentId documentId, org.zkoss.zk.ui.event.EventListener listener, BaseWindow parent)
      Shows OneDrive Login Dialog if user is not logged and wants to perform any operations related to a Saperion document in OneDrive.
      Parameters:
      documentId - document id
      listener - OneDrive login event listener
      parent - View from where the login operation is called
    • logOut

      public static void logOut()
      Perform logout for IDP.
    • show

      public static void show(org.zkoss.zk.ui.event.EventListener listener)
      Shows the OneDrive login window
      Parameters:
      listener - OneDrive login event listener
    • onSSOLogin

      public void onSSOLogin() throws Exception
      Throws:
      Exception
    • endModalCancel

      public void endModalCancel() throws Exception
      Cancel dialog.
      Throws:
      Exception - exception
    • setParentView

      public void setParentView(BaseWindow view)
      Sets the ParentView in the dialog object
      Parameters:
      view - parent view
    • setOneDriveLoginDialog

      public static void setOneDriveLoginDialog(OneDriveLoginDialog dialog)
      Sets the instance of OneDriveLoginDialog object.
      Parameters:
      dialog - parent view
    • detachOneDriveLoginDialog

      public static void detachOneDriveLoginDialog()