public interface S2SUtilService
| Modifier and Type | Method and Description |
|---|---|
Calendar |
convertDateStringToCalendar(String dateStr)
|
Calendar |
convertDateToCalendar(Date date)
This method is used to get Calendar date
|
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
|
CitizenshipTypes |
getCitizenship(ProposalPerson proposalPerson)
This method is used to get the citizenship from either warehouse or from person custom element
|
String |
getCognizantFedAgency(DevelopmentProposal developmentProposal)
This method gets the Federal Agency for the given
DevelopmentProposal |
List<ProposalPerson> |
getCoInvestigators(ProposalDevelopmentDocument pdDoc)
Finds all the co-investigators associated with the provided pdDoc.
|
DepartmentalPerson |
getContactPerson(ProposalDevelopmentDocument pdDoc)
This method is used to get the details of Contact person
|
org.kuali.rice.location.api.country.Country |
getCountryFromCode(String countryCode)
Finds a Country object from the country code
|
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.
|
List<ProposalPerson> |
getKeyPersons(ProposalDevelopmentDocument pdDoc)
Finds all the key Person associated with the provided pdDoc.
|
List<ProposalPerson> |
getNKeyPersons(List<ProposalPerson> 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
|
BudgetDecimal |
getNumberOfMonths(Date dateStart,
Date dateEnd) |
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.
|
List<Answer> |
getQuestionnaireAnswers(DevelopmentProposal developmentProposal,
String namespace,
String formname)
Finds all the Questionnaire Answers associates with provided
ProposalNumber and questionnaireId.
|
List<Answer> |
getQuestionnaireAnswersForPI(ProposalDevelopmentDocument pdDoc)
This method gets the answers from a questionnaire for a proposal person.
|
org.kuali.rice.location.api.state.State |
getStateFromName(String countryAlternateCode,
String stateName)
Finds a State object from the state name
|
Map<String,String> |
getSubmissionType(ProposalDevelopmentDocument pdDoc)
This method creates and returns Map of submission details like submission
type, description and Revision code
|
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) |
Map<String,String> getSubmissionType(ProposalDevelopmentDocument pdDoc)
pdDoc - Proposal Development Document.DepartmentalPerson getDepartmentalPerson(ProposalDevelopmentDocument pdDoc)
pdDoc - Proposal Development Document.Map<String,String> getEOStateReview(ProposalDevelopmentDocument pdDoc)
pdDoc - Proposal Development Document.List<ProposalPerson> getNKeyPersons(List<ProposalPerson> keyPersons, boolean firstN, int n)
keyPersons - 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 personsProposalPersonString getFederalId(ProposalDevelopmentDocument proposalDevelopmentDocument)
proposalDevelopmentDocument - Proposal Development Document.String getGgTrackingIdFromProposal(InstitutionalProposal proposal)
proposal - String getParameterValue(String parameter)
parameter - String for which value must be fetchedCalendar convertDateStringToCalendar(String dateStr)
dateStr - string for which the Calendar value has to be found.Calendar getCurrentCalendar()
CalendarCalendar convertDateToCalendar(Date date)
date(Date) - date for which Calendar value has to be found.String getDivisionName(ProposalDevelopmentDocument pdDoc)
pdDoc - Proposal development document.ProposalPerson getPrincipalInvestigator(ProposalDevelopmentDocument pdDoc)
pdDoc - Proposal development document.org.kuali.rice.location.api.country.Country getCountryFromCode(String countryCode)
countryCode - Country nameorg.kuali.rice.location.api.state.State getStateFromName(String countryAlternateCode, String stateName)
default - country 3-character codestateName - Name of the state (two-letter state code)boolean proposalPersonEqualsBudgetPerson(ProposalPerson proposalPerson, BudgetPersonnelDetails budgetPersonnelDetails)
BudgetPersonnelDetailsproposalPerson - -
key person from proposalbudgetPersonnelDetails - person from BudgetPersonnelDetailsboolean keyPersonEqualsBudgetPerson(KeyPersonInfo keyPersonInfo, BudgetPersonnelDetails budgetPersonnelDetails)
BudgetPersonnelDetailskeyPersonInfo - -
key person to comparebudgetPersonnelDetails - person from BudgetPersonnelDetailsString getProperty(String key)
key - String convertStringArrayToString(String[] stringArray)
stringArray - String convertStringListToString(List<String> stringList)
stringList - List<Answer> getQuestionnaireAnswers(DevelopmentProposal developmentProposal, String namespace, String formname)
DevelopmentProposal - namespace - formname - Answer.List<Answer> getQuestionnaireAnswersForPI(ProposalDevelopmentDocument pdDoc)
pdDoc - proposalPerson - List<ProposalPerson> getCoInvestigators(ProposalDevelopmentDocument pdDoc)
ProposalDevelopmentDocument - ProposalPerson.List<ProposalPerson> getKeyPersons(ProposalDevelopmentDocument pdDoc)
ProposalDevelopmentDocument - ProposalPerson.DepartmentalPerson getContactPerson(ProposalDevelopmentDocument pdDoc)
pdDoc(ProposalDevelopmentDocument) - proposal development document.contactType(String) - for which the DepartmentalPerson has to be found.void deleteSystemGeneratedAttachments(ProposalDevelopmentDocument pdDoc)
ProposalDevelopmentDocument - BudgetDecimal getNumberOfMonths(Date dateStart, Date dateEnd)
String getCognizantFedAgency(DevelopmentProposal developmentProposal)
DevelopmentProposalpdDoc - Proposal Development Document.String Federal AgencyCitizenshipTypes getCitizenship(ProposalPerson proposalPerson)
proposalPerson - Copyright © 2013 The Kuali Foundation. All Rights Reserved.