public class S2SBudgetCalculatorServiceImpl extends Object implements S2SBudgetCalculatorService
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_MAPPING_NAME |
static String |
KEY_TARGET_CATEGORY_CODE |
| Constructor and Description |
|---|
S2SBudgetCalculatorServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
budgetPersonExistInProposalPersons(BudgetPerson budgetPerson,
List<ProposalPerson> propPersons) |
List<BudgetCategoryMap> |
getBudgetCategoryMapList(List<String> filterTargetCategoryCodes,
List<String> filterCategoryTypes)
This method returns a list of BudgetCategoryMap based on the input.
|
protected List<BudgetCategoryMapping> |
getBudgetCategoryMappings(Map<String,String> conditionMap) |
BudgetSummaryInfo |
getBudgetInfo(ProposalDevelopmentDocument pdDoc,
List<BudgetPeriodInfo> budgetPeriodInfos)
This method does the budget related calculations for a given ProposalDevelopmentDocument and returns them in
BudgetSummaryInfo
|
List<BudgetPeriodInfo> |
getBudgetPeriods(ProposalDevelopmentDocument pdDoc)
This method gets the list of BudgetPeriodInfo for the latest BudgetDocument of the given ProposalDevelopmentDocument
|
protected CompensationInfo |
getCompensation(KeyPersonInfo keyPerson,
BudgetPeriod budgetPeriod,
String proposalNumber)
This method computes the CompensationInfo for given person,
BudgetPeriod and Proposal Numnber |
protected List<EquipmentInfo> |
getEquipment(BudgetPeriod budgetPeriod)
This method computes the Equipment Costs for a given
BudgetPeriod |
BudgetDocument |
getFinalBudgetVersion(ProposalDevelopmentDocument pdDoc)
This method returns the final version of BudgetDocument for a given ProposalDevelopmentDocument.
|
IndirectCostInfo |
getIndirectCosts(Budget budget,
BudgetPeriod budgetPeriod)
This method computes the indirect costs for a given
BudgetPeriod |
protected List<List<KeyPersonInfo>> |
getKeyPersons(BudgetPeriod budgetPeriod,
ProposalDevelopmentDocument pdDoc,
int numKeyPersons)
This method gets the
List of Key Persons for a given ProposalDevelopmentDocument |
protected List<KeyPersonInfo> |
getNKeyPersons(List<KeyPersonInfo> keyPersons,
boolean firstN,
int n)
This method limits the number of key persons to n, returns list of key persons, first n in case firstN is true, or all other
than first n, in case of firstN being false
|
protected List<OtherDirectCostInfo> |
getOtherDirectCosts(BudgetPeriod budgetPeriod,
String sponsor)
This method computes Other Dirtect Costs for the given
BudgetPeriod and Sponsor |
protected List<OtherPersonnelInfo> |
getOtherPersonnel(BudgetPeriod budgetPeriod,
ProposalDevelopmentDocument pdDoc)
This method populates the
OtherPersonnelInfo business objects for the given BudgetPeriod and
ProposalDevelopmentDocument |
protected OtherPersonnelInfo |
getOtherPersonnelDetails(BudgetPeriod budgetPeriod,
ProposalDevelopmentDocument pdDoc,
String category,
String personnelType,
String role)
This method populates the details for
OtherPersonnelInfo business object for the given
ProposalDevelopmentDocument |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService() |
BudgetDecimal |
getProposalPersonSalary(ProposalDevelopmentDocument pdDoc,
ProposalPerson proposalPerson)
This method gets the salary requested for a given proposal person.
|
boolean |
isBudgetSummaryCostShareParameterValueEnabled(Budget budget) |
boolean |
isPersonNonMITPerson(ProposalPerson proposalPerson)
This method determines whether a
ProposalPerson is a Non MIT person |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
This method is to set businessObjectService
|
void |
setKcPersonService(KcPersonService kcPersonService)
Sets the KC Person Service.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) |
void |
setRolodexService(RolodexService rolodexService) |
void |
setS2SUtilService(S2SUtilService s2SUtilService)
Sets the s2sUtilService attribute value.
|
public static final String KEY_MAPPING_NAME
public static final String KEY_TARGET_CATEGORY_CODE
protected org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
public boolean isBudgetSummaryCostShareParameterValueEnabled(Budget budget)
public BudgetSummaryInfo getBudgetInfo(ProposalDevelopmentDocument pdDoc, List<BudgetPeriodInfo> budgetPeriodInfos) throws S2SException
getBudgetInfo in interface S2SBudgetCalculatorServicepdDoc - ProposalDevelopmentDocument.S2SExceptionorg.kuali.kra.s2s.service.S2SBudgetCalculatorService#getBudgetInfo(org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument)public List<BudgetPeriodInfo> getBudgetPeriods(ProposalDevelopmentDocument pdDoc) throws S2SException
getBudgetPeriods in interface S2SBudgetCalculatorServicepdDoc - ProposalDevelopmentDocumentS2SExceptionS2SBudgetCalculatorService.getBudgetPeriods(org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument)protected List<OtherPersonnelInfo> getOtherPersonnel(BudgetPeriod budgetPeriod, ProposalDevelopmentDocument pdDoc)
OtherPersonnelInfo business objects for the given BudgetPeriod and
ProposalDevelopmentDocumentbudgetPeriod - given budget period.pdDoc - Proposal Development Document.List of OtherPersonnelInfoprotected OtherPersonnelInfo getOtherPersonnelDetails(BudgetPeriod budgetPeriod, ProposalDevelopmentDocument pdDoc, String category, String personnelType, String role)
OtherPersonnelInfo business object for the given
ProposalDevelopmentDocumentbudgetPeriod - given budget period.pdDoc - Proposal Development Document.category - budget categorypersonnelType - proposal personnel type.role - role of the proposal person.public IndirectCostInfo getIndirectCosts(Budget budget, BudgetPeriod budgetPeriod)
BudgetPeriodgetIndirectCosts in interface S2SBudgetCalculatorServicebudgetPeriod - given BudgetPeriod.protected List<OtherDirectCostInfo> getOtherDirectCosts(BudgetPeriod budgetPeriod, String sponsor)
BudgetPeriod and SponsorbudgetPeriod - given BudgetPeriod.sponsor - sponsor detail.public List<BudgetCategoryMap> getBudgetCategoryMapList(List<String> filterTargetCategoryCodes, List<String> filterCategoryTypes)
getBudgetCategoryMapList in interface S2SBudgetCalculatorServicefilterTargetCategoryCodes - Category Codes that must be filteredfilterCategoryTypes - Category types that must be filteredS2SBudgetCalculatorService.getBudgetCategoryMapList(java.util.List, java.util.List)protected List<EquipmentInfo> getEquipment(BudgetPeriod budgetPeriod)
BudgetPeriodbudgetPeriod - given BudgetPeriod.protected List<List<KeyPersonInfo>> getKeyPersons(BudgetPeriod budgetPeriod, ProposalDevelopmentDocument pdDoc, int numKeyPersons)
List of Key Persons for a given ProposalDevelopmentDocumentbudgetPeriod - given BudgetPeriod.pdDoc - Proposal Development Document.numKeyPersons - number of key persons.protected boolean budgetPersonExistInProposalPersons(BudgetPerson budgetPerson, List<ProposalPerson> propPersons)
public boolean isPersonNonMITPerson(ProposalPerson proposalPerson)
ProposalPerson is a Non MIT personisPersonNonMITPerson in interface S2SBudgetCalculatorServiceproposalPerson - ProposalPerson.S2SBudgetCalculatorService.isPersonNonMITPerson(org.kuali.kra.proposaldevelopment.bo.ProposalPerson)protected List<BudgetCategoryMapping> getBudgetCategoryMappings(Map<String,String> conditionMap)
protected CompensationInfo getCompensation(KeyPersonInfo keyPerson, BudgetPeriod budgetPeriod, String proposalNumber)
BudgetPeriod and Proposal NumnberpersonId - id of the proposal person.budgetPeriod - given BudgetPeriod.proposalNumber - propsal number.CompensationInfo corresponding to the personId,budgetPeriod and proposalNumber.protected List<KeyPersonInfo> getNKeyPersons(List<KeyPersonInfo> keyPersons, boolean firstN, int n)
keyPersons - list of KeyPersonInfofirstN - value that determines whether the returned list should contain first n persons or the rest of personsn - number of key persons that are considered as not extra personsKeyPersonInfopublic BudgetDocument getFinalBudgetVersion(ProposalDevelopmentDocument pdDoc) throws S2SException
getFinalBudgetVersion in interface S2SBudgetCalculatorServicepdDoc - Proposal development document.S2SExceptionS2SBudgetCalculatorService.getFinalBudgetVersion(org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument)public BudgetDecimal getProposalPersonSalary(ProposalDevelopmentDocument pdDoc, ProposalPerson proposalPerson) throws S2SException
getProposalPersonSalary in interface S2SBudgetCalculatorServicepdDoc - ProposalDevelopmentDocument from which salary needs to be fetchedproposalPerson - proposal person whose salary needs to be fetchedBudgetDecimal salary of proposal personS2SExceptionpublic void setS2SUtilService(S2SUtilService s2SUtilService)
generatorUtilService - The s2sUtilService to set.public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService(BusinessObjectService) - public void setKcPersonService(KcPersonService kcPersonService)
kcPersonService - the kc person servicepublic void setRolodexService(RolodexService rolodexService)
rolodexService - the rolodexService to setCopyright © 2013 The Kuali Foundation. All Rights Reserved.