Class MAlert

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

public class MAlert extends X_AD_Alert
Alert Model
Version:
$Id: MAlert.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
  • FR [ 1894573 ] Alert Processor Improvements Victor Perez, Trifon, red1
  • FR: [ 2214883 ] Remove SQL code and Replace for Query
  • See Also:
    • Constructor Details

      • MAlert

        public MAlert(Properties ctx, String AD_Alert_UU, String trxName)
        UUID based Constructor
        Parameters:
        ctx - Context
        AD_Alert_UU - UUID key
        trxName - Transaction
      • 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 Details

      • getRules

        public MAlertRule[] getRules(boolean reload)
        Get Rules
        Parameters:
        reload - true to always reload from DB
        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 Recipient 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
      • toString

        public String toString()
        String Representation
        Overrides:
        toString in class X_AD_Alert
        Returns:
        info