Class DefaultNotificationService

java.lang.Object
org.kuali.rice.kew.notification.service.impl.DefaultNotificationService
All Implemented Interfaces:
NotificationService

public class DefaultNotificationService extends Object implements NotificationService
The default implementation of the NotificationService.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.logging.log4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    isItemOriginatingFromSave(org.kuali.rice.kew.api.action.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<org.kuali.rice.kew.api.action.ActionItem> actionItems)
    Queues up immediate email processors for ActionItem notification.
    void
    removeNotification(List<org.kuali.rice.kew.api.action.ActionItem> actionItems)
    Remove notifications for action items that are being deleted
    protected void
    sendNotification(org.kuali.rice.kew.api.action.ActionItem actionItem)
    Sends a notification
    protected boolean
    shouldNotify(org.kuali.rice.kew.api.action.ActionItem actionItem)
     
    protected boolean
    shouldNotifyOnSave(org.kuali.rice.kew.api.action.ActionItem actionItem)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      protected final org.apache.logging.log4j.Logger LOG
  • Constructor Details

    • DefaultNotificationService

      public DefaultNotificationService()
  • Method Details

    • notify

      public void notify(List<org.kuali.rice.kew.api.action.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(org.kuali.rice.kew.api.action.ActionItem actionItem)
      Sends a notification
      Parameters:
      actionItem - the action item
    • shouldNotify

      protected boolean shouldNotify(org.kuali.rice.kew.api.action.ActionItem actionItem)
    • isItemOriginatingFromSave

      protected boolean isItemOriginatingFromSave(org.kuali.rice.kew.api.action.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(org.kuali.rice.kew.api.action.ActionItem actionItem)
    • removeNotification

      public void removeNotification(List<org.kuali.rice.kew.api.action.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