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

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

public class PosterOutputSummaryServiceImpl
extends Object
implements PosterOutputSummaryService

The default implementation of the PosterOutputSummaryService


Constructor Summary
PosterOutputSummaryServiceImpl()
           
 
Method Summary
 void addAmountToAmountHolder(OriginEntryInformation originEntry, PosterOutputSummaryAmountHolder amountHolder)
          Default implementation
 void addAmountToAmountHolder(Transaction transaction, PosterOutputSummaryAmountHolder amountHolder)
          Default implementation
protected  String buildKey(String balanceTypeCode, Integer universityFiscalYear, String fiscalPeriodCode, String chartOfAccountsCode, String accountNumber)
          Builds a map key based on the given information
 AccountingCycleCachingService getAccountingCycleCachingService()
          Gets the accountingCycleCachingService attribute.
 Comparator<PosterOutputSummaryEntry> getEntryComparator()
          Returns an instance of the comparator to use when sorting poster output summary entries
protected  String getFundGroupCodeForAccount(String chartOfAccountsCode, String accountNumber)
          Returns the sub fund group for the given origin entry
protected  String getPosterOutputSummaryEntryMapKey(OriginEntryInformation originEntry)
           
protected  String getPosterOutputSummaryEntryMapKey(Transaction transaction)
           
 void setAccountingCycleCachingService(AccountingCycleCachingService accountingCycleCachingService)
          Sets the accountingCycleCachingService attribute value.
 void summarize(OriginEntryInformation originEntry, Map<String,PosterOutputSummaryEntry> entries)
          Summarizes the given origin entry to the map
 void summarize(Transaction transaction, Map<String,PosterOutputSummaryEntry> entries)
          Summarizes the given transaction to the map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PosterOutputSummaryServiceImpl

public PosterOutputSummaryServiceImpl()
Method Detail

addAmountToAmountHolder

public void addAmountToAmountHolder(OriginEntryInformation originEntry,
                                    PosterOutputSummaryAmountHolder amountHolder)
Default implementation

Specified by:
addAmountToAmountHolder in interface PosterOutputSummaryService
Parameters:
originEntry - the origin entry with an amount to add
amountHolder - the amount holder to add the amount to
See Also:
org.kuali.kfs.gl.service.PosterOutputSummaryService#addOriginEntryAmountToAmountHolder(org.kuali.kfs.gl.businessobject.OriginEntryInformation, org.kuali.kfs.gl.businessobject.PosterOutputSummaryAmountHolder)

addAmountToAmountHolder

public void addAmountToAmountHolder(Transaction transaction,
                                    PosterOutputSummaryAmountHolder amountHolder)
Default implementation

Specified by:
addAmountToAmountHolder in interface PosterOutputSummaryService
Parameters:
transaction - the transaction with an amount to add
amountHolder - the amount holder to add the amount to
See Also:
org.kuali.kfs.gl.service.PosterOutputSummaryService#addTransactionAmountToAmountHolder(org.kuali.kfs.gl.businessobject.Transaction, org.kuali.kfs.gl.businessobject.PosterOutputSummaryAmountHolder)

getEntryComparator

public Comparator<PosterOutputSummaryEntry> getEntryComparator()
Description copied from interface: PosterOutputSummaryService
Returns an instance of the comparator to use when sorting poster output summary entries

Specified by:
getEntryComparator in interface PosterOutputSummaryService
Returns:
an instance of a good comparator
See Also:
PosterOutputSummaryService.getEntryComparator()

getPosterOutputSummaryEntryMapKey

protected String getPosterOutputSummaryEntryMapKey(OriginEntryInformation originEntry)
See Also:
org.kuali.kfs.gl.service.PosterOutputSummaryService#getPosterOutputSummaryEntryMapKey(org.kuali.kfs.gl.businessobject.OriginEntryInformation)

getPosterOutputSummaryEntryMapKey

protected String getPosterOutputSummaryEntryMapKey(Transaction transaction)
See Also:
org.kuali.kfs.gl.service.PosterOutputSummaryService#getPosterOutputSummaryEntryMapKey(org.kuali.kfs.gl.businessobject.Transaction)

buildKey

protected String buildKey(String balanceTypeCode,
                          Integer universityFiscalYear,
                          String fiscalPeriodCode,
                          String chartOfAccountsCode,
                          String accountNumber)
Builds a map key based on the given information

Parameters:
balanceTypeCode - the balance type code to put in the key
universityFiscalYear - the fiscal year to put in the key
fiscalPeriodCode - the period code to put in the key
subFundGroupCode - the sub fund group code to put in the key
Returns:
a key build from the various attributes

getFundGroupCodeForAccount

protected String getFundGroupCodeForAccount(String chartOfAccountsCode,
                                            String accountNumber)
Returns the sub fund group for the given origin entry

Parameters:
originEntry - the origin entry to find the sub fund group for, from its account
Returns:
the sub fund group code related to the account used by this origin entry

summarize

public void summarize(OriginEntryInformation originEntry,
                      Map<String,PosterOutputSummaryEntry> entries)
Description copied from interface: PosterOutputSummaryService
Summarizes the given origin entry to the map

Specified by:
summarize in interface PosterOutputSummaryService
Parameters:
originEntry - the origin entry to summarize
entries - the map of entries that holds all summarizations
See Also:
org.kuali.kfs.gl.service.PosterOutputSummaryService#summarizeOriginEntry(org.kuali.kfs.gl.businessobject.OriginEntryInformation, java.util.Map)

summarize

public void summarize(Transaction transaction,
                      Map<String,PosterOutputSummaryEntry> entries)
Description copied from interface: PosterOutputSummaryService
Summarizes the given transaction to the map

Specified by:
summarize in interface PosterOutputSummaryService
Parameters:
transaction - the transaction to summarize
entries - the map of entries
See Also:
org.kuali.kfs.gl.service.PosterOutputSummaryService#summarizeTransaction(org.kuali.kfs.gl.businessobject.Transaction, java.util.Map)

getAccountingCycleCachingService

public AccountingCycleCachingService getAccountingCycleCachingService()
Gets the accountingCycleCachingService attribute.

Returns:
Returns the accountingCycleCachingService.

setAccountingCycleCachingService

public void setAccountingCycleCachingService(AccountingCycleCachingService accountingCycleCachingService)
Sets the accountingCycleCachingService attribute value.

Parameters:
accountingCycleCachingService - The accountingCycleCachingService to set.


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