| java.lang.Object org.kuali.module.gl.service.impl.FileEnterpriseFeederHelperServiceImpl
FileEnterpriseFeederHelperServiceImpl | public class FileEnterpriseFeederHelperServiceImpl implements FileEnterpriseFeederHelperService(Code) | | This class reads origin entries in a flat file format, reconciles them, and loads them into the origin entry table. Note: this
class is marked as transactional. Using this class from a class not annotated as
Transactional allows the implementation
of a transaction per file. That is, every time the feedOnFile method is called, a new transaction is created, and is committed or
rolled back depending on whether the upload was successful. Note: the feeding algorithm of this service will read the data file
twice to minimize memory usage.
|
feedOnFile | public void feedOnFile(File doneFile, File dataFile, File reconFile, OriginEntryGroup originEntryGroup, String feederProcessName, String reconciliationTableId, EnterpriseFeederStatusAndErrorMessagesWrapper statusAndErrors)(Code) | | This method does the reading and the loading of reconciliation. Read class description. This method DOES NOT handle the
deletion of the done file
Parameters: doneFile - a URL that must be present. The contents may be empty Parameters: dataFile - a URL to a flat file of origin entry rows. Parameters: reconFile - a URL to the reconciliation file. See the implementation of ReconciliationParserService for fileformat. Parameters: originEntryGroup - the group into which the origin entries will be loaded Parameters: feederProcessName - the name of the feeder process Parameters: reconciliationTableId - the name of the block to use for reconciliation within the reconciliation file Parameters: statusAndErrors - any status information should be stored within this object See Also: org.kuali.module.gl.service.impl.FileEnterpriseFeederHelperService.feedOnFile(java.io.Filejava.io.Filejava.io.Fileorg.kuali.module.gl.bo.OriginEntryGroup) |
getOriginEntryService | public OriginEntryService getOriginEntryService()(Code) | | Gets the originEntryService attribute.
Returns the originEntryService. |
getReconciliationParserService | public ReconciliationParserService getReconciliationParserService()(Code) | | Gets the reconciliationParserService attribute.
Returns the reconciliationParserService. |
getReconciliationService | public ReconciliationService getReconciliationService()(Code) | | Gets the reconciliationService attribute.
Returns the reconciliationService. |
reconciliationProcessSucceeded | protected boolean reconciliationProcessSucceeded(List<Message> errorMessages)(Code) | | 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 Parameters: errorMessages - a List of errorMessages true if any of those error messages were fatal |
setOriginEntryService | public void setOriginEntryService(OriginEntryService originEntryService)(Code) | | Sets the originEntryService attribute value.
Parameters: originEntryService - The originEntryService to set. |
setReconciliationParserService | public void setReconciliationParserService(ReconciliationParserService reconciliationParserService)(Code) | | Sets the reconciliationParserService attribute value.
Parameters: reconciliationParserService - The reconciliationParserService to set. |
setReconciliationService | public void setReconciliationService(ReconciliationService reconciliationService)(Code) | | Sets the reconciliationService attribute value.
Parameters: reconciliationService - The reconciliationService to set. |
|
|