public class MockMessageDeliverer extends Object implements MessageDeliverer
Constructor and Description |
---|
MockMessageDeliverer() |
Modifier and Type | Method and Description |
---|---|
void |
deliver(MessageDelivery messageDelivery)
This method is responsible for delivering the passed in messageDelivery record.
|
void |
dismiss(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.
|
String |
getDescription()
This method returns the human readable description for this plugin.
|
String |
getName()
This method returns the human readable name of the plugin.
|
LinkedHashMap<String,String> |
getPreferenceKeys()
This method is responsible for returning a list of preference key names along with their corresponding labels that get
rendered in the UI.
|
String |
getTitle()
This method returns the human readable Title of the plugin.
|
void |
validatePreferenceValues(HashMap prefs)
This method is responsible for validating preference values when a person saves their preferences for the particular
NotificationMessageDeliverer.
|
public MockMessageDeliverer()
public void deliver(MessageDelivery messageDelivery) throws MessageDeliveryException
MessageDeliverer
deliver
in interface MessageDeliverer
messageDelivery
- The messageDelivery to processMessageDeliveryException
MessageDeliverer.deliver(org.kuali.rice.kcb.bo.MessageDelivery)
public void dismiss(MessageDelivery messageDelivery, String user, String cause) throws MessageDismissalException
MessageDeliverer
dismiss
in interface MessageDeliverer
messageDelivery
- the messageDelivery to dismisscause
- the reason the message was dismissedMessageDismissalException
MessageDeliverer.dismiss(org.kuali.rice.kcb.bo.MessageDelivery, java.lang.String, java.lang.String)
public String getDescription()
MessageDeliverer
getDescription
in interface MessageDeliverer
MessageDeliverer.getDescription()
public String getName()
MessageDeliverer
getName
in interface MessageDeliverer
MessageDeliverer.getName()
public LinkedHashMap<String,String> getPreferenceKeys()
MessageDeliverer
getPreferenceKeys
in interface MessageDeliverer
MessageDeliverer.getPreferenceKeys()
public String getTitle()
MessageDeliverer
getTitle
in interface MessageDeliverer
MessageDeliverer.getTitle()
public void validatePreferenceValues(HashMap prefs) throws ErrorList
MessageDeliverer
validatePreferenceValues
in interface MessageDeliverer
ErrorList
MessageDeliverer.validatePreferenceValues(java.util.HashMap)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.