A notification rule persisted in the database. Represents a rule for sending out a single notification after a matching
org.motechproject.admin.domain.StatusMessageis registered in the system. The message is matched against its level and the module to which it is tied to. This class also contains information about this notification’s recipient and the
ActionTyperepresenting a method used for notifying the recipient.
NotificationRule(String recipient, ActionType actionType, Level level, String moduleName)¶
- recipient – the recipient of the notification
- actionType – the type of action which will be performed
- level – the minimal level for which the notification will trigger
- moduleName – the module name for which this rule will trigger, leave null or blank for every module