public interface ProtocolPersonnelService
| Modifier and Type | Method and Description |
|---|---|
void |
addProtocolPerson(ProtocolBase protocol,
ProtocolPersonBase protocolPerson)
This method adds ProtocolPersonBase to the List of ProtocolPersons.
|
void |
addProtocolPersonAttachment(ProtocolBase protocol,
ProtocolAttachmentPersonnelBase newAttachment,
int selectedPersonIndex)
This method add ProtocolPersonAttachment to a Person of the ProtocolBase.
|
void |
addProtocolPersonUnit(List<ProtocolUnitBase> protocolPersonUnits,
ProtocolPersonBase protocolPerson,
int selectedPersonIndex)
This method adds ProtocolUnitBase to the List of selected ProtocolPersonBase.
|
void |
deleteProtocolPerson(ProtocolBase protocol)
This method deletes ProtocolPersonBase(s) - those marked as delete
|
void |
deleteProtocolPersonUnit(ProtocolBase protocol,
int selectedPersonIndex,
int lineNumber)
This method will delete ProtocolUnitBase from the List of protocol person units at specified position(selectedPersonIndex)
|
List<Integer> |
getAffiliationStudentMap(List<ProtocolPersonBase> protocolPersons)
This method returns a list of affiliated students from a list of personnel.
|
ProtocolUnitBase |
getLeadUnit(ProtocolPersonBase principalInvestigator)
This method gets the lead unit of the principal investigator.
|
List<ProtocolPersonRoleMappingBase> |
getPersonRoleMapping(String sourceRoleId)
This method is to get valid target person roles for a given source role.
|
ProtocolPersonBase |
getPrincipalInvestigator(List<ProtocolPersonBase> protocolPersons)
This method is to get principal investigator person
This method also helps to check whether at least one investigator exists in person list
Return first found investigator so that we can check for duplicate if any
|
ProtocolPersonRoleBase |
getProtocolPersonRole(String sourceRoleId)
This method returns the protocolPersonRole based on the sourceRoleId.
|
boolean |
isDuplicatePerson(List<ProtocolPersonBase> protocolPersons,
ProtocolPersonBase newProtocolPerson)
This method is to check for duplicate person.
|
boolean |
isDuplicateUnit(ProtocolPersonBase protocolPerson,
ProtocolUnitBase newProtocolUnit)
This method is to check whether new unit already exists in the list
for a person
|
boolean |
isPIExists(List<ProtocolPersonBase> protocolPersons)
This method is to check if Principal Investigator already exists.
|
boolean |
isPISameAsCoI(ProtocolPersonBase piProtocolPerson,
ProtocolPersonBase newProtocolPerson)
This method is to check if the person playing the PI role is also being added as a CO-I
|
boolean |
isPrincipalInvestigator(ProtocolPersonBase protocolPerson)
This method is to check whether a person has role of Principal Investigator
|
boolean |
isValidStudentFacultyMatch(List<ProtocolPersonBase> protocolPersons)
This method is to check whether Student Investigator and Faculty Supervisor combination is valid.
|
void |
selectProtocolUnit(List<ProtocolPersonBase> protocolPersons)
This method is to select protocol lead unit for each person.
|
void |
setLeadUnit(ProtocolUnitBase newLeadUnit,
ProtocolPersonBase principalInvestigator,
ProtocolBase protocol)
This method sets the lead unit of the principal investigator.
|
void |
setPrincipalInvestigator(ProtocolPersonBase newPrincipalInvestigator,
ProtocolBase protocol)
This method sets the principal investigator.
|
void |
switchInvestigatorCoInvestigatorRole(List<ProtocolPersonBase> protocolPersons)
This method is to see if there is any change in the protocol person role.
|
void |
syncPersonRoleAndAffiliation(ProtocolPersonBase protocolPerson)
This method is to update person affiliation type based on change in person role.
|
void |
syncPersonRoleAndUnit(ProtocolPersonBase protocolPerson)
This method is to update person unit based on change in person role.
|
void |
syncProtocolPersonRoleChanges(List<ProtocolPersonBase> protocolPersons)
This method is used to update selected protocol lead unit in the list.
|
void addProtocolPerson(ProtocolBase protocol, ProtocolPersonBase protocolPerson)
protocol - which contains list of ProtocolPersons.ProtocolPersonBase - object is added to ProtocolPersons list.void deleteProtocolPerson(ProtocolBase protocol)
protocol - which contains list of ProtocolPersonsvoid addProtocolPersonAttachment(ProtocolBase protocol, ProtocolAttachmentPersonnelBase newAttachment, int selectedPersonIndex)
protocol - - the protocolnewAttachment - - the new attachment to be addedselectedPersonIndex - - the attachment is added to the specific person in the listvoid addProtocolPersonUnit(List<ProtocolUnitBase> protocolPersonUnits, ProtocolPersonBase protocolPerson, int selectedPersonIndex)
protocolPersonUnits - - New list of protocol units for each personprotocolPerson - - Selected protocol person from the listselectedPersonIndex - - Unit is added to specific person in the listvoid deleteProtocolPersonUnit(ProtocolBase protocol, int selectedPersonIndex, int lineNumber)
protocolPersonUnits - - New list of protocol units for each personselectedPersonIndex - - Unit is removed from specific person in the listlineNumber - - deleted line numbervoid syncProtocolPersonRoleChanges(List<ProtocolPersonBase> protocolPersons)
protocolPersons - void selectProtocolUnit(List<ProtocolPersonBase> protocolPersons)
protocolPersons - boolean isPIExists(List<ProtocolPersonBase> protocolPersons)
protocolPersons - boolean isDuplicatePerson(List<ProtocolPersonBase> protocolPersons, ProtocolPersonBase newProtocolPerson)
protocolPersons - newProtocolPerson - ProtocolPersonBase getPrincipalInvestigator(List<ProtocolPersonBase> protocolPersons)
protocolPersons - boolean isPrincipalInvestigator(ProtocolPersonBase protocolPerson)
protocolPerson - void setPrincipalInvestigator(ProtocolPersonBase newPrincipalInvestigator, ProtocolBase protocol)
newPrincipalInvestigator - The new instance of the principal investigatorprotocol - The protocol that will contain the investigatorProtocolUnitBase getLeadUnit(ProtocolPersonBase principalInvestigator)
principalInvestigator - The principal investigator to searchvoid setLeadUnit(ProtocolUnitBase newLeadUnit, ProtocolPersonBase principalInvestigator, ProtocolBase protocol)
newLeadUnit - The new instance of the lead unitprincipalInvestigator - The principal investigator to setprotocol - The protocol that contains the principal investigatorvoid switchInvestigatorCoInvestigatorRole(List<ProtocolPersonBase> protocolPersons)
protocolPersons - List<ProtocolPersonRoleMappingBase> getPersonRoleMapping(String sourceRoleId)
sourceRoleId - ProtocolPersonRoleBase getProtocolPersonRole(String sourceRoleId)
sourceRoleId - boolean isDuplicateUnit(ProtocolPersonBase protocolPerson, ProtocolUnitBase newProtocolUnit)
protocolPerson - newProtocolUnit - void syncPersonRoleAndUnit(ProtocolPersonBase protocolPerson)
protocolPerson - void syncPersonRoleAndAffiliation(ProtocolPersonBase protocolPerson)
protocolPerson - boolean isValidStudentFacultyMatch(List<ProtocolPersonBase> protocolPersons)
protocolPersons - boolean isPISameAsCoI(ProtocolPersonBase piProtocolPerson, ProtocolPersonBase newProtocolPerson)
protocolPersons - newProtocolPerson - List<Integer> getAffiliationStudentMap(List<ProtocolPersonBase> protocolPersons)
protocolPersons - Copyright © 2013 The Kuali Foundation. All Rights Reserved.