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)
      Called before Save for Pre-Save Operation
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new record
      Returns:
      true if record can be saved
    • beforeDelete

      protected boolean beforeDelete()
      Executed before Delete operation.
      Overrides:
      beforeDelete in class PO
      Returns:
      true if record can be deleted