|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.pdp.service.impl.PaymentFileServiceImpl
@Transactional public class PaymentFileServiceImpl
PaymentFileService| Constructor Summary | |
|---|---|
PaymentFileServiceImpl()
|
|
| Method Summary | |
|---|---|
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.kns.util.MessageMap errorMap)
Performs hard edits on payment file |
protected String |
getBaseFileName(String filename)
|
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.kns.util.MessageMap errorMap)
Calls BatchInputFileService to validate XML against schema and parse. |
protected PaymentFileLoad |
processPaymentFile(BatchInputFileType paymentInputFileType,
String incomingFileName,
org.kuali.rice.kns.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.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value. |
void |
setCustomerProfileService(CustomerProfileService customerProfileService)
Sets the customerProfileService attribute value. |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the dateTimeService attribute value. |
void |
setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
Sets the kualiConfigurationService attribute value. |
void |
setOutgoingDirectoryName(String outgoingDirectoryName)
Sets the outgoingDirectoryName attribute value. |
void |
setParameterService(org.kuali.rice.kns.service.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PaymentFileServiceImpl()
| Method Detail |
|---|
public void processPaymentFiles(BatchInputFileType paymentInputFileType)
PaymentFileService
processPaymentFiles in interface PaymentFileServicepaymentInputFileType - BatchInputFileType for payment filesPaymentFileService.processPaymentFiles(org.kuali.kfs.sys.batch.BatchInputFileType)
protected PaymentFileLoad processPaymentFile(BatchInputFileType paymentInputFileType,
String incomingFileName,
org.kuali.rice.kns.util.MessageMap errorMap)
paymentInputFileType - BatchInputFileType for payment filesincomingFileName - name of payment fileerrorMap - Map of errors
LoadPaymentStatus containing status data for load
public void doPaymentFileValidation(PaymentFileLoad paymentFile,
org.kuali.rice.kns.util.MessageMap errorMap)
PaymentFileService
doPaymentFileValidation in interface PaymentFileServicepaymentFile - PaymentFileLoad containing parsed file contentserrorMap - Map that will hold errors encounteredorg.kuali.kfs.pdp.service.PaymentFileService#doPaymentFileValidation(org.kuali.kfs.pdp.businessobject.PaymentFileLoad,
org.kuali.rice.kns.util.ErrorMap)
public void loadPayments(PaymentFileLoad paymentFile,
LoadPaymentStatus status,
String incomingFileName)
PaymentFileService
loadPayments in interface PaymentFileServicepaymentFile - PaymentFileLoad containing parsed file contentsstatus - LoadPaymentStatus containing status information for loadincomingFileName - string file nameorg.kuali.kfs.pdp.service.PaymentFileService#loadPayments(java.lang.String)
protected PaymentFileLoad parsePaymentFile(BatchInputFileType paymentInputFileType,
String incomingFileName,
org.kuali.rice.kns.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 to
PaymentFile containing the parsed values
public boolean createOutputFile(LoadPaymentStatus status,
String inputFileName)
PaymentFileService
createOutputFile in interface PaymentFileServicestatus - LoadPaymentStatus containing status information for loadinputFileName - incomingFileName string file name
PaymentFileService.createOutputFile(org.kuali.kfs.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 objectprotected 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.kns.service.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.kns.service.BusinessObjectService businessObjectService)
businessObjectService - The businessObjectService to set.public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
dateTimeService - The dateTimeService to set.public void setPaymentFileEmailService(PdpEmailService paymentFileEmailService)
paymentFileEmailService - The paymentFileEmailService to set.public void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
kualiConfigurationService - The kualiConfigurationService to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||