Class MPrivateAccess

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

public class MPrivateAccess extends X_AD_Private_Access
Private Access
Version:
$Id: MPrivateAccess.java,v 1.3 2006/07/30 00:58:18 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MPrivateAccess

      public MPrivateAccess(Properties ctx, String AD_Private_Access_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      AD_Private_Access_UU - UUID key
      trxName - Transaction
    • MPrivateAccess

      public MPrivateAccess(Properties ctx, int ignored, String trxName)
      Parameters:
      ctx - context
      ignored - ignored
      trxName - transaction
    • MPrivateAccess

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

      public MPrivateAccess(Properties ctx, int AD_User_ID, int AD_Table_ID, int Record_ID)
      New Constructor
      Parameters:
      ctx - context
      AD_User_ID - user
      AD_Table_ID - table
      Record_ID - record
  • Method Details

    • get

      public static MPrivateAccess get(Properties ctx, int AD_User_ID, int AD_Table_ID, int Record_ID)
      Get Private Access
      Parameters:
      ctx - context
      AD_User_ID - user
      AD_Table_ID - table
      Record_ID - record
      Returns:
      private access instance or null if not found
    • getLockedRecordWhere

      public static String getLockedRecordWhere(int AD_Table_ID, int AD_User_ID)
      Get Where Clause of Locked Records for Table.
      Parameters:
      AD_Table_ID - table
      AD_User_ID - user requesting access
      Returns:
      not in private access clause
    • toString

      public String toString()
      String representation of this object, used in Recent Items
      Overrides:
      toString in class X_AD_Private_Access
      Returns:
      String representation
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - true if it is a new record
      Returns:
      true if record can be saved
    • beforeDelete

      protected boolean beforeDelete()
      Description copied from class: PO
      Execute before Delete operations.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeDelete in class PO
      Returns:
      true if record can be deleted