Class MUserRoles

    • Constructor Detail

      • 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 Detail

      • 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_User_ID

        public void setAD_User_ID​(int AD_User_ID)
        Set User/Contact.
        Specified by:
        setAD_User_ID in interface I_AD_User_Roles
        Overrides:
        setAD_User_ID in class X_AD_User_Roles
        Parameters:
        AD_User_ID - User within the system - Internal or Business Partner Contact Overridden to allow saving System record (zero ID)
      • 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