|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.gl.batch.service.impl.FileEnterpriseFeederHelperServiceImpl
public class FileEnterpriseFeederHelperServiceImpl
This class reads origin entries in a flat file format, reconciles them, and loads them into the origin entry table. Note: the feeding algorithm of this service will read the data file twice to minimize memory usage.
Constructor Summary | |
---|---|
FileEnterpriseFeederHelperServiceImpl()
|
Method Summary | |
---|---|
void |
feedOnFile(File doneFile,
File dataFile,
File reconFile,
PrintStream enterpriseFeedPs,
String feederProcessName,
String reconciliationTableId,
EnterpriseFeederStatusAndErrorMessagesWrapper statusAndErrors,
LedgerSummaryReport ledgerSummaryReport)
This method does the reading and the loading of reconciliation. |
OriginEntryService |
getOriginEntryService()
Gets the originEntryService attribute. |
ReconciliationParserService |
getReconciliationParserService()
Gets the reconciliationParserService attribute. |
ReconciliationService |
getReconciliationService()
Gets the reconciliationService attribute. |
protected boolean |
reconciliationProcessSucceeded(List<Message> errorMessages)
Returns whether the reconciliation process succeeded by looking at the reconciliation error messages For this implementation, the reconciliation does not succeed if at least one of the error messages in the list has a type of Message.TYPE_FATAL |
void |
setOriginEntryService(OriginEntryService originEntryService)
Sets the originEntryService attribute value. |
void |
setReconciliationParserService(ReconciliationParserService reconciliationParserService)
Sets the reconciliationParserService attribute value. |
void |
setReconciliationService(ReconciliationService reconciliationService)
Sets the reconciliationService attribute value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileEnterpriseFeederHelperServiceImpl()
Method Detail |
---|
public void feedOnFile(File doneFile, File dataFile, File reconFile, PrintStream enterpriseFeedPs, String feederProcessName, String reconciliationTableId, EnterpriseFeederStatusAndErrorMessagesWrapper statusAndErrors, LedgerSummaryReport ledgerSummaryReport)
feedOnFile
in interface FileEnterpriseFeederHelperService
doneFile
- a URL that must be present. The contents may be emptydataFile
- a URL to a flat file of origin entry rows.reconFile
- a URL to the reconciliation file. See the implementation of ReconciliationParserService
for file
format.originEntryGroup
- the group into which the origin entries will be loadedfeederProcessName
- the name of the feeder processreconciliationTableId
- the name of the block to use for reconciliation within the reconciliation filestatusAndErrors
- any status information should be stored within this objectorg.kuali.module.gl.service.impl.FileEnterpriseFeederHelperService#feedOnFile(java.io.File, java.io.File, java.io.File,
org.kuali.kfs.gl.businessobject.OriginEntryGroup)
protected boolean reconciliationProcessSucceeded(List<Message> errorMessages)
Message.TYPE_FATAL
errorMessages
- a List of errorMessages
public ReconciliationParserService getReconciliationParserService()
public void setReconciliationParserService(ReconciliationParserService reconciliationParserService)
reconciliationParserService
- The reconciliationParserService to set.public ReconciliationService getReconciliationService()
public void setReconciliationService(ReconciliationService reconciliationService)
reconciliationService
- The reconciliationService to set.public OriginEntryService getOriginEntryService()
public void setOriginEntryService(OriginEntryService originEntryService)
originEntryService
- The originEntryService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |