}
return degrees;
}
private FenixDegreeExtended getFenixDegree(ExecutionDegree executionDegree) {
final Degree degree = executionDegree.getDegree();
List<FenixSpace> degreeCampus = new ArrayList<>();
ExecutionYear executionYear = executionDegree.getExecutionYear();
String name = degree.getNameI18N(executionYear).getContent(I18N.getLocale());
String type = degree.getDegreeTypeName();
String typeName = degree.getDegreeType().getFilteredName();
String degreeUrl = degree.getSiteUrl();
for (Space campus : degree.getCampus(executionYear)) {
degreeCampus.add(FenixSpace.getSimpleSpace(campus));
}
FenixDegreeExtended.FenixDegreeInfo fenixDegreeInfo = null;
DegreeInfo degreeInfo = degree.getDegreeInfoFor(executionYear);
if (degreeInfo == null) {
degreeInfo = degree.getMostRecentDegreeInfo(executionYear);
}
if (degreeInfo != null) {
String description = mls(degreeInfo.getDescription());
String objectives = mls(degreeInfo.getObjectives());
String designFor = mls(degreeInfo.getDesignedFor());
String requisites = mls(degreeInfo.getDegreeInfoCandidacy().getAccessRequisites());
String profissionalExits = mls(degreeInfo.getProfessionalExits());
String history = mls(degreeInfo.getHistory());
String operationRegime = mls(degreeInfo.getOperationalRegime());
String gratuity = mls(degreeInfo.getGratuity());
String links = mls(degreeInfo.getLinks());
fenixDegreeInfo =
new FenixDegreeInfo(description, objectives, designFor, requisites, profissionalExits, history,
operationRegime, gratuity, links);
}
final List<FenixTeacher> teachers = new ArrayList<>();
final Collection<Teacher> responsibleCoordinatorsTeachers = degree.getResponsibleCoordinatorsTeachers(executionYear);
for (Teacher teacher : responsibleCoordinatorsTeachers) {
String teacherName = teacher.getPerson().getName();
String istId = teacher.getPerson().getUsername();
List<String> mails = getTeacherPublicMail(teacher);