org.kuali.kfs.gl.service.impl
Class PreScrubberServiceImpl

java.lang.Object
  extended by org.kuali.kfs.gl.service.impl.PreScrubberServiceImpl
All Implemented Interfaces:
PreScrubberService

public class PreScrubberServiceImpl
extends Object
implements PreScrubberService

This class assumes that an account number may only belong to one chart code (i.e. as if the account number were the only primary key column of the account table) Based on that assumption, this code will attempt to fill in the chart code for an origin entry if it is blank and the account number is valid


Constructor Summary
PreScrubberServiceImpl()
           
 
Method Summary
 boolean deriveChartOfAccountsCodeIfSpaces()
          Returns whether chart of accounts codes that are spaces should be derived from the account number.
protected  int getExclusiveAccountNumberEndPosition()
          Returns the position of the end of the chart of accounts code on an origin entry line,
protected  int getExclusiveChartOfAccountsCodeEndPosition()
          Returns the position of the end of the chart of accounts code on an origin entry line,
protected  int getInclusiveAccountNumberStartPosition()
          Returns the position of the chart of accounts code on an origin entry line
protected  int getInclusiveChartOfAccountsCodeStartPosition()
          Returns the position of the chart of accounts code on an origin entry line
 int getMaxCacheSize()
           
 PreScrubberReportData preprocessOriginEntries(Iterator<String> inputOriginEntries, String outputFileName)
           
 void setMaxCacheSize(int maxCacheSize)
           
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
          Sets the parameterService attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreScrubberServiceImpl

public PreScrubberServiceImpl()
Method Detail

preprocessOriginEntries

public PreScrubberReportData preprocessOriginEntries(Iterator<String> inputOriginEntries,
                                                     String outputFileName)
                                              throws IOException
Specified by:
preprocessOriginEntries in interface PreScrubberService
Throws:
IOException

getInclusiveChartOfAccountsCodeStartPosition

protected int getInclusiveChartOfAccountsCodeStartPosition()
Returns the position of the chart of accounts code on an origin entry line

Returns:

getExclusiveChartOfAccountsCodeEndPosition

protected int getExclusiveChartOfAccountsCodeEndPosition()
Returns the position of the end of the chart of accounts code on an origin entry line,

Returns:

getInclusiveAccountNumberStartPosition

protected int getInclusiveAccountNumberStartPosition()
Returns the position of the chart of accounts code on an origin entry line

Returns:

getExclusiveAccountNumberEndPosition

protected int getExclusiveAccountNumberEndPosition()
Returns the position of the end of the chart of accounts code on an origin entry line,

Returns:

getMaxCacheSize

public int getMaxCacheSize()

setMaxCacheSize

public void setMaxCacheSize(int maxCacheSize)

deriveChartOfAccountsCodeIfSpaces

public boolean deriveChartOfAccountsCodeIfSpaces()
Description copied from interface: PreScrubberService
Returns whether chart of accounts codes that are spaces should be derived from the account number. This assumes that a particular account number may be associated with at most one chart of accounts code.

Specified by:
deriveChartOfAccountsCodeIfSpaces in interface PreScrubberService
Returns:

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value.

Parameters:
parameterService - The parameterService to set.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.