Class MAlert

    • Constructor Detail

      • MAlert

        public MAlert​(Properties ctx,
                      int AD_Alert_ID,
                      String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        AD_Alert_ID - id
        trxName - transaction
      • MAlert

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

      • getRules

        public MAlertRule[] getRules​(boolean reload)
        Get Rules
        Parameters:
        reload - reload data
        Returns:
        array of rules
      • getRecipients

        public MAlertRecipient[] getRecipients​(boolean reload)
        Get Recipients
        Parameters:
        reload - reload data
        Returns:
        array of recipients
      • getFirstAD_Role_ID

        public int getFirstAD_Role_ID()
        Get First Role if exist
        Returns:
        AD_Role_ID or -1
      • getFirstUserAD_Role_ID

        public int getFirstUserAD_Role_ID()
        Get First User Role if exist
        Returns:
        AD_Role_ID or -1
      • getFirstAD_User_ID

        public int getFirstAD_User_ID()
        Get First User if exist
        Returns:
        AD_User_ID or -1
      • getRecipientUsers

        public Collection<Integer> getRecipientUsers()
        Returns:
        unique list of recipient users