コード例 #1
0
 /**
  * Gets the set of Participants the ultimately report to the Position passed
  *
  * @param manager the 'manager' Position
  * @return the set of Particpants 'managed' by this Position
  */
 public Set<Participant> getParticipantsReportingToPosition(Position manager) {
   Set<Participant> result = new HashSet<Participant>();
   Set<Position> posSet = getPositions();
   for (Position pos : posSet) {
     if (pos.ultimatelyReportsTo(manager)) {
       result.addAll(castToParticipantSet(pos.getResources()));
     }
   }
   return result;
 }