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


Constructor Summary
MockEmailNotificationServiceImpl()
           
 
Method Summary
protected  MockStyleableEmailContentService getEmailContentGenerator()
           
 Integer getTotalPeriodicRemindersSent()
           
 Integer getTotalPeriodicRemindersSent(String emailReminderConstant)
           
 int immediateReminderEmailsSent(String networkId, String documentId, String actionRequestCd)
           
 void resetReminderCounts()
          Resets the reminder counts
 void scheduleBatchEmailReminders()
           
protected  boolean sendActionListEmailNotification()
          This overridden method returns a value of true always
 void sendDailyReminder()
           
 void sendImmediateReminder(ActionItem actionItem, Boolean skipOnApprovals)
          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()
           
 void setDeploymentEnvironment(String deploymentEnvironment)
           
 void setEmailContentGenerator(EmailContentService contentService)
           
 void setMailer(Mailer mailer)
           
 boolean wasDailyReminderSent()
           
 boolean wasStyleServiceAccessed()
           
 boolean wasWeeklyReminderSent()
           
 
Methods inherited from class org.kuali.rice.kew.mail.service.impl.CustomizableActionListEmailServiceImpl
sendPeriodicReminder
 
Methods inherited from class org.kuali.rice.kew.mail.service.impl.ActionListEmailServiceImpl
buildDailyReminderBody, buildImmediateReminderBody, buildWeeklyReminderBody, checkEmailNotificationPreferences, filterActionItemsToNotify, getActionListService, getActionListUrl, getApplicationEmailAddress, getDeploymentEnvironment, getDocumentTypeEmailAddress, getEmailFrom, getEmailSubject, getEmailSubject, getEmailTo, getHelpLink, getHelpLink, getPreferencesUrl, getUsersWithEmailSetting, isProduction, sendEmail, sendEmail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(ActionItem actionItem,
                                  Boolean skipOnApprovals)
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

wasDailyReminderSent

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

sendWeeklyReminder

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

wasWeeklyReminderSent

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

scheduleBatchEmailReminders

public void scheduleBatchEmailReminders()
                                 throws Exception
Specified by:
scheduleBatchEmailReminders in interface ActionListEmailService
Overrides:
scheduleBatchEmailReminders in class ActionListEmailServiceImpl
Throws:
Exception

sendPeriodicReminder

protected void sendPeriodicReminder(Person user,
                                    Collection<ActionItem> actionItems,
                                    String emailSetting)

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

immediateReminderEmailsSent

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

setEmailContentGenerator

public void setEmailContentGenerator(EmailContentService contentService)
Overrides:
setEmailContentGenerator in class CustomizableActionListEmailServiceImpl

getEmailContentGenerator

protected MockStyleableEmailContentService getEmailContentGenerator()
Overrides:
getEmailContentGenerator in class CustomizableActionListEmailServiceImpl

setMailer

public void setMailer(Mailer mailer)
Overrides:
setMailer in class ActionListEmailServiceImpl

setDeploymentEnvironment

public void setDeploymentEnvironment(String deploymentEnvironment)
Overrides:
setDeploymentEnvironment in class ActionListEmailServiceImpl


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