Class MRoleOrgAccess

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

public class MRoleOrgAccess extends X_AD_Role_OrgAccess
Role Organization Access Model
Version:
$Id: MRoleOrgAccess.java,v 1.3 2006/07/30 00:58:38 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MRoleOrgAccess

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

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

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

      public MRoleOrgAccess(MOrg org, int AD_Role_ID)
      Organization Constructor
      Parameters:
      org - organization
      AD_Role_ID - role
    • MRoleOrgAccess

      public MRoleOrgAccess(MRole role, int AD_Org_ID)
      Role Constructor
      Parameters:
      role - role
      AD_Org_ID - organization
  • Method Details

    • getOfRole

      public static MRoleOrgAccess[] getOfRole(Properties ctx, int AD_Role_ID)
      Get Organizational Access of Role
      Parameters:
      ctx - context
      AD_Role_ID - role
      Returns:
      array of Role Organization Access
    • getOfClient

      public static MRoleOrgAccess[] getOfClient(Properties ctx, int AD_Client_ID)
      Get Organizational Access of Client
      Parameters:
      ctx - context
      AD_Client_ID - client
      Returns:
      array of Role Organization Access
    • getOfOrg

      public static MRoleOrgAccess[] getOfOrg(Properties ctx, int AD_Org_ID)
      Get Organizational Access of Organization
      Parameters:
      ctx - context
      AD_Org_ID - organization
      Returns:
      array of Role Organization Access
    • createForOrg

      public static boolean createForOrg(MOrg org)
      Create Organizational Access for all Automatic Roles (IsManual=N)
      Parameters:
      org - organization
      Returns:
      true if created
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_AD_Role_OrgAccess
      Returns:
      info
    • toStringX

      public String toStringX(Properties ctx)
      Extended String Representation
      Parameters:
      ctx - context
      Returns:
      extended info
    • getClientName

      public String getClientName()
      Get Client Name
      Returns:
      client name
    • getOrgName

      public String getOrgName()
      Get organization Name
      Returns:
      organization name
    • afterSave

      protected boolean afterSave(boolean newRecord, boolean success)
      Description copied from class: PO
      Called after Save for Post-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - true if it is a new record
      success - true if save operation was success
      Returns:
      if save was a success
    • afterDelete

      protected boolean afterDelete(boolean success)
      Description copied from class: PO
      Execute after Delete operations.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      afterDelete in class PO
      Parameters:
      success - true if record deleted
      Returns:
      true if delete is a success