public class NotificationSuppression extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SUPPRESS_NOTIFY_KEY_START |
Constructor and Description |
---|
NotificationSuppression() |
Modifier and Type | Method and Description |
---|---|
void |
addNotificationSuppression(RouteNodeInstance nodeInstance,
ActionRequestValue actionRequestValue)
add metadata (a NodeState) to the route node so that if this action request is regenerated
verbatim, the notification email will suppressed (since it is a duplicate!).
|
protected void |
filterNotificationSuppressedActionItems(List<ActionItem> actionItems,
RouteNodeInstance routeNodeInstance)
This method filters any ActionItems whose related ActionRequestValueS have been flagged for notification
suppression.
|
protected List<String> |
getSuppressNotifyNodeStateKeys(ActionRequest a)
Builds keys for action requests used for notification suppression.
|
protected List<String> |
getSuppressNotifyNodeStateKeys(ActionRequestValue a)
Builds keys for action requests used for notification suppression.
|
void |
notify(List<ActionItem> actionItems,
RouteNodeInstance routeNodeInstance)
This method takes care of notification for ActionItemS.
|
public static final String SUPPRESS_NOTIFY_KEY_START
public NotificationSuppression()
public void addNotificationSuppression(RouteNodeInstance nodeInstance, ActionRequestValue actionRequestValue)
nodeInstance
- where additional NodeState will be addedactionRequestValue
- protected void filterNotificationSuppressedActionItems(List<ActionItem> actionItems, RouteNodeInstance routeNodeInstance)
actionItems
- the ActionItemS to filterrouteNodeInstance
- the RouteNodeInstance that the actionItems are associated withpublic void notify(List<ActionItem> actionItems, RouteNodeInstance routeNodeInstance)
This method takes care of notification for ActionItemS. It has logic for suppressing notifications when the RouteNodeInstance has NodeState specifically hinting for notification suppression for a given ActionItem.
A side effect is that any notification suppression NodeStateS will be removed from the RouteNodeInstance after notifications are sent.
actionItems
- a list of ActionItemS related to the given routeNodeInstancerouteNodeInstance
- the RouteNodeInstance related to the given actionItemsprotected List<String> getSuppressNotifyNodeStateKeys(ActionRequest a)
NOTE: This method needs to stay in sync with #getSuppressNotifyNodeStateKeys(org.kuali.rice.kew.dto.ActionRequestDTO)
Any changes here must be made there as well!
a
- protected List<String> getSuppressNotifyNodeStateKeys(ActionRequestValue a)
NOTE: This method needs to stay in sync with getSuppressNotifyNodeStateKeys(org.kuali.rice.kew.actionrequest.ActionRequestValue)
Any changes here must be made there as well!
a
- Copyright © 2005–2014 The Kuali Foundation. All rights reserved.