Class QbMenu

java.lang.Object
quadbase.reportorganizer.menuAPI.QbMenu

public class QbMenu extends Object
  • Field Details

    • QBMENUDATA

      public static String QBMENUDATA
  • Constructor Details

    • QbMenu

      public QbMenu(Object menuData) throws Exception
      create QbMenu object
      Parameters:
      menuData - menu data object that user has to get it from ServletContext
      Throws:
      Exception
    • QbMenu

      public QbMenu(Object menuData, String incomingIP, int productType) throws Exception
      create QbMenu object
      Parameters:
      menuData - menu data object that user has to get it from ServletContext
      Throws:
      Exception
  • Method Details

    • login

      public boolean login(String userName, String password) throws Exception
      login to QbMenu
      Parameters:
      userName - login user name
      password - login user password
      Returns:
      the QbMenu object with contains all the menu information
      Throws:
      Exception
    • writeLog

      public void writeLog(int process, String details) throws Exception
      Throws:
      Exception
    • logout

      public void logout()
      logout from QbMenu
    • getSecurityLevel

      public String getSecurityLevel()
      return security level for current login user
      Returns:
      security level value
    • getUserName

      public String getUserName()
      return current login user name
      Returns:
      user name
    • getMenuNodeList

      public MenuNode[] getMenuNodeList() throws Exception
      return all the readable menu nodes for current user
      Returns:
      menu node array
      Throws:
      Exception
    • getMenuNodeList

      public MenuNode[] getMenuNodeList(String keyword) throws Exception
      return all the readable menu nodes for current user
      Parameters:
      keyword - only display the items which contains the specified key words
      Returns:
      menu node array
      Throws:
      Exception