Class EmailMessageDeliverer
java.lang.Object
org.kuali.rice.kcb.deliverer.impl.EmailMessageDeliverer
- All Implemented Interfaces:
MessageDeliverer
This class is responsible for describing the email delivery mechanism for
the system.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeliver(MessageDelivery messageDelivery) This implementation uses the email service to deliver a notification.voiddismiss(MessageDelivery messageDelivery, String user, String cause) This method dismisses/removes the NotificationMessageDelivery so that it is no longer being presented to the user via this deliverer.This method returns the human readable description for this plugin.getName()This method returns the human readable name of the plugin.This implementation returns an address field.getTitle()This method returns the human readable Title of the plugin.voidvalidatePreferenceValues(HashMap<String, String> prefs) This method is responsible for validating preference values when a person saves their preferences for the particular NotificationMessageDeliverer.
-
Field Details
-
NAME
- See Also:
-
EMAIL_ADDR_PREF_KEY
- See Also:
-
EMAIL_DELIV_FRMT_PREF_KEY
- See Also:
-
-
Constructor Details
-
EmailMessageDeliverer
public EmailMessageDeliverer()
-
-
Method Details
-
deliver
public void deliver(MessageDelivery messageDelivery) throws org.kuali.rice.kcb.api.exception.MessageDeliveryException This implementation uses the email service to deliver a notification.- Specified by:
deliverin interfaceMessageDeliverer- Parameters:
messageDelivery- The messageDelivery to process- Throws:
org.kuali.rice.kcb.api.exception.MessageDeliveryException- See Also:
-
dismiss
Description copied from interface:MessageDelivererThis method dismisses/removes the NotificationMessageDelivery so that it is no longer being presented to the user via this deliverer. Note, whether this action is meaningful is dependent on the deliverer implementation. If the deliverer cannot control the presentation of the message, then this method need not do anything.- Specified by:
dismissin interfaceMessageDeliverer- Parameters:
messageDelivery- the messageDelivery to dismissuser- the user that caused the dismissal; in the case of end-user actions, this will most likely be the user to which the message was delivered (user recipient in the NotificationMessageDelivery object)cause- the reason the message was dismissed
-
getDescription
Description copied from interface:MessageDelivererThis method returns the human readable description for this plugin.- Specified by:
getDescriptionin interfaceMessageDeliverer- Returns:
- String
-
getName
Description copied from interface:MessageDelivererThis method returns the human readable name of the plugin. This name is the key for this message delivery type. It must be unique and not contain any spaces.- Specified by:
getNamein interfaceMessageDeliverer- Returns:
- String
-
getTitle
Description copied from interface:MessageDelivererThis method returns the human readable Title of the plugin. This name is the string used for identifying the plugin in the UI. It may contain spaces characters.- Specified by:
getTitlein interfaceMessageDeliverer- Returns:
- String
-
getPreferenceKeys
This implementation returns an address field.- Specified by:
getPreferenceKeysin interfaceMessageDeliverer- Returns:
- LinkedHashMap
-
validatePreferenceValues
Description copied from interface:MessageDelivererThis method is responsible for validating preference values when a person saves their preferences for the particular NotificationMessageDeliverer. For example, if "phoneNumber" is one of the preferences for an SMS deliverer, then this method would be responsible for validating the value entered by a particular user such that it was properly constructed with hyphens or not, etc. Errors would be constructed and added to the ErrorList instance and be thrown from the method if any occurred.- Specified by:
validatePreferenceValuesin interfaceMessageDeliverer- Throws:
ErrorList
-