| java.lang.Object org.kuali.module.gl.util.CollectorReportData
CollectorReportData | public class CollectorReportData (Code) | | This class aggregates all of the status information together from all of the collector-related processes. Note: this code assumes
that each batch is identified by a different collector batch name.
|
Method Summary | |
public void | addBatch(CollectorBatch batch) Adds a batch to this report data object. | public Iterator<CollectorBatch> | getAddedBatches() | public Set<String> | getAllUnparsableBatchNames() | public Set<String> | getBatchNamesWithErrorMap() Returns a set of batch names that were passed in as parameters into
CollectorReportData.getErrorMapForBatchName(String) . | public Map<Transaction, List<Message>> | getBatchOriginEntryScrubberErrors(CollectorBatch batch) | public DemergerReportData | getDemergerReportData(CollectorBatch batch) | public ErrorMap | getErrorMapForBatchName(String batchName) Retrieves an error map instance for a batch name (typically the file name of the batch file). | public LedgerEntryHolder | getLedgerEntryHolder() Gets the ledgerEntryHolder attribute. | public Integer | getNumDetailAccountValuesChanged(CollectorBatch batch) | public Integer | getNumDetailDeleted(CollectorBatch batch) | public Integer | getNumInputDetails(CollectorBatch batch) | public int | getNumNotPersistedBatches() Gets the numNotPersistedBatches attribute. | public int | getNumPersistedBatches() Gets the numPersistedBatches attribute. | public Integer | getNumSavedDetails(CollectorBatch batch) | public int | getNumberOfAddedBatches() | public OriginEntryTotals | getOriginEntryTotals(CollectorBatch batch) | public ScrubberReportData | getScrubberReportData(CollectorBatch batch) | public Map<DocumentGroupData, OriginEntryTotals> | getTotalsOnInputOriginEntriesAssociatedWithErrorGroup(CollectorBatch batch) | public void | incrementNumNonPersistedBatches() | public void | incrementNumPersistedBatches() | public boolean | isBatchAdded(CollectorBatch batch) | public boolean | isBatchValid(CollectorBatch batch) | public void | markUnparsableBatchNames(String batchName) | public void | markValidationStatus(CollectorBatch batch, boolean validStatus) | public void | setBatchDetailScrubberErrors(CollectorBatch batch, Map<CollectorDetail, List<Message>> errorsMap) Stores the errors encountered trying to scrub the InterDepartmentalBilling records in the given batch. | public void | setBatchOriginEntryScrubberErrors(CollectorBatch batch, Map<Transaction, List<Message>> errorsMap) Stores the errors encountered trying to scrub the InterDepartmentalBilling records in the given batch. | public void | setDemergerReportData(CollectorBatch batch, DemergerReportData demergerReportData) | public void | setEmailSendingStatusForParsedBatch(CollectorBatch batch, String emailStatus) | public void | setLedgerEntryHolder(LedgerEntryHolder ledgerEntryHolder) Sets the ledgerEntryHolder attribute value. | public void | setNumDetailAccountValuesChanged(CollectorBatch batch, Integer numDetailAccountValuesChanged) | public void | setNumDetailDeleted(CollectorBatch batch, Integer numDetailDeleted) | public void | setNumInputDetails(CollectorBatch batch) | public void | setNumSavedDetails(CollectorBatch batch, Integer numSavedDetails) | public void | setOriginEntryTotals(CollectorBatch batch, OriginEntryTotals totals) | public void | setScrubberReportData(CollectorBatch batch, ScrubberReportData scrubberReportData) | public void | setTotalsOnInputOriginEntriesAssociatedWithErrorGroup(CollectorBatch batch, Map<DocumentGroupData, OriginEntryTotals> totals) | protected void | throwExceptionIfBatchNotAdded(CollectorBatch batch) |
CollectorReportData | public CollectorReportData()(Code) | | |
addBatch | public void addBatch(CollectorBatch batch)(Code) | | Adds a batch to this report data object. If the batch (identified using batch.getBatchName()) has already been added, then an
exception is thrown.
Parameters: batch - collector batch from xml input |
getAllUnparsableBatchNames | public Set<String> getAllUnparsableBatchNames()(Code) | | |
getBatchOriginEntryScrubberErrors | public Map<Transaction, List<Message>> getBatchOriginEntryScrubberErrors(CollectorBatch batch)(Code) | | Returns the scrubber errors related to a batch
Parameters: batch - collector batch from input xml Map returns a map containing a list of error messages for each transaction |
getErrorMapForBatchName | public ErrorMap getErrorMapForBatchName(String batchName)(Code) | | Retrieves an error map instance for a batch name (typically the file name of the batch file). Each instance of this class
guarantees that each time this method is called with specific batch name, the same error map instance is returned, and that
each that no 2 different batch names will return the same instance
Parameters: batchName - a batch name a error map instance specific to this batch name |
getLedgerEntryHolder | public LedgerEntryHolder getLedgerEntryHolder()(Code) | | Gets the ledgerEntryHolder attribute.
Returns the ledgerEntryHolder. |
getNumNotPersistedBatches | public int getNumNotPersistedBatches()(Code) | | Gets the numNotPersistedBatches attribute.
Returns the numNotPersistedBatches. |
getNumPersistedBatches | public int getNumPersistedBatches()(Code) | | Gets the numPersistedBatches attribute.
Returns the numPersistedBatches. |
getTotalsOnInputOriginEntriesAssociatedWithErrorGroup | public Map<DocumentGroupData, OriginEntryTotals> getTotalsOnInputOriginEntriesAssociatedWithErrorGroup(CollectorBatch batch)(Code) | | Returns the totals or all origin entries in the input group that match the document group (doc #, doc type, origination code)
of at least one origin entry in the error group, which is generated by the scrubber
Parameters: batch - return a map such that the key is a document group (doc #, doc type, origination code) and the value is thetotals of the origin entry of all those |
incrementNumNonPersistedBatches | public void incrementNumNonPersistedBatches()(Code) | | |
incrementNumPersistedBatches | public void incrementNumPersistedBatches()(Code) | | |
isBatchAdded | public boolean isBatchAdded(CollectorBatch batch)(Code) | | Returns whether a batch has already been added
Parameters: batch - collector batch from xml input true if batch has already been added |
isBatchValid | public boolean isBatchValid(CollectorBatch batch)(Code) | | Returns true if batch is valid; False if invalid
Parameters: batch - collector batch from input xml true if batch is valid |
markUnparsableBatchNames | public void markUnparsableBatchNames(String batchName)(Code) | | |
markValidationStatus | public void markValidationStatus(CollectorBatch batch, boolean validStatus)(Code) | | Marks whether or not a batch is valid or not
Parameters: batch - collector batch from input xml Parameters: validStatus - valid status fro batch |
setBatchDetailScrubberErrors | public void setBatchDetailScrubberErrors(CollectorBatch batch, Map<CollectorDetail, List<Message>> errorsMap)(Code) | | Stores the errors encountered trying to scrub the InterDepartmentalBilling records in the given batch. This method must be
called after addBatch has been called with the same batch. Previously saved errors for this batch will be overwritten.
Parameters: batch - collector batch from input xml Parameters: errorsMap - contains a map of all errors encountered while trying to scrub InterDepartmentalBilling records |
setBatchOriginEntryScrubberErrors | public void setBatchOriginEntryScrubberErrors(CollectorBatch batch, Map<Transaction, List<Message>> errorsMap)(Code) | | Stores the errors encountered trying to scrub the InterDepartmentalBilling records in the given batch. This method must be
called after addBatch has been called with the same batch. Previously saved errors for this batch will be overwritten.
Parameters: batch - collector batch from input xml Parameters: errorsMap - |
setEmailSendingStatusForParsedBatch | public void setEmailSendingStatusForParsedBatch(CollectorBatch batch, String emailStatus)(Code) | | |
setLedgerEntryHolder | public void setLedgerEntryHolder(LedgerEntryHolder ledgerEntryHolder)(Code) | | Sets the ledgerEntryHolder attribute value.
Parameters: ledgerEntryHolder - The ledgerEntryHolder to set. |
setNumDetailAccountValuesChanged | public void setNumDetailAccountValuesChanged(CollectorBatch batch, Integer numDetailAccountValuesChanged)(Code) | | Sets the number of times the details in a batch have had their account numbers changed
Parameters: batch - collector batch from input xml |
setTotalsOnInputOriginEntriesAssociatedWithErrorGroup | public void setTotalsOnInputOriginEntriesAssociatedWithErrorGroup(CollectorBatch batch, Map<DocumentGroupData, OriginEntryTotals> totals)(Code) | | Stores the totals or all origin entries in the input group that match the document group (doc #, doc type, origination code)
of at least one origin entry in the error group, which is generated by the scrubber
Parameters: batch - collector batch from input xml Parameters: totals - a map such that the key is a document group (doc #, doc type, origination code) and the value is the totals ofthe origin entry of all those |
throwExceptionIfBatchNotAdded | protected void throwExceptionIfBatchNotAdded(CollectorBatch batch)(Code) | | Throws exception if batch has not been added
Parameters: batch - |
|
|