org.kuali.rice.kew.notification.service.impl
Class DefaultNotificationService

java.lang.Object
  extended by org.kuali.rice.kew.notification.service.impl.DefaultNotificationService
All Implemented Interfaces:
NotificationService
Direct Known Subclasses:
KCBNotificationService

public class DefaultNotificationService
extends Object
implements NotificationService

The default implementation of the NotificationService.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
protected  org.apache.log4j.Logger LOG
           
 
Constructor Summary
DefaultNotificationService()
           
 
Method Summary
protected  boolean isItemOriginatingFromSave(ActionItem actionItem)
          Returns true if the ActionItem doesn't represent a request generated from a "SAVE" action or, if it does, returns true if the document type policy
 void notify(List<ActionItem> actionItems)
          Queues up immediate email processors for ActionItem notification.
 void removeNotification(List<ActionItem> actionItems)
          Remove notifications for action items that are being deleted
protected  void sendNotification(ActionItem actionItem)
          Sends a notification
protected  boolean shouldNotify(ActionItem actionItem)
           
protected  boolean shouldNotifyOnSave(ActionItem actionItem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected final org.apache.log4j.Logger LOG
Constructor Detail

DefaultNotificationService

public DefaultNotificationService()
Method Detail

notify

public void notify(List<ActionItem> actionItems)
Queues up immediate email processors for ActionItem notification. Prioritizes the list of Action Items passed in and attempts to not send out multiple emails to the same user.

Specified by:
notify in interface NotificationService

sendNotification

protected void sendNotification(ActionItem actionItem)
Sends a notification

Parameters:
actionItem - the action item

shouldNotify

protected boolean shouldNotify(ActionItem actionItem)

isItemOriginatingFromSave

protected boolean isItemOriginatingFromSave(ActionItem actionItem)
Returns true if the ActionItem doesn't represent a request generated from a "SAVE" action or, if it does, returns true if the document type policy


shouldNotifyOnSave

protected boolean shouldNotifyOnSave(ActionItem actionItem)

removeNotification

public void removeNotification(List<ActionItem> actionItems)
Description copied from interface: NotificationService
Remove notifications for action items that are being deleted

Specified by:
removeNotification in interface NotificationService
Parameters:
actionItems - actionItems that are being deleted


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.