org.kuali.kfs.module.ec.service.impl
Class EffortCertificationDocumentBuildServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.ec.service.impl.EffortCertificationDocumentBuildServiceImpl
All Implemented Interfaces:
EffortCertificationDocumentBuildService

@Transactional
public class EffortCertificationDocumentBuildServiceImpl
extends Object
implements EffortCertificationDocumentBuildService

This class Provide the facility used to generate documents (build) from the labor ledger balances


Constructor Summary
EffortCertificationDocumentBuildServiceImpl()
           
 
Method Summary
protected  Map<String,List<LaborLedgerBalance>> buildLedgerBalanceGroups(List<LaborLedgerBalance> ledgerBalances)
          group the given ledger balances according to the combination of the values in the specified fields
 EffortCertificationDocumentBuild generateDocumentBuild(Integer postingYear, EffortCertificationReportDefinition reportDefinition, List<LaborLedgerBalance> ledgerBalances)
          generate a document(build) for effort certification from the given collection of labor ledger balance
 List<EffortCertificationDocumentBuild> generateDocumentBuildList(Integer postingYear, EffortCertificationReportDefinition reportDefinition, List<LaborLedgerBalance> ledgerBalances)
          generate documents(build) for effort certification from the given collection of labor ledger balance
protected static EffortCertificationDocumentBuild populateDocument(EffortCertificationReportDefinition reportDefinition, LaborLedgerBalance ledgerBalance)
          populate a dument build object through the given information
 void removeExistingDocumentBuild(Map<String,String> fieldValues)
          clear up documents and detail lines (build) with the fiscal year and report number of the given field values
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setEffortCertificationDetailBuildService(EffortCertificationDetailBuildService effortCertificationDetailBuildService)
          Sets the effortCertificationDetailBuildService attribute value.
protected  void updateDetailLineList(List<EffortCertificationDetailBuild> detailLineList, EffortCertificationDetailBuild detailLine)
          update the given detail line if the given detail line is in the list; otherwise, add the given line into the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EffortCertificationDocumentBuildServiceImpl

public EffortCertificationDocumentBuildServiceImpl()
Method Detail

removeExistingDocumentBuild

public void removeExistingDocumentBuild(Map<String,String> fieldValues)
Description copied from interface: EffortCertificationDocumentBuildService
clear up documents and detail lines (build) with the fiscal year and report number of the given field values

Specified by:
removeExistingDocumentBuild in interface EffortCertificationDocumentBuildService
Parameters:
fieldValues - the map containing fiscalYear and report number
See Also:
EffortCertificationDocumentBuildService.removeExistingDocumentBuild(java.util.Map)

generateDocumentBuildList

public List<EffortCertificationDocumentBuild> generateDocumentBuildList(Integer postingYear,
                                                                        EffortCertificationReportDefinition reportDefinition,
                                                                        List<LaborLedgerBalance> ledgerBalances)
Description copied from interface: EffortCertificationDocumentBuildService
generate documents(build) for effort certification from the given collection of labor ledger balance

Specified by:
generateDocumentBuildList in interface EffortCertificationDocumentBuildService
Parameters:
postingYear - the fiscal year when the document is generated
reportDefinition - the given report definition of effort certification
ledgerBalances - the given labor ledger balances
Returns:
documents(build) for effort certification from the given collection of labor ledger balance
See Also:
org.kuali.kfs.module.ec.service.EffortCertificationDocumentBuildService#generateDocumentBuild(org.kuali.kfs.module.ec.businessobject.EffortCertificationReportDefinition, java.util.List, java.util.Map)

generateDocumentBuild

public EffortCertificationDocumentBuild generateDocumentBuild(Integer postingYear,
                                                              EffortCertificationReportDefinition reportDefinition,
                                                              List<LaborLedgerBalance> ledgerBalances)
Description copied from interface: EffortCertificationDocumentBuildService
generate a document(build) for effort certification from the given collection of labor ledger balance

Specified by:
generateDocumentBuild in interface EffortCertificationDocumentBuildService
Parameters:
postingYear - the fiscal year when the document is generated
reportDefinition - the given report definition of effort certification
ledgerBalances - the given labor ledger balances
Returns:
a document(build) for effort certification from the given collection of labor ledger balance
See Also:
org.kuali.kfs.module.ec.service.EffortCertificationDocumentBuildService#generateDocumentBuild(org.kuali.kfs.module.ec.businessobject.EffortCertificationReportDefinition, java.util.List, java.util.Map)

populateDocument

protected static EffortCertificationDocumentBuild populateDocument(EffortCertificationReportDefinition reportDefinition,
                                                                   LaborLedgerBalance ledgerBalance)
populate a dument build object through the given information

Parameters:
reportDefinition - the given report definition
ledgerBalance - the given ledger balance
Returns:
a dument build object populated with the given information

buildLedgerBalanceGroups

protected Map<String,List<LaborLedgerBalance>> buildLedgerBalanceGroups(List<LaborLedgerBalance> ledgerBalances)
group the given ledger balances according to the combination of the values in the specified fields

Parameters:
ledgerBalances - the given ledger balances
Returns:
the map holding ledger balance groups

updateDetailLineList

protected void updateDetailLineList(List<EffortCertificationDetailBuild> detailLineList,
                                    EffortCertificationDetailBuild detailLine)
update the given detail line if the given detail line is in the list; otherwise, add the given line into the list

Parameters:
detailLineList - the given list of detail lines
detailLine - the given detail line

setEffortCertificationDetailBuildService

public void setEffortCertificationDetailBuildService(EffortCertificationDetailBuildService effortCertificationDetailBuildService)
Sets the effortCertificationDetailBuildService attribute value.

Parameters:
effortCertificationDetailBuildService - The effortCertificationDetailBuildService to set.

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.

Parameters:
businessObjectService - The businessObjectService to set.


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