Esempio n. 1
0
 /**
  * . 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;
 }
Esempio n. 2
0
  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);
    }
  }