Class MUserRoles

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

public class MUserRoles extends X_AD_User_Roles
User Roles Model
Version:
$Id: MUserRoles.java,v 1.3 2006/07/30 00:58:37 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MUserRoles

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

      public MUserRoles(Properties ctx, int ignored, String trxName)
      Persistence Constructor
      Parameters:
      ctx - context
      ignored - invalid
      trxName - transaction
    • MUserRoles

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

      public MUserRoles(Properties ctx, int AD_User_ID, int AD_Role_ID, String trxName)
      Full Constructor
      Parameters:
      ctx - context
      AD_User_ID - user
      AD_Role_ID - role
      trxName - transaction
  • Method Details

    • getOfRole

      public static MUserRoles[] getOfRole(Properties ctx, int AD_Role_ID)
      Get User Roles Of Role
      Parameters:
      ctx - context
      AD_Role_ID - role
      Returns:
      array of user roles
    • getOfUser

      public static MUserRoles[] getOfUser(Properties ctx, int AD_User_ID)
      Get User Roles Of User
      Parameters:
      ctx - context
      AD_User_ID - role
      Returns:
      array of user roles
    • setAD_Role_ID

      public void setAD_Role_ID(int AD_Role_ID)
      Set Role. Responsibility Role
      Specified by:
      setAD_Role_ID in interface I_AD_User_Roles
      Overrides:
      setAD_Role_ID in class X_AD_User_Roles
      Parameters:
      AD_Role_ID - role
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      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()
      Description copied from class: PO
      Executed before Delete operation.
      Overrides:
      beforeDelete in class PO
      Returns:
      true if record can be deleted