This class iterates through the files in the enterprise feeder staging directory, which is injected by Spring. Note: this class
is NOT annotated as transactional. This allows the helper service, which is defined as transactional, to do a per-file
transaction.
Creates a new origin entry group to which the origin entries in the files will be added
Parameters: groupSourceCode - the origin entry group for the entries from the enterprise feed Parameters: valid - Parameters: process - Parameters: scrub -
feed
public void feed(String processName, boolean performNotifications)(Code)
Given the doneFile, this method finds the data file corresponding to the done file
Parameters: doneFile - a File for the data file, or null if the file doesn't exist or is not readable
Given the doneFile, this method finds the reconciliation file corresponding to the data file
Parameters: doneFile - a file for the reconciliation data, or null if the file doesn't exist or is not readable
Reorders the files in case there's a dependency on the order in which files are fed upon. For this implementation, the
purpose is to always order files in a way such that unit testing will be predictable.
Parameters: doneFiles -
Sets the enterpriseFeederNotificationService attribute value.
Parameters: enterpriseFeederNotificationService - The enterpriseFeederNotificationService to set.
Sets the fileEnterpriseFeederHelperService attribute value.
Parameters: fileEnterpriseFeederHelperService - The fileEnterpriseFeederHelperService to set.