public class PdpEmailServiceImpl extends Object implements PdpEmailService
PdpEmailService| Modifier and Type | Field and Description | 
|---|---|
| protected AchBankService | achBankService | 
| protected CustomerProfileService | customerProfileService | 
| protected org.kuali.rice.kns.service.DataDictionaryService | dataDictionaryService | 
| protected org.kuali.rice.core.api.config.property.ConfigurationService | kualiConfigurationService | 
| protected org.kuali.rice.krad.service.MailService | mailService | 
| protected org.kuali.rice.coreservice.framework.parameter.ParameterService | parameterService | 
| Constructor and Description | 
|---|
| PdpEmailServiceImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | addPaymentFieldsToBody(StringBuilder body,
                                            Integer batchId,
                                            String chart,
                                            String unit,
                                            String subUnit,
                                            Date createDate,
                                            int paymentCount,
                                            org.kuali.rice.core.api.util.type.KualiDecimal paymentTotal)Writes out payment file field labels and values to  StringBuffer | 
| void | alterMessageWhenNonProductionInstance(org.kuali.rice.core.api.mail.MailMessage message,
                                                                          String environmentCode)KFSMI-6475 - Alter the subject and switch all recipients | 
| protected String | getEmailSubject(String subjectParmaterName)Retrieves the email subject text from system parameter then checks environment code and prepends to message if not
 production. | 
| protected String | getMessage(String messageKey,
                    Object... messageParameters)Helper method to retrieve a message from resources and substitute place holder values | 
| boolean | isPaymentEmailEnabled()Reads system parameter indicating whether to status emails should be sent | 
| void | sendAchAdviceEmail(PaymentGroup paymentGroup,
                                    PaymentDetail paymentDetail,
                                    CustomerProfile customer)Sends advice notification email to the payee receiving an ACH payment | 
| void | sendAchSummaryEmail(Map<String,Integer> unitCounts,
                                      Map<String,org.kuali.rice.core.api.util.type.KualiDecimal> unitTotals,
                                      Date disbursementDate)Sends summary email for an ACH extract | 
| void | sendCancelEmail(PaymentGroup paymentGroup,
                              String note,
                              org.kuali.rice.kim.api.identity.Person user)Sends Payment Cancellation Email | 
| void | sendDisbursementVoucherImmediateExtractEmail(DisbursementVoucherDocument disbursementVoucher,
                                                                                        org.kuali.rice.kim.api.identity.Person user)Sends notification e-mail that an immediate extract Disbursement Voucher has been extracted | 
| void | sendErrorEmail(PaymentFileLoad paymentFile,
                            org.kuali.rice.krad.util.MessageMap errors)Sends email for a payment load has failed. | 
| void | sendExceedsMaxNotesWarningEmail(List<String> creditMemos,
                                                              List<String> paymentRequests,
                                                              int lineTotal,
                                                              int maxNoteLines)Sends email for a purap bundle that exceeds the maximum number of notes allowed | 
| void | sendLoadEmail(Batch batch)Sends email for a load done internally | 
| void | sendLoadEmail(PaymentFileLoad paymentFile,
                          List<String> warnings)Sends email for a successful payment load. | 
| void | sendTaxEmail(PaymentFileLoad paymentFile)Sends email for a payment load that was held due to tax reasons | 
| protected void | sendThresholdEmail(boolean fileThreshold,
                                    PaymentFileLoad paymentFile,
                                    CustomerProfile customer)Sends email for a payment that was over the customer file threshold or the detail threshold | 
| void | setAchBankService(AchBankService achBankService)Sets the achBankService attribute value. | 
| void | setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService)Sets the kualiConfigurationService attribute value. | 
| void | setCustomerProfileService(CustomerProfileService customerProfileService)Sets the customerProfileService attribute value. | 
| void | setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)Sets the dataDictionaryService attribute value. | 
| void | setMailService(org.kuali.rice.krad.service.MailService mailService)Sets the mailService attribute value. | 
| void | setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)Sets the parameterService attribute value. | 
protected CustomerProfileService customerProfileService
protected org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService
protected org.kuali.rice.krad.service.MailService mailService
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
protected org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService
protected AchBankService achBankService
public PdpEmailServiceImpl()
public void sendErrorEmail(PaymentFileLoad paymentFile, org.kuali.rice.krad.util.MessageMap errors)
PdpEmailServicesendErrorEmail in interface PdpEmailServicepaymentFile - parsed payment file object (might not be populated completely due to errors)errors - MessageMap containing ErrorMessage entriesorg.kuali.ole.pdp.service.PdpEmailService#sendErrorEmail(org.kuali.ole.pdp.businessobject.PaymentFileLoad,
      org.kuali.rice.kns.util.ErrorMap)public void alterMessageWhenNonProductionInstance(org.kuali.rice.core.api.mail.MailMessage message, String environmentCode)
