Class MToolBarButtonRestrict

    • Constructor Detail

      • MToolBarButtonRestrict

        public MToolBarButtonRestrict​(Properties ctx,
                                      int AD_ToolBarButtonRestrict_ID,
                                      String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        AD_ToolBarButtonRestrict_ID - id
        trxName - transaction
      • MToolBarButtonRestrict

        public MToolBarButtonRestrict​(Properties ctx,
                                      ResultSet rs,
                                      String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
    • Method Detail

      • getOfWindow

        public static int[] getOfWindow​(Properties ctx,
                                        int AD_Role_ID,
                                        int AD_Window_ID,
                                        boolean reportViewer,
                                        String trxName)
        Returns a list of restrictions to be applied according to the role, the window of the form ...
        Parameters:
        ctx -
        AD_Role_ID -
        AD_Window_ID -
        reportViewer -
        trxName -
      • getOfTab

        public static int[] getOfTab​(Properties ctx,
                                     int AD_Role_ID,
                                     int AD_Window_ID,
                                     int AD_Tab_ID,
                                     String trxName)
        Returns a list of restrictions to be applied according to the role, the tab of the window ...
        Parameters:
        ctx -
        AD_Role_ID -
        AD_Window_ID -
        AD_Tab_ID -
        trxName -
      • getOfReport

        public static int[] getOfReport​(Properties ctx,
                                        int AD_Role_ID,
                                        int AD_Process_ID,
                                        String trxName)
        Returns a list of restrictions to be applied according to the role, the report/process ...
        Parameters:
        ctx -
        AD_Role_ID -
        AD_Process_ID -
        trxName -
      • getProcessButtonOfTab

        public static int[] getProcessButtonOfTab​(Properties ctx,
                                                  int AD_Role_ID,
                                                  int AD_Tab_ID,
                                                  String trxName)
        Returns a list of restrictions to be applied according to the role for tab process toolbar buttons
        Parameters:
        ctx -
        AD_Role_ID -
        AD_Tab_ID -
        trxName -
      • isNewButtonRestricted

        public static boolean isNewButtonRestricted​(int windowID)
        Check Window access for ReadWrite and New Toolbar button
        Parameters:
        windowID - - AD_Window_ID
        Returns:
        True if Toolbar button is restricted
      • isNewButtonRestricted

        public static boolean isNewButtonRestricted​(int windowID,
                                                    int tabID)
        Check Window access for ReadWrite and New Toolbar button
        Parameters:
        windowID - - AD_Window_ID
        tabID - - AD_Tab_ID
        Returns:
        True if Toolbar button is restricted
      • isToolbarButtonRestricted

        public static boolean isToolbarButtonRestricted​(int windowID,
                                                        int tabID,
                                                        int toolbarBtnID)
        Check toolbar button restriction
        Parameters:
        windowID - - AD_Window_ID
        tabID - - AD_Tab_ID
        toolbarBtnID - - Toolbar button ID
        Returns:
        True if Toolbar button is restricted