Class OneDriveLoginDialog

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

      • ONEDRIVE_EVENTLISTENER

        public static java.lang.String ONEDRIVE_EVENTLISTENER
    • Constructor Detail

      • OneDriveLoginDialog

        public OneDriveLoginDialog()
    • Method Detail

      • 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 java.lang.Exception
        Throws:
        java.lang.Exception
      • endModalCancel

        public void endModalCancel()
                            throws java.lang.Exception
        Cancel dialog.
        Throws:
        java.lang.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()