コード例 #1
0
ファイル: SubAwardContact.java プロジェクト: neethupolus/kc
 /**
  * . This is the Getter Method for rolodex
  *
  * @return Returns the rolodex.
  */
 public Rolodex getRolodex() {
   if (rolodex == null
       || !ObjectUtils.equals(rolodex.getRolodexId(), rolodexId) && rolodexId != null) {
     refreshRolodex();
   }
   return rolodex;
 }
コード例 #2
0
ファイル: ScheduleXmlStream.java プロジェクト: jheckel123/kc
  private void setPerson(
      ProtocolReviewer protocolReviewer,
      edu.mit.irb.irbnamespace.ProtocolReviewerDocument.ProtocolReviewer protocolReviewerType) {
    Person personType = protocolReviewerType.addNewPerson();
    boolean nonEmployeeFlag = protocolReviewer.getNonEmployeeFlag();
    if (!nonEmployeeFlag) {
      String personId = protocolReviewer.getPersonId();
      KcPerson person = getKcPersonService().getKcPersonByPersonId(personId);
      getIrbPrintXmlUtilService().setPersonXml(person, personType);

    } else {
      Rolodex rolodex = protocolReviewer.getRolodex();
      ProtocolPersonRolodex protocolRolodex =
          getBusinessObjectService()
              .findBySinglePrimaryKey(ProtocolPersonRolodex.class, rolodex.getRolodexId());
      getIrbPrintXmlUtilService().setPersonXml(protocolRolodex, personType);
    }
  }