Exemple #1
0
 /**
  * Make sure the lead unit of the award still matches the lead unit of the person, if the person
  * is a PI.
  *
  * @param award
  * @param person
  */
 protected void fixLeadUnit(Award award, AwardPerson person) {
   if (person.isPrincipalInvestigator()) {
     for (AwardPersonUnit unit : person.getUnits()) {
       if (unit.isLeadUnit()) {
         if (!StringUtils.equals(award.getLeadUnit().getUnitNumber(), unit.getUnitNumber())) {
           award.setLeadUnit(unit.getUnit());
         }
       }
     }
   }
 }