@Transactional public class ExtractPaymentServiceImpl extends InitiateDirectoryBase implements ExtractPaymentService
Modifier and Type | Field and Description |
---|---|
protected org.kuali.rice.krad.service.BusinessObjectService |
businessObjectService |
protected org.kuali.rice.location.api.country.CountryService |
countryService |
protected org.kuali.rice.core.api.datetime.DateTimeService |
dateTimeService |
protected String |
directoryName |
protected org.kuali.rice.core.api.config.property.ConfigurationService |
kualiConfigurationService |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
parameterService |
protected PaymentDetailService |
paymentDetailService |
protected PdpEmailService |
paymentFileEmailService |
protected PaymentGroupHistoryDao |
paymentGroupHistoryDao |
protected PaymentGroupService |
paymentGroupService |
protected ProcessDao |
processDao |
protected static String |
SPACES |
static boolean |
testMode |
Constructor and Description |
---|
ExtractPaymentServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
createDoneFile(String filename)
Creates a '.done' file with the name of the original file.
|
protected String |
escapeString(String input) |
void |
extractAchPayments()
Extract ach payments to be sent to the bank for processing
|
void |
extractCanceledChecks()
Extract canceled checks to be used for a bank's positive pay program.
|
void |
extractChecks()
Extract checks to be cut into a file to be processed by the check printing service
|
protected org.kuali.rice.location.api.country.CountryService |
getCountryService()
Gets the countryService attribute.
|
protected String |
getOutputFile(String fileprefix,
Date runDate)
Generate the output file with prefix and date subfix
|
List<String> |
getRequiredDirectoryNames()
Get the required list of directories name (full path)
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the business object service
|
void |
setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService) |
void |
setCountryService(org.kuali.rice.location.api.country.CountryService countryService)
Sets the countryService attribute value.
|
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Sets the dateTimeService attribute value.
|
void |
setDirectoryName(String directoryName)
Sets the directoryName attribute value.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the parameterService attribute value.
|
void |
setPaymentDetailService(PaymentDetailService paymentDetailService)
Sets the paymentDetailService attribute value.
|
void |
setPaymentFileEmailService(PdpEmailService paymentFileEmailService)
Sets the paymentFileEmailService attribute value.
|
void |
setPaymentGroupHistoryDao(PaymentGroupHistoryDao paymentGroupHistoryDao)
Sets the paymentGroupHistoryDao attribute value.
|
void |
setPaymentGroupService(PaymentGroupService paymentGroupService)
Sets the paymentGroupService attribute value.
|
void |
setProcessDao(ProcessDao processDao)
Sets the processDao attribute value.
|
protected void |
writeBank(BufferedWriter os,
int indent,
Bank b) |
protected void |
writeCloseTag(BufferedWriter os,
int indent,
String tag) |
protected void |
writeCustomerProfile(BufferedWriter os,
int indent,
CustomerProfile cp) |
protected void |
writeExtractAchFile(PaymentStatus extractedStatus,
String filename,
Date processDate,
SimpleDateFormat sdf) |
protected void |
writeExtractCheckFile(PaymentStatus extractedStatus,
PaymentProcess p,
String filename,
Integer processId) |
protected void |
writeOpenTag(BufferedWriter os,
int indent,
String tag) |
protected void |
writeOpenTagAttribute(BufferedWriter os,
int indent,
String tag,
String attr,
String attrVal) |
protected void |
writeOpenTagAttribute(BufferedWriter os,
int indent,
String tag,
String attr1,
String attr1Val,
String attr2,
String attr2Val) |
protected void |
writePayee(BufferedWriter os,
int indent,
PaymentGroup pg) |
protected void |
writePayeeAch(BufferedWriter os,
int indent,
PaymentGroup pg) |
protected void |
writePayeeInformation(BufferedWriter os,
int indent,
PaymentGroup pg,
boolean includeAch) |
protected void |
writeTag(BufferedWriter os,
int indent,
String tag,
String data) |
prepareDirectories
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepareDirectories
protected String directoryName
protected org.kuali.rice.core.api.datetime.DateTimeService dateTimeService
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
protected PaymentGroupService paymentGroupService
protected PaymentDetailService paymentDetailService
protected PaymentGroupHistoryDao paymentGroupHistoryDao
protected ProcessDao processDao
protected PdpEmailService paymentFileEmailService
protected org.kuali.rice.krad.service.BusinessObjectService businessObjectService
protected org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService
protected org.kuali.rice.location.api.country.CountryService countryService
public static boolean testMode
public ExtractPaymentServiceImpl()
protected String getOutputFile(String fileprefix, Date runDate)
fileprefix
- runDate
- public void extractCanceledChecks()
ExtractPaymentService
extractCanceledChecks
in interface ExtractPaymentService
org.kuali.ole.pdp.batch.service.ExtractPaymentService#extractCancelledChecks()
public void extractAchPayments()
ExtractPaymentService
extractAchPayments
in interface ExtractPaymentService
ExtractPaymentService.extractAchPayments()
public void extractChecks()
ExtractPaymentService
extractChecks
in interface ExtractPaymentService
ExtractPaymentService.extractChecks()
protected void writeExtractCheckFile(PaymentStatus extractedStatus, PaymentProcess p, String filename, Integer processId)
protected void writeExtractAchFile(PaymentStatus extractedStatus, String filename, Date processDate, SimpleDateFormat sdf)
protected void writeTag(BufferedWriter os, int indent, String tag, String data) throws IOException
IOException
protected void writeOpenTag(BufferedWriter os, int indent, String tag) throws IOException
IOException
protected void writeOpenTagAttribute(BufferedWriter os, int indent, String tag, String attr, String attrVal) throws IOException
IOException
protected void writeOpenTagAttribute(BufferedWriter os, int indent, String tag, String attr1, String attr1Val, String attr2, String attr2Val) throws IOException
IOException
protected void writeCloseTag(BufferedWriter os, int indent, String tag) throws IOException
IOException
protected void writeBank(BufferedWriter os, int indent, Bank b) throws IOException
IOException
protected void writeCustomerProfile(BufferedWriter os, int indent, CustomerProfile cp) throws IOException
IOException
protected void writePayeeAch(BufferedWriter os, int indent, PaymentGroup pg) throws IOException
IOException
protected void writePayee(BufferedWriter os, int indent, PaymentGroup pg) throws IOException
IOException
protected void writePayeeInformation(BufferedWriter os, int indent, PaymentGroup pg, boolean includeAch) throws IOException
IOException
protected void createDoneFile(String filename)
protected String escapeString(String input)
public void setDirectoryName(String directoryName)
directoryName
- The directoryName to set.public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService
- The parameterService to set.public void setPaymentGroupService(PaymentGroupService paymentGroupService)
paymentGroupService
- The paymentGroupService to set.public void setPaymentDetailService(PaymentDetailService paymentDetailService)
paymentDetailService
- The paymentDetailService to set.public void setPaymentGroupHistoryDao(PaymentGroupHistoryDao paymentGroupHistoryDao)
paymentGroupHistoryDao
- The paymentGroupHistoryDao to set.public void setProcessDao(ProcessDao processDao)
processDao
- The processDao to set.public void setPaymentFileEmailService(PdpEmailService paymentFileEmailService)
paymentFileEmailService
- The paymentFileEmailService to set.public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService
- public void setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService)
protected org.kuali.rice.location.api.country.CountryService getCountryService()
public void setCountryService(org.kuali.rice.location.api.country.CountryService countryService)
countryService
- The countryService to set.public List<String> getRequiredDirectoryNames()
InitiateDirectory
getRequiredDirectoryNames
in interface InitiateDirectory
getRequiredDirectoryNames
in class InitiateDirectoryBase
org.kuali.ole.sys.batch.service.impl.InitiateDirectoryImpl#getRequiredDirectoryNames()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.