public class S2SUtilServiceImpl extends Object implements S2SUtilService
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPOSAL_YNQ_QUESTION_129 |
static String |
PROPOSAL_YNQ_QUESTION_130 |
static String |
PROPOSAL_YNQ_QUESTION_131 |
| Constructor and Description |
|---|
S2SUtilServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
convertDateStringToCalendar(String dateStr)
|
Calendar |
convertDateToCalendar(Date date)
This method is used to get Calendar date for the corresponding date object.
|
String |
convertStringArrayToString(String[] stringArray)
This method converts String objects in the String array into a String
separated by commas and returns it.
|
String |
convertStringListToString(List<String> stringList)
Converts String objects in a list into a String separated by commas
|
void |
deleteSystemGeneratedAttachments(ProposalDevelopmentDocument pdDoc)
This method is used to delete all auto generated pdfs as part of s2s forms creation
|
protected String |
fromatFederalId(String federalId)
This method is to format sponsor award number assume sponsor award number format is like this : 5-P01-ES05622-09, it should
be formatted to ES05622
|
protected Answer |
getAnswer(QuestionnaireQuestion questionnaireQuestion,
AnswerHeader answerHeader) |
CitizenshipTypes |
getCitizenship(ProposalPerson proposalPerson)
Implementation should return one of the enums defined in PHS398CareerDevelopmentAwardSup11V11 form schema.
|
String |
getCognizantFedAgency(DevelopmentProposal developmentProposal)
This method gets the Federal Agency for the given
ProposalDevelopmentDocument |
List<ProposalPerson> |
getCoInvestigators(ProposalDevelopmentDocument pdDoc)
Finds all the Investigators associated with the provided pdDoc.
|
DepartmentalPerson |
getContactPerson(ProposalDevelopmentDocument pdDoc)
This method is used to get the details of Contact person
|
protected String |
getContactType()
This method returns the type of contact person for a proposal
|
org.kuali.rice.location.api.country.Country |
getCountryFromCode(String countryCode)
This method is to get a Country object from the country code
|
protected static org.kuali.rice.location.api.country.CountryService |
getCountryService() |
Calendar |
getCurrentCalendar()
This method is used to get current Calendar
|
DepartmentalPerson |
getDepartmentalPerson(ProposalDevelopmentDocument pdDoc)
This method populates and returns the Departmental Person object for a given proposal document
|
String |
getDivisionName(ProposalDevelopmentDocument pdDoc)
This method is to get division name using the OwnedByUnit and traversing through the parent units till the top level
|
Map<String,String> |
getEOStateReview(ProposalDevelopmentDocument pdDoc)
This method returns a map containing the answers related to EOState REview for a given proposal
|
String |
getFederalId(ProposalDevelopmentDocument proposalDevelopmentDocument)
This method returns the Federal ID for a given proposal
|
String |
getGgTrackingIdFromProposal(InstitutionalProposal proposal)
Get the tracking id from the newest development proposal linked to the
institutional proposal.
|
protected Questionnaire |
getHighestSequenceNumberQuestionnair(Integer questionnaireId) |
KcPersonService |
getKcPersonService()
Gets the kcPersonService attribute.
|
List<ProposalPerson> |
getKeyPersons(ProposalDevelopmentDocument pdDoc)
Finds all the key Person associated with the provided pdDoc.
|
org.kuali.rice.core.api.config.property.ConfigurationService |
getKualiConfigurationService()
Gets the kualiConfigurationService attribute.
|
NarrativeService |
getNarrativeService()
Gets the narrativeService attribute.
|
protected DevelopmentProposal |
getNewestDevPropFromInstProp(InstitutionalProposal instProp) |
List<ProposalPerson> |
getNKeyPersons(List<ProposalPerson> proposalPersons,
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
|
BudgetDecimal |
getNumberOfMonths(Date dateStart,
Date dateEnd)
This method computes the number of months between any 2 given
Date objects |
String |
getParameterValue(String parameter)
This method fetches system constant parameters
|
ProposalPerson |
getPrincipalInvestigator(ProposalDevelopmentDocument pdDoc)
This method is to get PrincipalInvestigator from person list
|
String |
getProperty(String key)
This method is used to get the property from configuration file.
|
ProposalDevelopmentS2sQuestionnaireService |
getProposalDevelopmentS2sQuestionnaireService()
Gets the proposalDevelopmentS2sQuestionnaireService attribute.
|
List<Answer> |
getQuestionnaireAnswers(DevelopmentProposal developmentProposal,
String namespace,
String formname)
Finds all the Questionnaire Answers associates with provided
ProposalNumber and questionnaireId.
|
List<Answer> |
getQuestionnaireAnswers(ProposalDevelopmentDocument pdDoc,
Integer questionnaireId)
Finds all the Questionnaire Answers associates with provided ProposalNumber.
|
List<Answer> |
getQuestionnaireAnswersForPI(ProposalDevelopmentDocument pdDoc)
This method gets the answers from a questionnaire for a proposal person.
|
SponsorService |
getSponsorService()
Gets the sponsorService attribute.
|
org.kuali.rice.location.api.state.State |
getStateFromName(String countryAlternateCode,
String stateName)
This method is to get a State object from the state name
|
protected static org.kuali.rice.location.api.state.StateService |
getStateService() |
Map<String,String> |
getSubmissionType(ProposalDevelopmentDocument pdDoc)
This method creates and returns Map of submission details like submission type, description and Revision code
|
UnitService |
getUnitService()
Gets the unitService attribute.
|
protected boolean |
isProposalTypeNew(String proposalTypeCode)
Is the Proposal Type set to New?
|
protected boolean |
isProposalTypeRenewalRevisionContinuation(String proposalTypeCode) |
protected boolean |
isProposalTypeResubmission(String proposalTypeCode)
Is the Proposal Type set to Resubmission?
|
protected boolean |
isSubmissionTypeChangeCorrected(String submissionTypeCode) |
boolean |
keyPersonEqualsBudgetPerson(KeyPersonInfo keyPersonInfo,
BudgetPersonnelDetails budgetPersonnelDetails)
This method compares a key person with budget person.
|
boolean |
proposalPersonEqualsBudgetPerson(ProposalPerson proposalPerson,
BudgetPersonnelDetails budgetPersonnelDetails)
This method compares a proposal person with budget person.
|
String |
removeTimezoneFactor(String applicationXmlText) |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
This method is to set businessObjectService
|
void |
setCitizenshipTypeService(CitizenshipTypeService citizenshipTypeService) |
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Sets the dateTimeService attribute value.
|
void |
setKcPersonService(KcPersonService kcPersonService)
Sets the kcPersonService attribute value.
|
void |
setKualiConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService)
Sets the kualiConfigurationService attribute value.
|
void |
setNarrativeService(NarrativeService narrativeService)
Sets the narrativeService attribute value.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the ParameterService.
|
void |
setProposalDevelopmentS2sQuestionnaireService(ProposalDevelopmentS2sQuestionnaireService proposalDevelopmentS2sQuestionnaireService)
Sets the proposalDevelopmentS2sQuestionnaireService attribute value.
|
void |
setProposalDevelopmentService(ProposalDevelopmentService proposalDevelopmentService) |
void |
setSponsorService(SponsorService sponsorService)
Sets the sponsorService attribute value.
|
void |
setUnitService(UnitService unitService)
Sets the unitService attribute value.
|
public static final String PROPOSAL_YNQ_QUESTION_129
public static final String PROPOSAL_YNQ_QUESTION_130
public static final String PROPOSAL_YNQ_QUESTION_131
public Map<String,String> getSubmissionType(ProposalDevelopmentDocument pdDoc)
getSubmissionType in interface S2SUtilServicepdDoc - Proposal Development Document.S2SUtilService.getSubmissionType(org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument)public DepartmentalPerson getDepartmentalPerson(ProposalDevelopmentDocument pdDoc)
getDepartmentalPerson in interface S2SUtilServicepdDoc - Proposal Development Document.S2SUtilService.getDepartmentalPerson(org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument)public List<ProposalPerson> getNKeyPersons(List<ProposalPerson> proposalPersons, boolean firstN, int n)
getNKeyPersons in interface S2SUtilServiceproposalPersons - list of ProposalPersonfirstN - 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 personsProposalPersonS2SUtilService.getNKeyPersons(java.util.List, boolean, int)public Map<String,String> getEOStateReview(ProposalDevelopmentDocument pdDoc)
getEOStateReview in interface S2SUtilServicepdDoc - Proposal Development Document.S2SUtilService.getEOStateReview(org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument)public String getFederalId(ProposalDevelopmentDocument proposalDevelopmentDocument)
getFederalId in interface S2SUtilServiceproposalDevelopmentDocument - Proposal Development Document.S2SUtilService.getFederalId(org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument)public String getGgTrackingIdFromProposal(InstitutionalProposal proposal)
S2SUtilServicegetGgTrackingIdFromProposal in interface S2SUtilServiceS2SUtilService.getGgTrackingIdFromProposal(org.kuali.kra.institutionalproposal.home.InstitutionalProposal)protected DevelopmentProposal getNewestDevPropFromInstProp(InstitutionalProposal instProp)
protected String fromatFederalId(String federalId)
federalId - protected boolean isSubmissionTypeChangeCorrected(String submissionTypeCode)
public String getParameterValue(String parameter)
getParameterValue in interface S2SUtilServiceparameter - String for which value must be fetchedS2SUtilService.getParameterValue(java.lang.String)protected boolean isProposalTypeRenewalRevisionContinuation(String proposalTypeCode)
protected boolean isProposalTypeResubmission(String proposalTypeCode)
proposalTypeCode - proposal type codeprotected boolean isProposalTypeNew(String proposalTypeCode)
proposalTypeCode - proposal type codepublic String getProperty(String key)
S2SUtilServicegetProperty in interface S2SUtilServiceS2SUtilService.getProperty(java.lang.String)public Calendar convertDateStringToCalendar(String dateStr)
convertDateStringToCalendar in interface S2SUtilServicedateStr - string in "MM/dd/yyyy" format for which the Calendar value has to be returned.S2SUtilService.convertDateStringToCalendar(java.lang.String)public Calendar getCurrentCalendar()
getCurrentCalendar in interface S2SUtilServiceCalendarpublic Calendar convertDateToCalendar(Date date)
convertDateToCalendar in interface S2SUtilServicedate(Date) - date for which Calendar value has to be found.S2SUtilService.convertDateToCalendar(java.sql.Date)public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService(BusinessObjectService) - public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService - The dateTimeService to set.public org.kuali.rice.core.api.config.property.ConfigurationService getKualiConfigurationService()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService - the parameter service.public void setKualiConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService)
kualiConfigurationService - The kualiConfigurationService to set.public String getDivisionName(ProposalDevelopmentDocument pdDoc)
getDivisionName in interface S2SUtilServicepdDoc - Proposal development document.S2SUtilService.getDivisionName(org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument)public ProposalPerson getPrincipalInvestigator(ProposalDevelopmentDocument pdDoc)
getPrincipalInvestigator in interface S2SUtilServicepdDoc - Proposal development document.S2SUtilService.getPrincipalInvestigator(org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument)public List<ProposalPerson> getCoInvestigators(ProposalDevelopmentDocument pdDoc)
getCoInvestigators in interface S2SUtilServiceProposalDevelopmentDocument - public List<ProposalPerson> getKeyPersons(ProposalDevelopmentDocument pdDoc)
getKeyPersons in interface S2SUtilServiceProposalDevelopmentDocument - public org.kuali.rice.location.api.country.Country getCountryFromCode(String countryCode)
getCountryFromCode in interface S2SUtilServicecountryCode - country code for the country.S2SUtilService.getCountryFromCode(java.lang.String)protected static org.kuali.rice.location.api.country.CountryService getCountryService()
public org.kuali.rice.location.api.state.State getStateFromName(String countryAlternateCode, String stateName)
getStateFromName in interface S2SUtilServicestateName - Name of the stateorg.kuali.kra.s2s.service.S2SUtilService#getStateFromName(java.lang.String)protected static org.kuali.rice.location.api.state.StateService getStateService()
public boolean proposalPersonEqualsBudgetPerson(ProposalPerson proposalPerson, BudgetPersonnelDetails budgetPersonnelDetails)
BudgetPersonnelDetails. It returns true only if IDs are not
null and also matches eachother.proposalPersonEqualsBudgetPerson in interface S2SUtilServiceproposalPerson - - key person from proposalbudgetPersonnelDetails - person from BudgetPersonnelDetailsS2SUtilService.proposalPersonEqualsBudgetPerson(org.kuali.kra.proposaldevelopment.bo.ProposalPerson,
org.kuali.kra.budget.personnel.BudgetPersonnelDetails)public boolean keyPersonEqualsBudgetPerson(KeyPersonInfo keyPersonInfo, BudgetPersonnelDetails budgetPersonnelDetails)
BudgetPersonnelDetailskeyPersonEqualsBudgetPerson in interface S2SUtilServicekeyPersonInfo - - key person to comparebudgetPersonnelDetails - person from BudgetPersonnelDetailsS2SUtilService.keyPersonEqualsBudgetPerson(org.kuali.kra.s2s.generator.bo.KeyPersonInfo,
org.kuali.kra.budget.personnel.BudgetPersonnelDetails)public void setProposalDevelopmentService(ProposalDevelopmentService proposalDevelopmentService)
public String convertStringArrayToString(String[] stringArray)
S2SUtilServiceconvertStringArrayToString in interface S2SUtilServiceS2SUtilService.convertStringArrayToString(String[])public String convertStringListToString(List<String> stringList)
S2SUtilServiceconvertStringListToString in interface S2SUtilServicepublic List<Answer> getQuestionnaireAnswers(ProposalDevelopmentDocument pdDoc, Integer questionnaireId)
pdDoc - Answer.public List<Answer> getQuestionnaireAnswersForPI(ProposalDevelopmentDocument pdDoc)
S2SUtilServicegetQuestionnaireAnswersForPI in interface S2SUtilServiceorg.kuali.kra.s2s.service.S2SUtilService#getQuestionnaireAnswersForPerson(org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument,
org.kuali.kra.proposaldevelopment.bo.ProposalPerson)public List<Answer> getQuestionnaireAnswers(DevelopmentProposal developmentProposal, String namespace, String formname)
S2SUtilServicegetQuestionnaireAnswers in interface S2SUtilServiceAnswer.protected Answer getAnswer(QuestionnaireQuestion questionnaireQuestion, AnswerHeader answerHeader)
protected Questionnaire getHighestSequenceNumberQuestionnair(Integer questionnaireId)
public DepartmentalPerson getContactPerson(ProposalDevelopmentDocument pdDoc)
getContactPerson in interface S2SUtilServicepdDoc(ProposalDevelopmentDocument) - proposal development document.contactType(String) - for which the DepartmentalPerson has to be found.public void deleteSystemGeneratedAttachments(ProposalDevelopmentDocument pdDoc)
S2SUtilServicedeleteSystemGeneratedAttachments in interface S2SUtilServicepublic KcPersonService getKcPersonService()
public void setKcPersonService(KcPersonService kcPersonService)
kcPersonService - The kcPersonService to set.protected String getContactType()
public BudgetDecimal getNumberOfMonths(Date dateStart, Date dateEnd)
Date objectsgetNumberOfMonths in interface S2SUtilServicedateStart - starting date.dateEnd - end date.public String getCognizantFedAgency(DevelopmentProposal developmentProposal)
ProposalDevelopmentDocumentgetCognizantFedAgency in interface S2SUtilServicedevelopmentProposal - Proposal Development Document.String Federal Agencypublic SponsorService getSponsorService()
public void setSponsorService(SponsorService sponsorService)
sponsorService - The sponsorService to set.public NarrativeService getNarrativeService()
public void setNarrativeService(NarrativeService narrativeService)
narrativeService - The narrativeService to set.public void setCitizenshipTypeService(CitizenshipTypeService citizenshipTypeService)
public CitizenshipTypes getCitizenship(ProposalPerson proposalPerson)
getCitizenship in interface S2SUtilServiceS2SUtilService.getCitizenship(org.kuali.kra.proposaldevelopment.bo.ProposalPerson)public ProposalDevelopmentS2sQuestionnaireService getProposalDevelopmentS2sQuestionnaireService()
public void setProposalDevelopmentS2sQuestionnaireService(ProposalDevelopmentS2sQuestionnaireService proposalDevelopmentS2sQuestionnaireService)
proposalDevelopmentS2sQuestionnaireService - The proposalDevelopmentS2sQuestionnaireService to set.public UnitService getUnitService()
public void setUnitService(UnitService unitService)
unitService - The unitService to set.public String removeTimezoneFactor(String applicationXmlText)
removeTimezoneFactor in interface S2SUtilServiceCopyright © 2013 The Kuali Foundation. All Rights Reserved.