mocks
Class MockStyleableEmailContentServiceImpl

java.lang.Object
  extended by org.kuali.rice.kew.mail.service.impl.BaseEmailContentServiceImpl
      extended by org.kuali.rice.kew.mail.service.impl.StyleableEmailContentServiceImpl
          extended by mocks.MockStyleableEmailContentServiceImpl
All Implemented Interfaces:
MockStyleableEmailContentService, EmailContentService

public class MockStyleableEmailContentServiceImpl
extends StyleableEmailContentServiceImpl
implements MockStyleableEmailContentService

This is a class used to substitute for a StyleableEmailContentServiceImpl class

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

Field Summary
 
Fields inherited from class org.kuali.rice.kew.mail.service.impl.StyleableEmailContentServiceImpl
DEFAULT_EMAIL_STYLESHEET_RESOURCE_LOC, globalEmailStyleSheet, routeHeaderService, styleHelper, styleService
 
Fields inherited from class org.kuali.rice.kew.mail.service.impl.BaseEmailContentServiceImpl
defaultEmailFromAddress, deploymentEnvironment
 
Constructor Summary
MockStyleableEmailContentServiceImpl()
           
 
Method Summary
 EmailContent generateDailyReminder(Person user, Collection<ActionItem> actionItems)
           
 EmailContent generateFeedback(FeedbackForm form)
           
 EmailContent generateImmediateReminder(Person user, ActionItem actionItem, DocumentType documentType)
           
 EmailContent generateWeeklyReminder(Person user, Collection<ActionItem> actionItems)
           
 DocumentRouteHeaderValue getRouteHeader(ActionItem actionItem)
          This overridden method is used in case the action item has an null route header attached
 Map<String,DocumentRouteHeaderValue> getRouteHeaders(Collection<ActionItem> actionItems)
           
 void resetServiceAccessed()
          This method returns whether this service is being used
 boolean wasServiceAccessed()
          This method returns whether this service is being used
 
Methods inherited from class org.kuali.rice.kew.mail.service.impl.StyleableEmailContentServiceImpl
addCDataElement, addDelegatorElement, addDocumentHeaderXML, addObjectXML, addSummarizedActionItem, addTextElement, addTimestampElement, addWorkgroupRequestElement, generateEmailContent, generateReminderForActionItems, getDocumentBuilder, getStyle, setGlobalEmailStyleSheet, setStandardAttributes, setStyleService, transform
 
Methods inherited from class org.kuali.rice.kew.mail.service.impl.BaseEmailContentServiceImpl
getActionListUrl, getApplicationEmailAddress, getCustomEmailAttribute, getDeploymentEnvironment, getDocumentTypeEmailAddress, getPreferencesUrl, setDefaultEmailFromAddress, 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.EmailContentService
getApplicationEmailAddress, getDocumentTypeEmailAddress
 

Constructor Detail

MockStyleableEmailContentServiceImpl

public MockStyleableEmailContentServiceImpl()
Method Detail

generateImmediateReminder

public EmailContent generateImmediateReminder(Person user,
                                              ActionItem actionItem,
                                              DocumentType documentType)
Specified by:
generateImmediateReminder in interface EmailContentService
Overrides:
generateImmediateReminder in class StyleableEmailContentServiceImpl

generateDailyReminder

public EmailContent generateDailyReminder(Person user,
                                          Collection<ActionItem> actionItems)
Specified by:
generateDailyReminder in interface EmailContentService
Overrides:
generateDailyReminder in class StyleableEmailContentServiceImpl

generateWeeklyReminder

public EmailContent generateWeeklyReminder(Person user,
                                           Collection<ActionItem> actionItems)
Specified by:
generateWeeklyReminder in interface EmailContentService
Overrides:
generateWeeklyReminder in class StyleableEmailContentServiceImpl

generateFeedback

public EmailContent generateFeedback(FeedbackForm form)
Specified by:
generateFeedback in interface EmailContentService
Overrides:
generateFeedback in class StyleableEmailContentServiceImpl

getRouteHeader

public DocumentRouteHeaderValue getRouteHeader(ActionItem actionItem)
This overridden method is used in case the action item has an null route header attached

Overrides:
getRouteHeader in class StyleableEmailContentServiceImpl
See Also:
org.kuali.rice.kew.mail.service.impl.StyleableEmailContentServiceImpl#getRouteHeader(org.kuali.rice.kew.actionitem.ActionItem)

getRouteHeaders

public Map<String,DocumentRouteHeaderValue> getRouteHeaders(Collection<ActionItem> actionItems)
Overrides:
getRouteHeaders in class StyleableEmailContentServiceImpl

wasServiceAccessed

public boolean wasServiceAccessed()
This method returns whether this service is being used

Specified by:
wasServiceAccessed in interface MockStyleableEmailContentService

resetServiceAccessed

public void resetServiceAccessed()
This method returns whether this service is being used

Specified by:
resetServiceAccessed in interface MockStyleableEmailContentService


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