Class S2SProposalPersonServiceImpl
java.lang.Object
org.kuali.coeus.s2sgen.impl.person.S2SProposalPersonServiceImpl
- All Implemented Interfaces:
S2SProposalPersonService
@Component("s2SProposalPersonService")
public class S2SProposalPersonServiceImpl
extends Object
implements S2SProposalPersonService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kuali.coeus.common.api.person.attr.CitizenshipTypegetCitizenship(org.kuali.coeus.propdev.api.person.ProposalPersonContract proposalPerson) Implementation should return one of the enums defined in PHS398CareerDevelopmentAwardSup11V11 form schema.List<org.kuali.coeus.propdev.api.person.ProposalPersonContract> getCoInvestigators(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc) Finds all the Investigators associated with the provided pdDoc.List<org.kuali.coeus.propdev.api.person.ProposalPersonContract> getKeyPersons(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc) Finds all the key Person associated with the provided pdDoc.List<org.kuali.coeus.propdev.api.person.ProposalPersonContract> getNKeyPersons(List<? extends org.kuali.coeus.propdev.api.person.ProposalPersonContract> proposalPersons, int n) This method limits the number of key persons to n, returns list of key persons.getPersonUei(org.kuali.coeus.propdev.api.person.ProposalPersonContract proposalPerson) Return the UEI of a proposal person, at this time will only return a value if the person is a rolodex contact.org.kuali.coeus.propdev.api.person.ProposalPersonContractgetPrincipalInvestigator(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc) This method is to get PrincipalInvestigator from person list
-
Constructor Details
-
S2SProposalPersonServiceImpl
public S2SProposalPersonServiceImpl()
-
-
Method Details
-
getNKeyPersons
public List<org.kuali.coeus.propdev.api.person.ProposalPersonContract> getNKeyPersons(List<? extends org.kuali.coeus.propdev.api.person.ProposalPersonContract> proposalPersons, int n) This method limits the number of key persons to n, returns list of key persons.- Specified by:
getNKeyPersonsin interfaceS2SProposalPersonService- Parameters:
proposalPersons- list ofProposalPersonContractn- number of key persons that are considered as not extra persons- Returns:
- list of
ProposalPersonContract
-
getPrincipalInvestigator
public org.kuali.coeus.propdev.api.person.ProposalPersonContract getPrincipalInvestigator(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc) This method is to get PrincipalInvestigator from person list- Specified by:
getPrincipalInvestigatorin interfaceS2SProposalPersonService- Parameters:
pdDoc- Proposal development document.- Returns:
- ProposalPerson PrincipalInvestigator for the proposal.
-
getCoInvestigators
public List<org.kuali.coeus.propdev.api.person.ProposalPersonContract> getCoInvestigators(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc) Finds all the Investigators associated with the provided pdDoc.- Specified by:
getCoInvestigatorsin interfaceS2SProposalPersonService- Returns:
- List of Co-Investigators
ProposalPersonContract.
-
getKeyPersons
public List<org.kuali.coeus.propdev.api.person.ProposalPersonContract> getKeyPersons(org.kuali.coeus.propdev.api.core.ProposalDevelopmentDocumentContract pdDoc) Finds all the key Person associated with the provided pdDoc.- Specified by:
getKeyPersonsin interfaceS2SProposalPersonService- Returns:
- List of Key Persons
ProposalPersonContract.
-
getCitizenship
public org.kuali.coeus.common.api.person.attr.CitizenshipType getCitizenship(org.kuali.coeus.propdev.api.person.ProposalPersonContract proposalPerson) Implementation should return one of the enums defined in PHS398CareerDevelopmentAwardSup11V11 form schema. For now, it returns US RESIDENT as default- Specified by:
getCitizenshipin interfaceS2SProposalPersonService
-
getPersonUei
public String getPersonUei(org.kuali.coeus.propdev.api.person.ProposalPersonContract proposalPerson) Description copied from interface:S2SProposalPersonServiceReturn the UEI of a proposal person, at this time will only return a value if the person is a rolodex contact.- Specified by:
getPersonUeiin interfaceS2SProposalPersonService- Returns:
- UEI from rolodex contact or null
-