예제 #1
0
 private static boolean hasActiveProfessorship() {
   final ExecutionSemester executionSemester = ExecutionSemester.readActualExecutionSemester();
   final Person person = AccessControl.getPerson();
   for (final Professorship professorship : person.getProfessorshipsSet()) {
     if (professorship.getExecutionCourse().getExecutionPeriod() == executionSemester) {
       return true;
     }
   }
   return false;
 }