protected PropAwardPersonRole createTestRole(Long id, String code, String hierarchyName) {
   PropAwardPersonRole role = new PropAwardPersonRole();
   role.setId(id);
   role.setCode(code);
   role.setSponsorHierarchyName(hierarchyName);
   return role;
 }
Ejemplo n.º 2
0
  private List<PropAwardPersonRole> defineRoles() {
    List<PropAwardPersonRole> roles = new ArrayList<PropAwardPersonRole>();
    PropAwardPersonRole role = new PropAwardPersonRole();
    role.setCode("PI");
    role.setDescription(NONNIH_PI_DESCRIPTION);
    roles.add(role);

    role = new PropAwardPersonRole();
    role.setCode("COI");
    role.setDescription(NONNIH_COI_DESCRIPTION);
    roles.add(role);

    role = new PropAwardPersonRole();
    role.setCode("KP");
    role.setDescription(KEY_PERSON_DESCRIPTION);
    roles.add(role);
    return roles;
  }