Class NotificationSuppression
java.lang.Object
org.kuali.rice.kew.actionrequest.service.impl.NotificationSuppression
This utility class encapsulates functions used to provide notification suppression
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotificationSuppression(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 voidfilterNotificationSuppressedActionItems(List<ActionItem> actionItems, RouteNodeInstance routeNodeInstance) This method filters any ActionItems whose related ActionRequestValueS have been flagged for notification suppression.Builds keys for action requests used for notification suppression.getSuppressNotifyNodeStateKeys(org.kuali.rice.kew.api.action.ActionRequest a) Builds keys for action requests used for notification suppression.voidnotify(List<ActionItem> actionItems, RouteNodeInstance routeNodeInstance) This method takes care of notification for ActionItemS.
-
Field Details
-
SUPPRESS_NOTIFY_KEY_START
- See Also:
-
-
Constructor Details
-
NotificationSuppression
public NotificationSuppression()
-
-
Method Details
-
addNotificationSuppression
public 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!).- Parameters:
nodeInstance- where additional NodeState will be addedactionRequestValue-
-
filterNotificationSuppressedActionItems
protected void filterNotificationSuppressedActionItems(List<ActionItem> actionItems, RouteNodeInstance routeNodeInstance) This method filters any ActionItems whose related ActionRequestValueS have been flagged for notification suppression.- Parameters:
actionItems- the ActionItemS to filterrouteNodeInstance- the RouteNodeInstance that the actionItems are associated with
-
notify
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.
- Parameters:
actionItems- a list of ActionItemS related to the given routeNodeInstancerouteNodeInstance- the RouteNodeInstance related to the given actionItems
-
getSuppressNotifyNodeStateKeys
protected List<String> getSuppressNotifyNodeStateKeys(org.kuali.rice.kew.api.action.ActionRequest a) Builds keys for action requests used for notification suppression.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!- Parameters:
a-- Returns:
- List
-
getSuppressNotifyNodeStateKeys
Builds keys for action requests used for notification suppression.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!- Parameters:
a-- Returns:
- List
-