|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.ec.service.impl.EffortCertificationDocumentServiceImpl
@Transactional public class EffortCertificationDocumentServiceImpl
To implement the services related to the effort certification document
Field Summary | |
---|---|
static org.apache.log4j.Logger |
LOG
|
Constructor Summary | |
---|---|
EffortCertificationDocumentServiceImpl()
|
Method Summary | |
---|---|
protected void |
addAccountingLineIntoList(List<LaborLedgerExpenseTransferAccountingLine> accountingLineList,
LaborLedgerExpenseTransferAccountingLine accountingLine,
EffortCertificationDocument effortCertificationDocument,
EffortCertificationDetail detailLine)
add a new accounting line into the given accounting line list. |
protected void |
addAdHocRoutePerson(Collection<org.kuali.rice.kns.bo.AdHocRoutePerson> adHocRoutePersonList,
Set<org.kuali.rice.kim.bo.Person> priorApprovers,
org.kuali.rice.kns.bo.AdHocRoutePerson adHocRoutePerson)
|
void |
addRouteLooping(EffortCertificationDocument effortCertificationDocument)
add the adHoc route recipient into the given document when the effort on any detail line has been changed. |
protected org.kuali.rice.kns.bo.AdHocRoutePerson |
buildAdHocRouteRecipient(String personUserId,
String actionRequest)
build an adhoc route recipient from the given person user id and action request |
protected List<LaborLedgerExpenseTransferAccountingLine> |
buildSourceAccountingLines(EffortCertificationDocument effortCertificationDocument)
build the source accounting lines for a salary expense transfer document from the given effort certification document. |
protected List<LaborLedgerExpenseTransferAccountingLine> |
buildTargetAccountingLines(EffortCertificationDocument effortCertificationDocument)
build the target accounting lines for a salary expense transfer document from the given effort certification document. |
boolean |
createAndRouteEffortCertificationDocument(EffortCertificationDocumentBuild effortCertificationDocumentBuild)
create an effort certification document from the given document build record, and route it for approval |
boolean |
generateSalaryExpenseTransferDocument(EffortCertificationDocument effortCertificationDocument)
generate salary expense transfer document from the given effort certification document |
protected String |
getActionRequest(String routeLevelName,
String expectedRouteLevelName)
determine the action request according to the current route level and expected route level |
protected org.kuali.rice.kns.util.KualiDecimal |
getDifference(EffortCertificationDetail detailLine)
get the difference between the original amount and updated amount of the given detail line |
protected Set<String> |
getFiscalOfficersIfAmountChanged(EffortCertificationDocument effortCertificationDocument)
get all fiscal officers of the detail line accounts where the salary amounts are changed |
protected Set<org.kuali.rice.kim.bo.Person> |
getPriorApprovers(org.kuali.rice.kns.workflow.service.KualiWorkflowDocument workflowDocument)
|
protected boolean |
isSameAdHocRoutePerson(org.kuali.rice.kns.bo.AdHocRoutePerson person1,
org.kuali.rice.kns.bo.AdHocRoutePerson person2)
|
protected void |
populateAccountingLine(EffortCertificationDocument effortCertificationDocument,
EffortCertificationDetail detailLine,
LaborLedgerExpenseTransferAccountingLine accountingLine)
populate an accounting line from the given detail line |
boolean |
populateEffortCertificationDocument(EffortCertificationDocument effortCertificationDocument,
EffortCertificationDocumentBuild effortCertificationDocumentBuild)
populate the given effort certification document with the given effort certification document build |
void |
processApprovedEffortCertificationDocument(EffortCertificationDocument effortCertificationDocument)
process the approved effort certification document |
void |
removeEffortCertificationDetailLines(EffortCertificationDocument effortCertificationDocument)
delete the detail lines associated with the given effort certification document if they have been persisted |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value. |
void |
setContractsAndGrantsModuleService(ContractsAndGrantsModuleService contractsAndGrantsModuleService)
Sets the contractsAndGrantsModuleService attribute value. |
void |
setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
Sets the documentService 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static org.apache.log4j.Logger LOG
Constructor Detail |
---|
public EffortCertificationDocumentServiceImpl()
Method Detail |
---|
public void processApprovedEffortCertificationDocument(EffortCertificationDocument effortCertificationDocument)
EffortCertificationDocumentService
processApprovedEffortCertificationDocument
in interface EffortCertificationDocumentService
effortCertificationDocument
- the approved effort certification documentEffortCertificationDocumentService.processApprovedEffortCertificationDocument(org.kuali.kfs.module.ec.document.EffortCertificationDocument)
public boolean createAndRouteEffortCertificationDocument(EffortCertificationDocumentBuild effortCertificationDocumentBuild)
EffortCertificationDocumentService
createAndRouteEffortCertificationDocument
in interface EffortCertificationDocumentService
effortCertificationDocumentBuild
- the given effort certification document buildEffortCertificationDocumentService.createAndRouteEffortCertificationDocument(org.kuali.kfs.module.ec.businessobject.EffortCertificationDocumentBuild)
public boolean populateEffortCertificationDocument(EffortCertificationDocument effortCertificationDocument, EffortCertificationDocumentBuild effortCertificationDocumentBuild)
EffortCertificationDocumentService
populateEffortCertificationDocument
in interface EffortCertificationDocumentService
effortCertificationDocument
- the given effort certification documenteffortCertificationDocumentBuild
- the given effort certification document build
EffortCertificationDocumentService.populateEffortCertificationDocument(org.kuali.kfs.module.ec.document.EffortCertificationDocument,
org.kuali.kfs.module.ec.businessobject.EffortCertificationDocumentBuild)
public void removeEffortCertificationDetailLines(EffortCertificationDocument effortCertificationDocument)
EffortCertificationDocumentService
removeEffortCertificationDetailLines
in interface EffortCertificationDocumentService
effortCertificationDocument
- the given effort certification documentorg.kuali.kfs.module.ec.service.EffortCertificationDocumentService#resetEffortCertificationDetailLines(org.kuali.kfs.module.ec.document.EffortCertificationDocument)
public boolean generateSalaryExpenseTransferDocument(EffortCertificationDocument effortCertificationDocument)
EffortCertificationDocumentService
generateSalaryExpenseTransferDocument
in interface EffortCertificationDocumentService
effortCertificationDocument
- the given effort certification document
EffortCertificationDocumentService.generateSalaryExpenseTransferDocument(org.kuali.kfs.module.ec.document.EffortCertificationDocument)
public void addRouteLooping(EffortCertificationDocument effortCertificationDocument)
EffortCertificationDocumentService
addRouteLooping
in interface EffortCertificationDocumentService
effortCertificationDocument
- the given effort certification documentEffortCertificationDocumentService.addRouteLooping(org.kuali.kfs.module.ec.document.EffortCertificationDocument)
protected void addAdHocRoutePerson(Collection<org.kuali.rice.kns.bo.AdHocRoutePerson> adHocRoutePersonList, Set<org.kuali.rice.kim.bo.Person> priorApprovers, org.kuali.rice.kns.bo.AdHocRoutePerson adHocRoutePerson)
protected boolean isSameAdHocRoutePerson(org.kuali.rice.kns.bo.AdHocRoutePerson person1, org.kuali.rice.kns.bo.AdHocRoutePerson person2)
protected Set<org.kuali.rice.kim.bo.Person> getPriorApprovers(org.kuali.rice.kns.workflow.service.KualiWorkflowDocument workflowDocument)
protected String getActionRequest(String routeLevelName, String expectedRouteLevelName)
routeLevelName
- the current route levelexpectedRouteLevelName
- the expected route level
protected org.kuali.rice.kns.bo.AdHocRoutePerson buildAdHocRouteRecipient(String personUserId, String actionRequest)
personUserId
- the given person user idactionRequest
- the given action request
protected List<LaborLedgerExpenseTransferAccountingLine> buildSourceAccountingLines(EffortCertificationDocument effortCertificationDocument)
effortCertificationDocument
- the given effort certification document
protected List<LaborLedgerExpenseTransferAccountingLine> buildTargetAccountingLines(EffortCertificationDocument effortCertificationDocument)
effortCertificationDocument
- the given effort certification document
protected Set<String> getFiscalOfficersIfAmountChanged(EffortCertificationDocument effortCertificationDocument)
effortCertificationDocument
- the given document that contains the detail lines
protected void addAccountingLineIntoList(List<LaborLedgerExpenseTransferAccountingLine> accountingLineList, LaborLedgerExpenseTransferAccountingLine accountingLine, EffortCertificationDocument effortCertificationDocument, EffortCertificationDetail detailLine)
accountingLines
- a list of accounting linesclazz
- the specified class of the accounting lineeffortCertificationDocument
- the given effort certification document that contains the given detail linedetailLine
- the given detail line that is used to generate an accounting lineprotected void populateAccountingLine(EffortCertificationDocument effortCertificationDocument, EffortCertificationDetail detailLine, LaborLedgerExpenseTransferAccountingLine accountingLine)
effortCertificationDocument
- the given effort certification document that contains the given detail linedetailLine
- the given detail lineaccountingLine
- the accounting line needed to be populatedprotected org.kuali.rice.kns.util.KualiDecimal getDifference(EffortCertificationDetail detailLine)
detailLine
- the given detail line
public void setLaborModuleService(LaborModuleService laborModuleService)
laborModuleService
- The laborModuleService to set.public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
documentService
- The documentService to set.public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public void setContractsAndGrantsModuleService(ContractsAndGrantsModuleService contractsAndGrantsModuleService)
contractsAndGrantsModuleService
- The contractsAndGrantsModuleService 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 |