@Transactional public class PaymentFileServiceImpl extends InitiateDirectoryBase implements PaymentFileService
PaymentFileService
Constructor and Description |
---|
PaymentFileServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected Batch |
createNewBatch(PaymentFileLoad paymentFile,
String fileName)
Create a new
Batch record for the payment file. |
boolean |
createOutputFile(LoadPaymentStatus status,
String inputFileName)
Creates the PDP XML output which can be parsed to obtain load status information
|
void |
doPaymentFileValidation(PaymentFileLoad paymentFile,
org.kuali.rice.krad.util.MessageMap errorMap)
Performs hard edits on payment file
|
protected String |
getBaseFileName(String filename) |
List<String> |
getRequiredDirectoryNames()
Get the required list of directories name (full path)
|
void |
loadPayments(PaymentFileLoad paymentFile,
LoadPaymentStatus status,
String incomingFileName)
Performs soft edits of payment file data and loads records into database
|
protected PaymentFileLoad |
parsePaymentFile(BatchInputFileType paymentInputFileType,
String incomingFileName,
org.kuali.rice.krad.util.MessageMap errorMap)
Calls
BatchInputFileService to validate XML against schema and parse. |
protected PaymentFileLoad |
processPaymentFile(BatchInputFileType paymentInputFileType,
String incomingFileName,
org.kuali.rice.krad.util.MessageMap errorMap)
Attempt to parse the file, run validations, and store batch data
|
void |
processPaymentFiles(BatchInputFileType paymentInputFileType)
Process all incoming payment files
|
protected void |
removeDoneFile(String dataFileName)
Clears out the associated .done file for the processed data file
|
void |
setBatchInputFileService(BatchInputFileService batchInputFileService)
Sets the batchInputFileService attribute value.
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the businessObjectService 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 |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Sets the dateTimeService attribute value.
|
void |
setOutgoingDirectoryName(String outgoingDirectoryName)
Sets the outgoingDirectoryName attribute value.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the parameterService attribute value.
|
void |
setPaymentFileEmailService(PdpEmailService paymentFileEmailService)
Sets the paymentFileEmailService attribute value.
|
void |
setPaymentFileValidationService(PaymentFileValidationService paymentFileValidationService)
Sets the paymentFileValidationService attribute value.
|
prepareDirectories
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepareDirectories
public PaymentFileServiceImpl()
public void processPaymentFiles(BatchInputFileType paymentInputFileType)
PaymentFileService
processPaymentFiles
in interface PaymentFileService
paymentInputFileType
- BatchInputFileType
for payment filesPaymentFileService.processPaymentFiles(org.kuali.ole.sys.batch.BatchInputFileType)
protected PaymentFileLoad processPaymentFile(BatchInputFileType paymentInputFileType, String incomingFileName, org.kuali.rice.krad.util.MessageMap errorMap)
paymentInputFileType
- BatchInputFileType
for payment filesincomingFileName
- name of payment fileerrorMap
- Map
of errorsLoadPaymentStatus
containing status data for loadpublic void doPaymentFileValidation(PaymentFileLoad paymentFile, org.kuali.rice.krad.util.MessageMap errorMap)
PaymentFileService
doPaymentFileValidation
in interface PaymentFileService
paymentFile
- PaymentFileLoad
containing parsed file contentserrorMap
- Map
that will hold errors encounteredPaymentFileService.doPaymentFileValidation(org.kuali.ole.pdp.businessobject.PaymentFileLoad,
org.kuali.rice.krad.util.MessageMap)
public void loadPayments(PaymentFileLoad paymentFile, LoadPaymentStatus status, String incomingFileName)
PaymentFileService
loadPayments
in interface PaymentFileService
paymentFile
- PaymentFileLoad
containing parsed file contentsstatus
- LoadPaymentStatus
containing status information for loadincomingFileName
- string file nameorg.kuali.ole.pdp.service.PaymentFileService#loadPayments(java.lang.String)
protected PaymentFileLoad parsePaymentFile(BatchInputFileType paymentInputFileType, String incomingFileName, org.kuali.rice.krad.util.MessageMap errorMap)
BatchInputFileService
to validate XML against schema and parse.paymentInputFileType
- BatchInputFileType
for payment filesincomingFileName
- name of the payment file to parseerrorMap
- any errors encountered while parsing are adding toPaymentFile
containing the parsed valuespublic boolean createOutputFile(LoadPaymentStatus status, String inputFileName)
PaymentFileService
createOutputFile
in interface PaymentFileService
status
- LoadPaymentStatus
containing status information for loadinputFileName
- incomingFileName string file namePaymentFileService.createOutputFile(org.kuali.ole.pdp.businessobject.LoadPaymentStatus,
java.lang.String)
protected Batch createNewBatch(PaymentFileLoad paymentFile, String fileName)
Batch
record for the payment file.paymentFile
- parsed payment file objectfileName
- payment file name (without path)Batch object
protected String getBaseFileName(String filename)
protected void removeDoneFile(String dataFileName)
dataFileName
- the name of date file with done file to removepublic void setOutgoingDirectoryName(String outgoingDirectoryName)
outgoingDirectoryName
- The outgoingDirectoryName to set.public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService
- The parameterService to set.public void setCustomerProfileService(CustomerProfileService customerProfileService)
customerProfileService
- The customerProfileService to set.public void setBatchInputFileService(BatchInputFileService batchInputFileService)
batchInputFileService
- The batchInputFileService to set.public void setPaymentFileValidationService(PaymentFileValidationService paymentFileValidationService)
paymentFileValidationService
- The paymentFileValidationService to set.public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.public void setPaymentFileEmailService(PdpEmailService paymentFileEmailService)
paymentFileEmailService
- The paymentFileEmailService to set.public void setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService)
kualiConfigurationService
- The kualiConfigurationService 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–2014 The Kuali Foundation. All rights reserved.