Beispiel #1
0
 public boolean isScientificCommissionMember(final Person person) {
   for (final ScientificCommission scientificCommission : getScientificCommissionMembersSet()) {
     if (person == scientificCommission.getPerson()) {
       return true;
     }
   }
   return false;
 }
Beispiel #2
0
  public boolean isPersonInScientificCommission(Person person) {
    for (ScientificCommission commission : getScientificCommissionMembersSet()) {
      if (commission.getPerson() == person) {
        return true;
      }
    }

    return false;
  }
  @Override
  protected Collection<Person> getReceivers(Thesis thesis) {
    Person student = thesis.getStudent().getPerson();
    Person orientator = thesis.getOrientator().getPerson();
    Person coorientator = getPerson(thesis.getCoorientator());
    Person president = getPerson(thesis.getPresident());

    Set<Person> persons = personSet(student, orientator, coorientator, president);
    for (ThesisEvaluationParticipant participant : thesis.getVowels()) {
      persons.add(participant.getPerson());
    }

    // also send proposal approval to the contact team
    ExecutionYear executionYear = thesis.getEnrolment().getExecutionYear();
    for (ScientificCommission member :
        thesis.getDegree().getScientificCommissionMembers(executionYear)) {
      if (member.isContact()) {
        persons.add(member.getPerson());
      }
    }

    return persons;
  }