|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.pdp.service.impl.PdpEmailServiceImpl
public class PdpEmailServiceImpl
PdpEmailService| Field Summary | |
|---|---|
protected org.kuali.rice.kns.service.MailService |
mailService
|
protected org.kuali.rice.kns.service.ParameterService |
parameterService
|
| Constructor Summary | |
|---|---|
PdpEmailServiceImpl()
|
|
| Method Summary | |
|---|---|
protected void |
addPaymentFieldsToBody(StringBuffer body,
Integer batchId,
String chart,
String unit,
String subUnit,
Date createDate,
int paymentCount,
org.kuali.rice.kns.util.KualiDecimal paymentTotal)
Writes out payment file field labels and values to StringBuffer |
void |
alterMessageWhenNonProductionInstance(org.kuali.rice.kns.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.kns.util.KualiDecimal> unitTotals,
Date disbursementDate)
Sends summary email for an ACH extract |
void |
sendCancelEmail(PaymentGroup paymentGroup,
String note,
org.kuali.rice.kim.bo.Person user)
Sends Payment Cancellation Email |
void |
sendErrorEmail(PaymentFileLoad paymentFile,
org.kuali.rice.kns.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 |
setCustomerProfileService(CustomerProfileService customerProfileService)
Sets the customerProfileService attribute value. |
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value. |
void |
setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
Sets the kualiConfigurationService attribute value. |
void |
setMailService(org.kuali.rice.kns.service.MailService mailService)
Sets the mailService attribute value. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.kuali.rice.kns.service.MailService mailService
protected org.kuali.rice.kns.service.ParameterService parameterService
| Constructor Detail |
|---|
public PdpEmailServiceImpl()
| Method Detail |
|---|
public void sendErrorEmail(PaymentFileLoad paymentFile,
org.kuali.rice.kns.util.MessageMap errors)
PdpEmailService
sendErrorEmail in interface PdpEmailServicepaymentFile - parsed payment file object (might not be populated completely due to errors)errors - ErrorMap containing ErrorMessage entriesorg.kuali.kfs.pdp.service.PdpEmailService#sendErrorEmail(org.kuali.kfs.pdp.businessobject.PaymentFileLoad,
org.kuali.rice.kns.util.ErrorMap)
public void alterMessageWhenNonProductionInstance(org.kuali.rice.kns.mail.MailMessage message,
String environmentCode)
message - environmentCode -
public void sendLoadEmail(PaymentFileLoad paymentFile,
List<String> warnings)
PdpEmailService
sendLoadEmail in interface PdpEmailServicepaymentFile - parsed payment file objectwarnings - List of String messagesPdpEmailService.sendLoadEmail(org.kuali.kfs.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)
PdpEmailService
sendTaxEmail in interface PdpEmailServicepaymentFile - parsed payment file objectPdpEmailService.sendTaxEmail(org.kuali.kfs.pdp.businessobject.PaymentFileLoad)public void sendLoadEmail(Batch batch)
PdpEmailService
sendLoadEmail in interface PdpEmailServicebatch - Batch created by loadPdpEmailService.sendLoadEmail(org.kuali.kfs.pdp.businessobject.Batch)
public void sendExceedsMaxNotesWarningEmail(List<String> creditMemos,
List<String> paymentRequests,
int lineTotal,
int maxNoteLines)
PdpEmailService
sendExceedsMaxNotesWarningEmail 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.kns.util.KualiDecimal> unitTotals,
Date disbursementDate)
PdpEmailService
sendAchSummaryEmail 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)
PdpEmailService
sendAchAdviceEmail in interface PdpEmailServicepaymentGroup - ACH payment group to send notification forpaymentDetail - Payment Detail containing payment amountscustomer - Pdp Customer profile for paymentorg.kuali.kfs.pdp.service.PdpEmailService#sendAchAdviceEmail(org.kuali.kfs.pdp.businessobject.PaymentGroup,
org.kuali.kfs.pdp.businessobject.CustomerProfile, org.kuali.kfs.pdp.businessobject.PaymentDetail)
public void sendCancelEmail(PaymentGroup paymentGroup,
String note,
org.kuali.rice.kim.bo.Person user)
PdpEmailService
sendCancelEmail in interface PdpEmailServicePdpEmailService.sendCancelEmail(org.kuali.kfs.pdp.businessobject.PaymentGroup, java.lang.String, org.kuali.rice.kim.bo.Person)
protected void addPaymentFieldsToBody(StringBuffer body,
Integer batchId,
String chart,
String unit,
String subUnit,
Date createDate,
int paymentCount,
org.kuali.rice.kns.util.KualiDecimal paymentTotal)
StringBuffer
body - StringBufferpublic boolean isPaymentEmailEnabled()
isPaymentEmailEnabled in interface PdpEmailServiceprotected String getEmailSubject(String subjectParmaterName)
subjectParmaterName - name of parameter giving the subject text
protected String getMessage(String messageKey,
Object... messageParameters)
messageKey - key of message in resource filemessageParameters - parameter for message
String Message with substituted valuespublic void setCustomerProfileService(CustomerProfileService customerProfileService)
customerProfileService - The customerProfileService to set.public void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
kualiConfigurationService - The kualiConfigurationService to set.public void setMailService(org.kuali.rice.kns.service.MailService mailService)
mailService - The mailService to set.public void setParameterService(org.kuali.rice.kns.service.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||