|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.gl.batch.CollectorScrubberProcess
public class CollectorScrubberProcess
This class scrubs the billing details in a collector batch. Note that all services used by this class are passed in as parameters to the constructor. NOTE: IT IS IMPERATIVE that a new instance of this class is constructed and used to parse each batch. Sharing instances to scrub multiple batches may lead to unpredictable results.
Field Summary | |
---|---|
protected CollectorBatch |
batch
|
protected String |
collectorFileDirectoryName
|
protected CollectorReportData |
collectorReportData
|
protected org.kuali.rice.kns.service.DateTimeService |
dateTimeService
|
protected Set<DocumentGroupData> |
errorDocumentGroups
|
protected String |
errorFileName
|
protected String |
expiredFileName
|
protected String |
inputFileName
|
protected org.kuali.rice.kns.service.KualiConfigurationService |
kualiConfigurationService
|
protected org.kuali.rice.kns.service.PersistenceService |
persistenceService
|
protected ScrubberService |
scrubberService
|
protected String |
validFileName
|
Constructor Summary | |
---|---|
CollectorScrubberProcess(CollectorBatch batch,
org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService,
org.kuali.rice.kns.service.PersistenceService persistenceService,
ScrubberService scrubberService,
CollectorReportData collectorReportData,
org.kuali.rice.kns.service.DateTimeService dateTimeService,
String collectorFileDirectoryName)
Constructs a CollectorScrubberProcess.java. |
Method Summary | |
---|---|
protected void |
applyChangesToDetailsFromScrubberEdits(Map<OriginEntryInformation,OriginEntryInformation> unscrubbedToScrubbedEntries)
Updates all Collector details with the data from scrubbed origin entries |
protected void |
applyScrubberEditsToDetail(OriginEntryInformation originEntry,
CollectorDetail detail)
Updates the Collector detail with the data from a scrubbed entry |
protected boolean |
isOriginEntryRelatedToDetailRecord(OriginEntryInformation originEntry,
CollectorDetail detail)
Determines if an origin entry is related to the given Collector detail record |
protected void |
removeInterDepartmentalBillingAssociatedWithErrorGroup()
This method's purpose is similar to the scrubber's demerger. |
protected void |
removeInterDepartmentalBillingNotAssociatedWithInputEntries()
Removes Collector IB details not associated with entries in the Collector data |
protected void |
retrieveErrorDocumentGroups()
Based on the origin entries in the origin entry scrubber-produced error group, creates a set of all DocumentGroupData s
represented by those origin entries and initializes the errorDocumentGroups variable |
protected void |
retrieveTotalsOnInputOriginEntriesAssociatedWithErrorGroup()
Computes the totals of the input entries that were associated with the entries in the error group, which is created in the scrubber. |
CollectorScrubberStatus |
scrub()
Scrubs the entries read in by the Collector |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CollectorBatch batch
protected String inputFileName
protected String validFileName
protected String errorFileName
protected String expiredFileName
protected org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService
protected org.kuali.rice.kns.service.PersistenceService persistenceService
protected CollectorReportData collectorReportData
protected ScrubberService scrubberService
protected org.kuali.rice.kns.service.DateTimeService dateTimeService
protected Set<DocumentGroupData> errorDocumentGroups
protected String collectorFileDirectoryName
Constructor Detail |
---|
public CollectorScrubberProcess(CollectorBatch batch, org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService, org.kuali.rice.kns.service.PersistenceService persistenceService, ScrubberService scrubberService, CollectorReportData collectorReportData, org.kuali.rice.kns.service.DateTimeService dateTimeService, String collectorFileDirectoryName)
batch
- the batch to scrubinputGroup
- the origin entry group that holds all of the origin entries coming from the parsed input groups in the
given batchvalidGroup
- the origin entry group that holds all of the origin entries coming that are in the origin entry scrubber
valid grouperrorGroup
- the origin entry group that holds all of the origin entries coming that are in the origin entry scrubber
error groupexpiredGroup
- are in the origin entry scrubber valid group that are in the origin entry scrubber expired grouporiginEntryService
- the origin entry service that holds the origin entries in the batch (not necessarily the default
implementation)originEntryGroupService
- the origin entry group service that holds the 3 group parameters (not necessarily the default
implementation)kualiConfigurationService
- the config servicepersistenceService
- the persistence serviceMethod Detail |
---|
public CollectorScrubberStatus scrub()
protected void removeInterDepartmentalBillingNotAssociatedWithInputEntries()
protected void removeInterDepartmentalBillingAssociatedWithErrorGroup()
protected boolean isOriginEntryRelatedToDetailRecord(OriginEntryInformation originEntry, CollectorDetail detail)
originEntry
- the origin entry to checkdetail
- the Collector detail to check against
protected void applyScrubberEditsToDetail(OriginEntryInformation originEntry, CollectorDetail detail)
originEntry
- a scrubbed origin entrydetail
- a Collector detail to updateprotected void applyChangesToDetailsFromScrubberEdits(Map<OriginEntryInformation,OriginEntryInformation> unscrubbedToScrubbedEntries)
unscrubbedToScrubbedEntries
- a Map relating original origin entries to scrubbed origin entriesprotected void retrieveErrorDocumentGroups()
DocumentGroupData
s
represented by those origin entries and initializes the errorDocumentGroups
variable
protected void retrieveTotalsOnInputOriginEntriesAssociatedWithErrorGroup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |