Class MToolBarButtonRestrict

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_ToolBarButtonRestrict, I_Persistent, Evaluatee

public class MToolBarButtonRestrict extends X_AD_ToolBarButtonRestrict
ToolBar and Button Restriction
Author:
Nicolas Micoud
See Also:
  • Field Details

  • Constructor Details

    • MToolBarButtonRestrict

      public MToolBarButtonRestrict(Properties ctx, String AD_ToolBarButtonRestrict_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      AD_ToolBarButtonRestrict_UU - UUID key
      trxName - Transaction
    • 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 Details

    • getOfWindow

      public static int[] getOfWindow(Properties ctx, int AD_Role_ID, int AD_Window_ID, boolean reportViewer, String trxName)
      Get list of button with restrictions to be applied according to role and window
      Parameters:
      ctx -
      AD_Role_ID -
      AD_Window_ID -
      reportViewer - true for report viewer, false for window (i.e Action=R or W)
      trxName -
      Returns:
      array of AD_ToolBarButton_ID
    • getOfTab

      public static int[] getOfTab(Properties ctx, int AD_Role_ID, int AD_Window_ID, int AD_Tab_ID, String trxName)
      Get list of button with 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 -
      Returns:
      array of AD_ToolBarButton_ID
    • getOfReport

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

      public static int[] getProcessButtonOfTab(Properties ctx, int AD_Role_ID, int AD_Tab_ID, String trxName)
      Get list of process button (with AD_Process_ID) with restrictions to be applied according to role and tab
      Parameters:
      ctx -
      AD_Role_ID -
      AD_Tab_ID -
      trxName -
      Returns:
      array of AD_ToolBarButton_ID
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_AD_ToolBarButtonRestrict
      Returns:
      info
    • isNewButtonRestricted

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

      public static boolean isNewButtonRestricted(int windowID, int tabID)
      Check access for "New Record" 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 (AD_ToolBarButton_ID)
      Returns:
      True if Toolbar button is restricted