message - environmentCode - public void sendLoadEmail(PaymentFileLoad paymentFile, List<String> warnings)
PdpEmailServicesendLoadEmail in interface PdpEmailServicepaymentFile - parsed payment file objectwarnings - List of String messagesPdpEmailService.sendLoadEmail(org.kuali.ole.pdp.businessobject.PaymentFileLoad,
      java.util.List)protected void sendThresholdEmail(boolean fileThreshold, PaymentFileLoad paymentFile, CustomerProfile customer)
fileThreshold - indicates whether the file threshold (true) was violated or the detail threshold (false)paymentFile - parsed payment file objectcustomer - payment customerpublic void sendTaxEmail(PaymentFileLoad paymentFile)
PdpEmailServicesendTaxEmail in interface PdpEmailServicepaymentFile - parsed payment file objectPdpEmailService.sendTaxEmail(org.kuali.ole.pdp.businessobject.PaymentFileLoad)public void sendLoadEmail(Batch batch)
PdpEmailServicesendLoadEmail in interface PdpEmailServicebatch - Batch created by loadPdpEmailService.sendLoadEmail(org.kuali.ole.pdp.businessobject.Batch)public void sendExceedsMaxNotesWarningEmail(List<String> creditMemos, List<String> paymentRequests, int lineTotal, int maxNoteLines)
PdpEmailServicesendExceedsMaxNotesWarningEmail in interface PdpEmailServicecreditMemos - list of credit memo documents in bundlepaymentRequests - list of payment request documents in bundlelineTotal - total number of lines for bundlemaxNoteLines - maximum number of lines allowedPdpEmailService.sendExceedsMaxNotesWarningEmail(java.util.List, java.util.List, int, int)public void sendAchSummaryEmail(Map<String,Integer> unitCounts, Map<String,org.kuali.rice.core.api.util.type.KualiDecimal> unitTotals, Date disbursementDate)
PdpEmailServicesendAchSummaryEmail in interface PdpEmailServiceunitCounts - Map containing payment counts for each unitunitTotals - Map containing total payment amount for each unitdisbursementDate - date of ACH extractionPdpEmailService.sendAchSummaryEmail(java.util.Map, java.util.Map, java.util.Date)public void sendAchAdviceEmail(PaymentGroup paymentGroup, PaymentDetail paymentDetail, CustomerProfile customer)
PdpEmailServicesendAchAdviceEmail in interface PdpEmailServicepaymentGroup - ACH payment group to send notification forpaymentDetail - Payment Detail containing payment amountscustomer - Pdp Customer profile for paymentorg.kuali.ole.pdp.service.PdpEmailService#sendAchAdviceEmail(org.kuali.ole.pdp.businessobject.PaymentGroup,
      org.kuali.ole.pdp.businessobject.CustomerProfile, org.kuali.ole.pdp.businessobject.PaymentDetail)public void sendCancelEmail(PaymentGroup paymentGroup, String note, org.kuali.rice.kim.api.identity.Person user)
PdpEmailServiceprotected void addPaymentFieldsToBody(StringBuilder body, Integer batchId, String chart, String unit, String subUnit, Date createDate, int paymentCount, org.kuali.rice.core.api.util.type.KualiDecimal paymentTotal)
StringBufferbody - StringBufferpublic void sendDisbursementVoucherImmediateExtractEmail(DisbursementVoucherDocument disbursementVoucher, org.kuali.rice.kim.api.identity.Person user)
sendDisbursementVoucherImmediateExtractEmail in interface PdpEmailServicedisbursementVoucher - the disbursement voucher which was immediately extracteduser - the current extracting userpublic boolean isPaymentEmailEnabled()
isPaymentEmailEnabled in interface PdpEmailServiceprotected String getEmailSubject(String subjectParmaterName)
subjectParmaterName - name of parameter giving the subject textprotected String getMessage(String messageKey, Object... messageParameters)
messageKey - key of message in resource filemessageParameters - parameter for messageString Message with substituted valuespublic void setCustomerProfileService(CustomerProfileService customerProfileService)
customerProfileService - The customerProfileService to set.public void setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService)
kualiConfigurationService - The kualiConfigurationService to set.public void setMailService(org.kuali.rice.krad.service.MailService mailService)
mailService - The mailService to set.public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService - The parameterService to set.public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
dataDictionaryService - The dataDictionaryService to set.public void setAchBankService(AchBankService achBankService)
achBankService - The achBankService to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.