@Atomic
 public static List<InfoExecutionCourse> runSearchExecutionCourses(
     AcademicInterval academicInterval, ExecutionDegree executionDegree, String courseName)
     throws NotAuthorizedException {
   CoordinatorExecutionDegreeAuthorizationFilter.instance.execute(executionDegree.getExternalId());
   return serviceInstance.run(academicInterval, executionDegree, courseName);
 }
 private static ExecutionDegree findExecutionDegreeByID(
     final ExecutionSemester executionSemester, final String executionDegreeId) {
   final ExecutionYear executionYear = executionSemester.getExecutionYear();
   for (final ExecutionDegree executionDegree : executionYear.getExecutionDegreesSet()) {
     if (executionDegree.getExternalId().equals(executionDegreeId)) {
       return executionDegree;
     }
   }
   return null;
 }
Exemple #3
0
 @Override
 public int compare(ExecutionDegree o1, ExecutionDegree o2) {
   final int dcc = o1.getDegree().getSigla().compareTo(o2.getDegree().getSigla());
   return dcc == 0 ? o1.getExternalId().compareTo(o2.getExternalId()) : dcc;
 }