|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.module.ec.batch.service.impl.EffortCertificationExtractServiceImpl
@Transactional public class EffortCertificationExtractServiceImpl
This is an implemeation of Effort Certification Extract process, which extracts Labor Ledger records of the employees who were paid on a grant or cost shared during the selected reporting period, and generates effort certification build/temporary document. Its major tasks include:
| Constructor Summary | |
|---|---|
EffortCertificationExtractServiceImpl()
|
|
| Method Summary | |
|---|---|
protected boolean |
checkEmployeeBasedOnLedgerBalances(String emplid,
List<LaborLedgerBalance> ledgerBalances,
EffortCertificationReportDefinition reportDefinition,
ExtractProcessReportDataHolder reportDataHolder,
Map<String,List<String>> parameters)
check all ledger balances of the given employee and see if they can meet certain requiremnets. |
protected List<LaborLedgerBalance> |
cosolidateLedgerBalances(List<LaborLedgerBalance> ledgerBalances,
EffortCertificationReportDefinition reportDefinition)
consolidate the given labor ledger balances and determine whether they are qualified for effort reporting |
protected String |
existEffortCertificationDocument(Map<String,String> fieldValues)
check if the docuemnts for the given report definition have not been generated. |
void |
extract()
extract Labor Ledger records of the employees who were paid on a grant or cost shared during a reporting period. |
void |
extract(Integer fiscalYear,
String reportNumber)
extract Labor Ledger records of the employees who were paid on a grant or cost shared during a reporting period. |
EffortCertificationDocumentBuild |
extract(String emplid,
EffortCertificationReportDefinition reportDefinition)
extract Labor Ledger records of the given employee for the given report definition, and create effort certification document build. |
List<String> |
findEmployeesEligibleForEffortCertification(EffortCertificationReportDefinition reportDefinition)
find the employees who were paid based on a set of specified pay type within the given report periods. |
protected void |
generateDocumentBuild(EffortCertificationReportDefinition reportDefinition,
List<String> employees,
ExtractProcessReportDataHolder reportDataHolder,
Map<String,List<String>> parameters)
generate a document (build) as well as their detail lines for the given employees |
protected EffortCertificationDocumentBuild |
generateDocumentBuildByEmployee(Integer postingYear,
String emplid,
List<String> positionGroupCodes,
EffortCertificationReportDefinition reportDefinition,
ExtractProcessReportDataHolder reportDataHolder,
Map<String,List<String>> parameters)
|
protected List<String> |
getConsolidationKeys()
|
protected int |
getCountOfDetailLines(List<EffortCertificationDocumentBuild> documents)
|
protected List<String> |
getExpenseObjectTypeCodes(Integer fiscalYear)
|
protected List<LaborLedgerBalance> |
getQualifiedLedgerBalances(String emplid,
List<String> positionGroupCodes,
EffortCertificationReportDefinition reportDefinition,
ExtractProcessReportDataHolder reportDataHolder,
Map<String,List<String>> parameters)
extract the qualified labor ledger balance records of the given employee with the given report periods. |
protected Map<String,List<String>> |
getSystemParameters()
|
protected ExtractProcessReportDataHolder |
initializeReportData(EffortCertificationReportDefinition reportDefinition)
|
boolean |
isEmployeeEligibleForEffortCertification(String emplid,
EffortCertificationReportDefinition reportDefinition)
determine whether the given employee is eligible for effort certification within the given report periods. |
protected List<LaborLedgerBalance> |
removeUnqualifiedLedgerBalances(Collection<LaborLedgerBalance> ledgerBalances,
EffortCertificationReportDefinition reportDefinition,
ExtractProcessReportDataHolder reportDataHolder)
remove the ledger balances without valid account, and nonzero total amount |
protected void |
reportEmployeeWithoutValidBalances(List<LedgerBalanceWithMessage> ledgerBalancesWithMessage,
Message message,
String emplid)
|
protected void |
reportInvalidLedgerBalance(List<LedgerBalanceWithMessage> ledgerBalancesWithMessage,
LaborLedgerBalance ledgerBalance,
Message message)
|
protected Collection<LaborLedgerBalance> |
selectLedgerBalanceForEmployee(String emplid,
List<String> positionObjectGroupCodes,
EffortCertificationReportDefinition reportDefinition,
Map<String,List<String>> parameters)
select the labor ledger balances for the specifed employee |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value. |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the dateTimeService attribute value. |
void |
setEffortCertificationDocumentBuildService(EffortCertificationDocumentBuildService effortCertificationDocumentBuildService)
Sets the effortCertificationDocumentBuildService attribute value. |
void |
setEffortCertificationReportDefinitionService(EffortCertificationReportDefinitionService effortCertificationReportDefinitionService)
Sets the effortCertificationReportDefinitionService attribute value. |
void |
setEffortCertificationReportService(EffortCertificationReportService effortCertificationReportService)
Sets the effortCertificationReportService attribute value. |
void |
setKualiModuleService(org.kuali.rice.kns.service.KualiModuleService kualiModuleService)
Sets the kualiModuleService attribute value. |
void |
setLaborModuleService(LaborModuleService laborModuleService)
Sets the laborModuleService attribute value. |
void |
setOptionsService(OptionsService optionsService)
Sets the optionsService attribute value. |
void |
setUniversityDateService(UniversityDateService universityDateService)
Sets the universityDateService attribute value. |
protected String |
validateReportDefintion(Integer fiscalYear,
String reportNumber)
check if a report has been defined. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EffortCertificationExtractServiceImpl()
| Method Detail |
|---|
public void extract()
EffortCertificationExtractService
extract in interface EffortCertificationExtractServiceEffortCertificationExtractService.extract()
public void extract(Integer fiscalYear,
String reportNumber)
EffortCertificationExtractService
extract in interface EffortCertificationExtractServicefiscalYear - the given fiscal year with which Labor ledgers can be extracted.reportNumber - the given report number to run.EffortCertificationExtractService.extract(java.lang.Integer, java.lang.String)
public EffortCertificationDocumentBuild extract(String emplid,
EffortCertificationReportDefinition reportDefinition)
EffortCertificationExtractService
extract in interface EffortCertificationExtractServiceemplid - the given employee idreportDefinition - the given report definition
EffortCertificationExtractService.extract(java.lang.String,
org.kuali.kfs.module.ec.businessobject.EffortCertificationReportDefinition)
public boolean isEmployeeEligibleForEffortCertification(String emplid,
EffortCertificationReportDefinition reportDefinition)
EffortCertificationExtractService
isEmployeeEligibleForEffortCertification in interface EffortCertificationExtractServiceemplid - the given employee idreportDefinition - the specified report definition
org.kuali.kfs.module.ec.batch.service.EffortCertificationExtractService#isEmployeesEligibleForEffortCertification(java.lang.String,
org.kuali.kfs.module.ec.businessobject.EffortCertificationReportDefinition)public List<String> findEmployeesEligibleForEffortCertification(EffortCertificationReportDefinition reportDefinition)
EffortCertificationExtractService
findEmployeesEligibleForEffortCertification in interface EffortCertificationExtractServicereportDefinition - the specified report definition
EffortCertificationExtractService.findEmployeesEligibleForEffortCertification(org.kuali.kfs.module.ec.businessobject.EffortCertificationReportDefinition)
protected String validateReportDefintion(Integer fiscalYear,
String reportNumber)
fiscalYear - the the given fiscalYearreportNumber - the the given report number
protected String existEffortCertificationDocument(Map<String,String> fieldValues)
fieldValues - the map containing fiscalYear and report number
protected void generateDocumentBuild(EffortCertificationReportDefinition reportDefinition,
List<String> employees,
ExtractProcessReportDataHolder reportDataHolder,
Map<String,List<String>> parameters)
reportDefinition - the given report definitionemployees - the given employeesreportDataHolder - the holder of report dataparameters - the given system parameters
protected List<LaborLedgerBalance> getQualifiedLedgerBalances(String emplid,
List<String> positionGroupCodes,
EffortCertificationReportDefinition reportDefinition,
ExtractProcessReportDataHolder reportDataHolder,
Map<String,List<String>> parameters)
emplid - the given employee idpositionGroupCodes - the specified position group codesreportDefinition - the specified report definitionparameters - the system paramters setup in frontreportDataHolder - the given holder that contains any information to be written into the working report
protected List<LaborLedgerBalance> removeUnqualifiedLedgerBalances(Collection<LaborLedgerBalance> ledgerBalances,
EffortCertificationReportDefinition reportDefinition,
ExtractProcessReportDataHolder reportDataHolder)
ledgerBalances - the given ledger balancesreportDefinition - the given report definitionreportDataHolder - the given holder that contains any information to be written into the working report
protected boolean checkEmployeeBasedOnLedgerBalances(String emplid,
List<LaborLedgerBalance> ledgerBalances,
EffortCertificationReportDefinition reportDefinition,
ExtractProcessReportDataHolder reportDataHolder,
Map<String,List<String>> parameters)
emplid - the given employee idledgerBalances - the all pre-qualified ledger balances of the employeereportDefinition - the specified report definitionreportDataHolder - the given holder that contains any information to be written into the working reportparameters - the system paramters setup in front
protected Collection<LaborLedgerBalance> selectLedgerBalanceForEmployee(String emplid,
List<String> positionObjectGroupCodes,
EffortCertificationReportDefinition reportDefinition,
Map<String,List<String>> parameters)
emplid - the given empolyee idpositionObjectGroupCodes - the specified position object group codesreportDefinition - the specified report definition
protected List<LaborLedgerBalance> cosolidateLedgerBalances(List<LaborLedgerBalance> ledgerBalances,
EffortCertificationReportDefinition reportDefinition)
ledgerBalances - the given labor ledger balancesreportDefinition - the specified report definition
protected EffortCertificationDocumentBuild generateDocumentBuildByEmployee(Integer postingYear,
String emplid,
List<String> positionGroupCodes,
EffortCertificationReportDefinition reportDefinition,
ExtractProcessReportDataHolder reportDataHolder,
Map<String,List<String>> parameters)
protected void reportInvalidLedgerBalance(List<LedgerBalanceWithMessage> ledgerBalancesWithMessage,
LaborLedgerBalance ledgerBalance,
Message message)
protected void reportEmployeeWithoutValidBalances(List<LedgerBalanceWithMessage> ledgerBalancesWithMessage,
Message message,
String emplid)
protected Map<String,List<String>> getSystemParameters()
protected List<String> getExpenseObjectTypeCodes(Integer fiscalYear)
protected int getCountOfDetailLines(List<EffortCertificationDocumentBuild> documents)
protected List<String> getConsolidationKeys()
protected ExtractProcessReportDataHolder initializeReportData(EffortCertificationReportDefinition reportDefinition)
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService - The businessObjectService to set.public void setOptionsService(OptionsService optionsService)
optionsService - The optionsService to set.public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
dateTimeService - The dateTimeService to set.public void setLaborModuleService(LaborModuleService laborModuleService)
laborModuleService - The laborModuleService to set.public void setEffortCertificationDocumentBuildService(EffortCertificationDocumentBuildService effortCertificationDocumentBuildService)
effortCertificationDocumentBuildService - The effortCertificationDocumentBuildService to set.public void setEffortCertificationReportService(EffortCertificationReportService effortCertificationReportService)
effortCertificationReportService - The effortCertificationReportService to set.public void setUniversityDateService(UniversityDateService universityDateService)
universityDateService - The universityDateService to set.public void setEffortCertificationReportDefinitionService(EffortCertificationReportDefinitionService effortCertificationReportDefinitionService)
effortCertificationReportDefinitionService - The effortCertificationReportDefinitionService to set.public void setKualiModuleService(org.kuali.rice.kns.service.KualiModuleService kualiModuleService)
kualiModuleService - The kualiModuleService to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||