|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kcb.deliverer.impl.MockMessageDeliverer
public class MockMessageDeliverer
A mock message deliverer that does nothing
Field Summary | |
---|---|
private Map<Long,MessageDelivery> |
deliveries
Map of deliveries |
Constructor Summary | |
---|---|
MockMessageDeliverer()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Map<Long,MessageDelivery> deliveries
Constructor Detail |
---|
public MockMessageDeliverer()
Method Detail |
---|
public void deliver(MessageDelivery messageDelivery) throws MessageDeliveryException
MessageDeliverer
deliver
in interface MessageDeliverer
messageDelivery
- The messageDelivery to process
MessageDeliveryException
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 dismissed
MessageDismissalException
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |