Class KEWActionListMessageDeliverer
java.lang.Object
org.kuali.rice.ken.deliverer.impl.KEWActionListMessageDeliverer
- All Implemented Interfaces:
NotificationMessageDeliverer
This class is responsible for describing the default delivery mechanism for the system - the KEW
Action List.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty set in the attribute content that indicates the action received by workflow was initiated by the Notification System itself (and not an end user) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidautoRemoveMessageDelivery(NotificationMessageDelivery messageDelivery) This implementation does an auto-remove by "canceling" the workflow document associated with the message delivery record.voiddeliverMessage(NotificationMessageDelivery messageDelivery) This implementation leverages the workflow integration services to push this notification into the KEW action list.voiddismissMessageDelivery(NotificationMessageDelivery 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.protected voidMarks the workflow document as originating from the Notification System, so that the Notification post-processor does not route the action back through the Notification System.
-
Field Details
-
INTERNAL_COMMAND_FLAG
Property set in the attribute content that indicates the action received by workflow was initiated by the Notification System itself (and not an end user)- See Also:
-
-
Constructor Details
-
KEWActionListMessageDeliverer
public KEWActionListMessageDeliverer()
-
-
Method Details
-
deliverMessage
public void deliverMessage(NotificationMessageDelivery messageDelivery) throws NotificationMessageDeliveryException This implementation leverages the workflow integration services to push this notification into the KEW action list.- Specified by:
deliverMessagein interfaceNotificationMessageDeliverer- Parameters:
messageDelivery- The messageDelivery to process- Throws:
NotificationMessageDeliveryException- See Also:
-
autoRemoveMessageDelivery
public void autoRemoveMessageDelivery(NotificationMessageDelivery messageDelivery) throws NotificationAutoRemoveException This implementation does an auto-remove by "canceling" the workflow document associated with the message delivery record. This prevents the user from seeing the item in their list anymore.- Specified by:
autoRemoveMessageDeliveryin interfaceNotificationMessageDeliverer- Parameters:
messageDelivery- The messageDelivery to auto remove- Throws:
NotificationAutoRemoveException- See Also:
-
dismissMessageDelivery
public void dismissMessageDelivery(NotificationMessageDelivery messageDelivery, String user, String cause) Description copied from interface:NotificationMessageDelivererThis 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:
dismissMessageDeliveryin interfaceNotificationMessageDeliverer- 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- See Also:
-
flagWorkflowDocument
Marks the workflow document as originating from the Notification System, so that the Notification post-processor does not route the action back through the Notification System.- Parameters:
doc- the doc to monogram
-