mocks
Class MockEmailNotificationServiceImpl

java.lang.Object
  extended by org.kuali.rice.kew.mail.service.impl.ActionListEmailServiceImpl
      extended by org.kuali.rice.kew.mail.service.impl.CustomizableActionListEmailServiceImpl
          extended by mocks.MockEmailNotificationServiceImpl
All Implemented Interfaces:
MockEmailNotificationService, ActionListEmailService

public class MockEmailNotificationServiceImpl
extends CustomizableActionListEmailServiceImpl
implements MockEmailNotificationService


Field Summary
private static Map<String,Integer> aggregateReminderCount
           
private static Map<String,List> immediateReminders
           
private static org.apache.log4j.Logger LOG
           
static boolean SEND_DAILY_REMINDER_CALLED
           
static boolean SEND_WEEKLY_REMINDER_CALLED
           
 
Constructor Summary
MockEmailNotificationServiceImpl()
           
 
Method Summary
protected  MockStyleableEmailContentService getEmailContentGenerator()
           
 Integer getTotalPeriodicRemindersSent()
           
 Integer getTotalPeriodicRemindersSent(String emailReminderConstant)
           
 int immediateReminderEmailsSent(String networkId, Long documentId, String actionRequestCd)
           
 void resetReminderCounts()
          Resets the reminder counts
private  void resetStyleService()
           
protected  boolean sendActionListEmailNotification()
          This overridden method returns a value of true always
 void sendDailyReminder()
           
 void sendImmediateReminder(Person user, ActionItem actionItem)
          This overridden method will perform the standard operations from org.kuali.rice.kew.mail.ActionListEmailServiceImpl but will also keep track of action items processed
protected  void sendPeriodicReminder(Person user, Collection<ActionItem> actionItems, String emailSetting)
           
 void sendWeeklyReminder()
           
 boolean wasStyleServiceAccessed()
           
 
Methods inherited from class org.kuali.rice.kew.mail.service.impl.CustomizableActionListEmailServiceImpl
setEmailContentGenerator
 
Methods inherited from class org.kuali.rice.kew.mail.service.impl.ActionListEmailServiceImpl
buildDailyReminderBody, buildImmediateReminderBody, buildWeeklyReminderBody, filterActionItemsToNotify, getActionListService, getActionListUrl, getApplicationEmailAddress, getDeploymentEnvironment, getDocumentTypeEmailAddress, getEmailFrom, getEmailSubject, getEmailSubject, getHelpLink, getHelpLink, getPreferencesUrl, getUsersWithEmailSetting, isProduction, scheduleBatchEmailReminders, sendEmail, sendEmail, setDeploymentEnvironment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kew.mail.service.ActionListEmailService
scheduleBatchEmailReminders
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG

immediateReminders

private static Map<String,List> immediateReminders

aggregateReminderCount

private static Map<String,Integer> aggregateReminderCount

SEND_DAILY_REMINDER_CALLED

public static boolean SEND_DAILY_REMINDER_CALLED

SEND_WEEKLY_REMINDER_CALLED

public static boolean SEND_WEEKLY_REMINDER_CALLED
Constructor Detail

MockEmailNotificationServiceImpl

public MockEmailNotificationServiceImpl()
Method Detail

resetReminderCounts

public void resetReminderCounts()
Resets the reminder counts

Specified by:
resetReminderCounts in interface MockEmailNotificationService

sendImmediateReminder

public void sendImmediateReminder(Person user,
                                  ActionItem actionItem)
This overridden method will perform the standard operations from org.kuali.rice.kew.mail.ActionListEmailServiceImpl but will also keep track of action items processed

Specified by:
sendImmediateReminder in interface ActionListEmailService
Overrides:
sendImmediateReminder in class CustomizableActionListEmailServiceImpl

sendActionListEmailNotification

protected boolean sendActionListEmailNotification()
This overridden method returns a value of true always

Overrides:
sendActionListEmailNotification in class ActionListEmailServiceImpl

sendDailyReminder

public void sendDailyReminder()
Specified by:
sendDailyReminder in interface MockEmailNotificationService
Specified by:
sendDailyReminder in interface ActionListEmailService
Overrides:
sendDailyReminder in class ActionListEmailServiceImpl

sendWeeklyReminder

public void sendWeeklyReminder()
Specified by:
sendWeeklyReminder in interface MockEmailNotificationService
Specified by:
sendWeeklyReminder in interface ActionListEmailService
Overrides:
sendWeeklyReminder in class ActionListEmailServiceImpl

sendPeriodicReminder

protected void sendPeriodicReminder(Person user,
                                    Collection<ActionItem> actionItems,
                                    String emailSetting)
Overrides:
sendPeriodicReminder in class CustomizableActionListEmailServiceImpl

getTotalPeriodicRemindersSent

public Integer getTotalPeriodicRemindersSent(String emailReminderConstant)
Specified by:
getTotalPeriodicRemindersSent in interface MockEmailNotificationService

getTotalPeriodicRemindersSent

public Integer getTotalPeriodicRemindersSent()
Specified by:
getTotalPeriodicRemindersSent in interface MockEmailNotificationService

wasStyleServiceAccessed

public boolean wasStyleServiceAccessed()
Specified by:
wasStyleServiceAccessed in interface MockEmailNotificationService

resetStyleService

private void resetStyleService()

immediateReminderEmailsSent

public int immediateReminderEmailsSent(String networkId,
                                       Long documentId,
                                       String actionRequestCd)
Specified by:
immediateReminderEmailsSent in interface MockEmailNotificationService

getEmailContentGenerator

protected MockStyleableEmailContentService getEmailContentGenerator()
Overrides:
getEmailContentGenerator in class CustomizableActionListEmailServiceImpl


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.