| java.lang.Object org.kuali.module.gl.service.impl.CollectorHelperServiceImpl
Method Summary | |
protected String | attemptToParseEmailAfterParseError(String fileName) After a parse error, tries to go through the file to see if the email address can be determined. | public boolean | checkTrailerTotals(CollectorBatch batch, CollectorReportData collectorReportData) Checks the batch total line count and amounts against the trailer. | protected boolean | checkTrailerTotals(CollectorBatch batch, CollectorReportData collectorReportData, ErrorMap errorMap) Checks the batch total line count and amounts against the trailer. | protected String | getBalanceTypeCode(CollectorDetail collectorDetail, CollectorBatch batch) Returns the balance type code for the interDepartmentalBilling record. | public String | getStagingDirectory() | public boolean | loadCollectorFile(String fileName, OriginEntryGroup originEntryGroup, CollectorReportData collectorReportData, List<CollectorScrubberStatus> collectorScrubberStatuses) Parses the given file, validates the batch, stores the entries, and sends email. | protected void | negateAmountIfNecessary(CollectorDetail collectorDetail, BalanceTyp balanceTyp, ObjectType objectType, CollectorBatch batch) Negates the amount of the internal departmental billing detail record if necessary. | public boolean | performValidation(CollectorBatch batch) Validates the contents of a parsed file. | protected boolean | performValidation(CollectorBatch batch, ErrorMap errorMap) | protected void | processInterDepartmentalBillingAmounts(CollectorBatch batch) Modifies the amounts in the ID Billing Detail rows, depending on specific business rules. | public void | setBatchInputFileService(BatchInputFileService batchInputFileService) | public void | setCollectorDetailService(CollectorDetailService collectorDetailService) | public void | setCollectorInputFileType(BatchInputFileType collectorInputFileType) | public void | setCollectorScrubberService(CollectorScrubberService collectorScrubberService) Sets the collectorScrubberService attribute value. | public void | setConfigurationService(KualiConfigurationService configurationService) | public void | setDateTimeService(DateTimeService dateTimeService) | public void | setMailService(MailService mailService) | public void | setOriginEntryGroupService(OriginEntryGroupService originEntryGroupService) | public void | setOriginEntryService(OriginEntryService originEntryService) | public void | setParameterService(ParameterService parameterService) |
attemptToParseEmailAfterParseError | protected String attemptToParseEmailAfterParseError(String fileName)(Code) | | After a parse error, tries to go through the file to see if the email address can be determined. This method will not throw
an exception.
It's not doing much right now, just returning null
Parameters: fileName - the name of the file that a parsing error occurred on the email from the file |
checkTrailerTotals | protected boolean checkTrailerTotals(CollectorBatch batch, CollectorReportData collectorReportData, ErrorMap errorMap)(Code) | | Checks the batch total line count and amounts against the trailer. Any errors will be contained in GlobalVariables.errorMap
Parameters: batch - - batch to check totals for boolean - true if validation was successful, false it not |
getBalanceTypeCode | protected String getBalanceTypeCode(CollectorDetail collectorDetail, CollectorBatch batch)(Code) | | Returns the balance type code for the interDepartmentalBilling record. This default implementation will look into the system
parameters to determine the balance type
Parameters: interDepartmentalBilling - a inter departmental billing detail record Parameters: batch - the batch to which the interDepartmentalBilling billing belongs the balance type code for the billing detail |
getStagingDirectory | public String getStagingDirectory()(Code) | | Returns the name of the directory where Collector files are saved
the name of the staging directory |
loadCollectorFile | public boolean loadCollectorFile(String fileName, OriginEntryGroup originEntryGroup, CollectorReportData collectorReportData, List<CollectorScrubberStatus> collectorScrubberStatuses)(Code) | | Parses the given file, validates the batch, stores the entries, and sends email.
Parameters: fileName - - name of file to load (including path) Parameters: group - the group into which to persist the origin entries for the collector batch/file Parameters: collectorReportData - the object used to store all of the collector status information for reporting Parameters: collectorScrubberStatuses - if the collector scrubber is able to be invoked upon this collector batch, then the statusinfo of the collector status run is added to the end of this list boolean - true if load was successful, false if errors were encountered See Also: org.kuali.module.gl.service.CollectorService.loadCollectorFile(java.lang.String) |
negateAmountIfNecessary | protected void negateAmountIfNecessary(CollectorDetail collectorDetail, BalanceTyp balanceTyp, ObjectType objectType, CollectorBatch batch)(Code) | | Negates the amount of the internal departmental billing detail record if necessary. For this default implementation, if the
balance type's offset indicator is yes and the object type has a debit indicator, then the amount is negated.
Parameters: collectorDetail - the collector detail Parameters: balanceTyp - the balance type Parameters: objectType - the object type Parameters: batch - the patch to which the interDepartmentalBilling parameter belongs |
performValidation | protected boolean performValidation(CollectorBatch batch, ErrorMap errorMap)(Code) | | Performs the following checks on the collector batch: Any errors will be contained in GlobalVariables.errorMap
Parameters: batch - - batch to validate Parameters: errorMap - the map into which to put errors encountered during validation boolean - true if validation was successful, false it not |
setCollectorScrubberService | public void setCollectorScrubberService(CollectorScrubberService collectorScrubberService)(Code) | | Sets the collectorScrubberService attribute value.
Parameters: collectorScrubberService - The collectorScrubberService to set. |
|
|