Class ActionListEmailServiceImpl
java.lang.Object
org.kuali.rice.kew.mail.service.impl.ActionListEmailServiceImpl
- All Implemented Interfaces:
ActionListEmailService
- Direct Known Subclasses:
CustomizableActionListEmailServiceImpl
ActionListeEmailService which generates messages whose body and subject can be customized via KEW
configuration parameters, 'immediate.reminder.email.message' and
'immediate.reminder.email.subject'. The immediate reminder email message key should specify a
MessageFormat string. See code for the parameters to this MessageFormat.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildDailyReminderBody(Collection<ActionItem> actionItems) buildImmediateReminderBody(org.kuali.rice.kim.api.identity.Person person, org.kuali.rice.kew.api.action.ActionItem actionItem, DocumentType documentType) buildWeeklyReminderBody(Collection<ActionItem> actionItems) protected booleancheckEmailNotificationPreferences(org.kuali.rice.kew.api.action.ActionItemContract actionItem, org.kuali.rice.kew.api.preferences.Preferences preferences, String emailSetting) This method takes in a type of email which is being sent, an action item which is being checked and a user's preferences and it checks to see if the action item should be included in the given kind of email based on the user's preferences.protected Collection<ActionItem> filterActionItemsToNotify(String principalId, Collection<ActionItem> actionItems, String emailSetting) Returns a filtered Collection ofActionItems which are filtered according to the user's preferences.protected ActionListServiceprotected StringgetDocumentTypeEmailAddress(DocumentType documentType) protected org.kuali.rice.core.api.mail.EmailFromgetEmailFrom(DocumentType documentType) org.kuali.rice.core.api.mail.EmailSubjectorg.kuali.rice.core.api.mail.EmailSubjectgetEmailSubject(String customSubject) protected org.kuali.rice.core.api.mail.EmailTogetEmailTo(org.kuali.rice.kim.api.identity.Person user) protected Stringprotected StringgetHelpLink(DocumentType documentType) protected Stringprotected Collection<String> getUsersWithEmailSetting(String setting) protected booleanvoidprotected booleanvoidprotected voidsendEmail(org.kuali.rice.kim.api.identity.Person user, org.kuali.rice.core.api.mail.EmailSubject subject, org.kuali.rice.core.api.mail.EmailBody body) protected voidsendEmail(org.kuali.rice.kim.api.identity.Person user, org.kuali.rice.core.api.mail.EmailSubject subject, org.kuali.rice.core.api.mail.EmailBody body, DocumentType documentType) protected voidsendEmail(org.kuali.rice.kim.api.identity.Person user, org.kuali.rice.core.api.mail.EmailSubject subject, org.kuali.rice.core.api.mail.EmailBody body, DocumentType documentType, Boolean isHtmlMessage) voidsendImmediateReminder(org.kuali.rice.kew.api.action.ActionItem actionItem, Boolean skipOnApprovals) protected voidsendPeriodicReminder(String principalId, Collection<ActionItem> actionItems, String emailSetting) voidvoidsetDeploymentEnvironment(String deploymentEnvironment) voidsetMailer(org.kuali.rice.core.api.mail.Mailer mailer)
-
Constructor Details
-
ActionListEmailServiceImpl
public ActionListEmailServiceImpl()
-
-
Method Details
-
setMailer
public void setMailer(org.kuali.rice.core.api.mail.Mailer mailer) -
getDocumentTypeEmailAddress
-
getApplicationEmailAddress
-
getHelpLink
-
getHelpLink
-
getEmailSubject
public org.kuali.rice.core.api.mail.EmailSubject getEmailSubject() -
getEmailSubject
-
getEmailFrom
-
getEmailTo
protected org.kuali.rice.core.api.mail.EmailTo getEmailTo(org.kuali.rice.kim.api.identity.Person user) -
sendEmail
protected void sendEmail(org.kuali.rice.kim.api.identity.Person user, org.kuali.rice.core.api.mail.EmailSubject subject, org.kuali.rice.core.api.mail.EmailBody body) -
sendEmail
protected void sendEmail(org.kuali.rice.kim.api.identity.Person user, org.kuali.rice.core.api.mail.EmailSubject subject, org.kuali.rice.core.api.mail.EmailBody body, DocumentType documentType) -
sendEmail
protected void sendEmail(org.kuali.rice.kim.api.identity.Person user, org.kuali.rice.core.api.mail.EmailSubject subject, org.kuali.rice.core.api.mail.EmailBody body, DocumentType documentType, Boolean isHtmlMessage) -
checkEmailNotificationPreferences
protected boolean checkEmailNotificationPreferences(org.kuali.rice.kew.api.action.ActionItemContract actionItem, org.kuali.rice.kew.api.preferences.Preferences preferences, String emailSetting) This method takes in a type of email which is being sent, an action item which is being checked and a user's preferences and it checks to see if the action item should be included in the given kind of email based on the user's preferences. -
sendImmediateReminder
public void sendImmediateReminder(org.kuali.rice.kew.api.action.ActionItem actionItem, Boolean skipOnApprovals) - Specified by:
sendImmediateReminderin interfaceActionListEmailService
-
isProduction
protected boolean isProduction() -
sendDailyReminder
public void sendDailyReminder()- Specified by:
sendDailyReminderin interfaceActionListEmailService
-
sendWeeklyReminder
public void sendWeeklyReminder()- Specified by:
sendWeeklyReminderin interfaceActionListEmailService
-
sendPeriodicReminder
protected void sendPeriodicReminder(String principalId, Collection<ActionItem> actionItems, String emailSetting) -
filterActionItemsToNotify
protected Collection<ActionItem> filterActionItemsToNotify(String principalId, Collection<ActionItem> actionItems, String emailSetting) Returns a filtered Collection ofActionItems which are filtered according to the user's preferences. If they have opted not to recieve secondary or primary delegation emails then they will not be included. -
getUsersWithEmailSetting
-
buildImmediateReminderBody
public String buildImmediateReminderBody(org.kuali.rice.kim.api.identity.Person person, org.kuali.rice.kew.api.action.ActionItem actionItem, DocumentType documentType) -
buildDailyReminderBody
-
buildWeeklyReminderBody
-
sendActionListEmailNotification
protected boolean sendActionListEmailNotification() -
scheduleBatchEmailReminders
- Specified by:
scheduleBatchEmailRemindersin interfaceActionListEmailService- Throws:
Exception
-
getActionListService
-
getDeploymentEnvironment
-
setDeploymentEnvironment
-
getActionListUrl
-
getPreferencesUrl
-