org.kuali.kfs.pdp.batch.service.impl
Class ExtractPaymentServiceImpl

java.lang.Object
  extended by org.kuali.kfs.pdp.batch.service.impl.ExtractPaymentServiceImpl
All Implemented Interfaces:
ExtractPaymentService

@Transactional
public class ExtractPaymentServiceImpl
extends Object
implements ExtractPaymentService


Field Summary
protected  org.kuali.rice.kns.service.BusinessObjectService businessObjectService
           
protected  org.kuali.rice.kns.service.CountryService countryService
           
protected  org.kuali.rice.kns.service.DateTimeService dateTimeService
           
protected  String directoryName
           
protected  org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService
           
protected  org.kuali.rice.kns.service.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 Summary
ExtractPaymentServiceImpl()
           
 
Method Summary
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.kns.service.CountryService getCountryService()
          Gets the countryService attribute.
protected  String getOutputFile(String fileprefix, Date runDate)
           
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the business object service
 void setCountryService(org.kuali.rice.kns.service.CountryService countryService)
          Sets the countryService attribute value.
 void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
          Sets the dateTimeService attribute value.
 void setDirectoryName(String directoryName)
          Sets the directoryName attribute value.
 void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
           
 void setParameterService(org.kuali.rice.kns.service.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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

directoryName

protected String directoryName

dateTimeService

protected org.kuali.rice.kns.service.DateTimeService dateTimeService

parameterService

protected org.kuali.rice.kns.service.ParameterService parameterService

paymentGroupService

protected PaymentGroupService paymentGroupService

paymentDetailService

protected PaymentDetailService paymentDetailService

paymentGroupHistoryDao

protected PaymentGroupHistoryDao paymentGroupHistoryDao

processDao

protected ProcessDao processDao

paymentFileEmailService

protected PdpEmailService paymentFileEmailService

businessObjectService

protected org.kuali.rice.kns.service.BusinessObjectService businessObjectService

kualiConfigurationService

protected org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService

countryService

protected org.kuali.rice.kns.service.CountryService countryService

testMode

public static boolean testMode

SPACES

protected static String SPACES
Constructor Detail

ExtractPaymentServiceImpl

public ExtractPaymentServiceImpl()
Method Detail

getOutputFile

protected String getOutputFile(String fileprefix,
                               Date runDate)

extractCanceledChecks

public void extractCanceledChecks()
Description copied from interface: ExtractPaymentService
Extract canceled checks to be used for a bank's positive pay program.

Specified by:
extractCanceledChecks in interface ExtractPaymentService
See Also:
org.kuali.kfs.pdp.batch.service.ExtractPaymentService#extractCancelledChecks()

extractAchPayments

public void extractAchPayments()
Description copied from interface: ExtractPaymentService
Extract ach payments to be sent to the bank for processing

Specified by:
extractAchPayments in interface ExtractPaymentService
See Also:
ExtractPaymentService.extractAchPayments()

extractChecks

public void extractChecks()
Description copied from interface: ExtractPaymentService
Extract checks to be cut into a file to be processed by the check printing service

Specified by:
extractChecks in interface ExtractPaymentService
See Also:
ExtractPaymentService.extractChecks()

writeExtractCheckFile

protected void writeExtractCheckFile(PaymentStatus extractedStatus,
                                     PaymentProcess p,
                                     String filename,
                                     Integer processId)

writeExtractAchFile

protected void writeExtractAchFile(PaymentStatus extractedStatus,
                                   String filename,
                                   Date processDate,
                                   SimpleDateFormat sdf)

writeTag

protected void writeTag(BufferedWriter os,
                        int indent,
                        String tag,
                        String data)
                 throws IOException
Throws:
IOException

writeOpenTag

protected void writeOpenTag(BufferedWriter os,
                            int indent,
                            String tag)
                     throws IOException
Throws:
IOException

writeOpenTagAttribute

protected void writeOpenTagAttribute(BufferedWriter os,
                                     int indent,
                                     String tag,
                                     String attr,
                                     String attrVal)
                              throws IOException
Throws:
IOException

writeOpenTagAttribute

protected void writeOpenTagAttribute(BufferedWriter os,
                                     int indent,
                                     String tag,
                                     String attr1,
                                     String attr1Val,
                                     String attr2,
                                     String attr2Val)
                              throws IOException
Throws:
IOException

writeCloseTag

protected void writeCloseTag(BufferedWriter os,
                             int indent,
                             String tag)
                      throws IOException
Throws:
IOException

writeBank

protected void writeBank(BufferedWriter os,
                         int indent,
                         Bank b)
                  throws IOException
Throws:
IOException

writeCustomerProfile

protected void writeCustomerProfile(BufferedWriter os,
                                    int indent,
                                    CustomerProfile cp)
                             throws IOException
Throws:
IOException

writePayeeAch

protected void writePayeeAch(BufferedWriter os,
                             int indent,
                             PaymentGroup pg)
                      throws IOException
Throws:
IOException

writePayee

protected void writePayee(BufferedWriter os,
                          int indent,
                          PaymentGroup pg)
                   throws IOException
Throws:
IOException

writePayeeInformation

protected void writePayeeInformation(BufferedWriter os,
                                     int indent,
                                     PaymentGroup pg,
                                     boolean includeAch)
                              throws IOException
Throws:
IOException

escapeString

protected String escapeString(String input)

setDirectoryName

public void setDirectoryName(String directoryName)
Sets the directoryName attribute value.

Parameters:
directoryName - The directoryName to set.

setDateTimeService

public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the dateTimeService attribute value.

Parameters:
dateTimeService - The dateTimeService to set.

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value.

Parameters:
parameterService - The parameterService to set.

setPaymentGroupService

public void setPaymentGroupService(PaymentGroupService paymentGroupService)
Sets the paymentGroupService attribute value.

Parameters:
paymentGroupService - The paymentGroupService to set.

setPaymentDetailService

public void setPaymentDetailService(PaymentDetailService paymentDetailService)
Sets the paymentDetailService attribute value.

Parameters:
paymentDetailService - The paymentDetailService to set.

setPaymentGroupHistoryDao

public void setPaymentGroupHistoryDao(PaymentGroupHistoryDao paymentGroupHistoryDao)
Sets the paymentGroupHistoryDao attribute value.

Parameters:
paymentGroupHistoryDao - The paymentGroupHistoryDao to set.

setProcessDao

public void setProcessDao(ProcessDao processDao)
Sets the processDao attribute value.

Parameters:
processDao - The processDao to set.

setPaymentFileEmailService

public void setPaymentFileEmailService(PdpEmailService paymentFileEmailService)
Sets the paymentFileEmailService attribute value.

Parameters:
paymentFileEmailService - The paymentFileEmailService to set.

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the business object service

Parameters:
businessObjectService -

setKualiConfigurationService

public void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)

getCountryService

protected org.kuali.rice.kns.service.CountryService getCountryService()
Gets the countryService attribute.

Returns:
Returns the countryService.

setCountryService

public void setCountryService(org.kuali.rice.kns.service.CountryService countryService)
Sets the countryService attribute value.

Parameters:
countryService - The countryService to set.


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