.. java:import:: org.apache.commons.lang StringUtils .. java:import:: org.motechproject.admin.messages ActionType .. java:import:: org.motechproject.admin.messages Level .. java:import:: org.motechproject.mds.annotations Entity .. java:import:: org.motechproject.mds.annotations Field .. java:import:: org.motechproject.mds.annotations UIDisplayable NotificationRule ================ .. java:package:: org.motechproject.admin.domain :noindex: .. java:type:: @Entity public class NotificationRule A notification rule persisted in the database. Represents a rule for sending out a single notification. Contains information about this notification's recipient and the \ :java:ref:`ActionType`\ representing a method used for notifying the recipient. Constructors ------------ NotificationRule ^^^^^^^^^^^^^^^^ .. java:constructor:: public NotificationRule() :outertype: NotificationRule NotificationRule ^^^^^^^^^^^^^^^^ .. java:constructor:: public NotificationRule(String recipient, ActionType actionType, Level level, String moduleName) :outertype: NotificationRule Methods ------- getActionType ^^^^^^^^^^^^^ .. java:method:: public ActionType getActionType() :outertype: NotificationRule getId ^^^^^ .. java:method:: public Long getId() :outertype: NotificationRule getLevel ^^^^^^^^ .. java:method:: public Level getLevel() :outertype: NotificationRule getModuleName ^^^^^^^^^^^^^ .. java:method:: public String getModuleName() :outertype: NotificationRule getRecipient ^^^^^^^^^^^^ .. java:method:: public String getRecipient() :outertype: NotificationRule matches ^^^^^^^ .. java:method:: public boolean matches(StatusMessage message) :outertype: NotificationRule setActionType ^^^^^^^^^^^^^ .. java:method:: public void setActionType(ActionType actionType) :outertype: NotificationRule setId ^^^^^ .. java:method:: public void setId(Long id) :outertype: NotificationRule setLevel ^^^^^^^^ .. java:method:: public void setLevel(Level level) :outertype: NotificationRule setModuleName ^^^^^^^^^^^^^ .. java:method:: public void setModuleName(String moduleName) :outertype: NotificationRule setRecipient ^^^^^^^^^^^^ .. java:method:: public void setRecipient(String recipient) :outertype: NotificationRule