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)
      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 -
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_AD_ToolBarButtonRestrict
      Returns:
      info
    • 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