final MessageResources messages = MessageResources.getMessageResources(Bundle.DEGREE);
final List<LabelValueBean> executionDegreeLabelValueBeans = new ArrayList<LabelValueBean>();
for (final ExecutionDegree executionDegree : ExecutionDegree.filterByAcademicInterval(academicInterval)) {
final DegreeCurricularPlan degreeCurricularPlan = executionDegree.getDegreeCurricularPlan();
final Degree degree = degreeCurricularPlan.getDegree();
String part =
addAnotherInfoToLabel(executionDegree, academicInterval) ? " - "
+ executionDegree.getDegreeCurricularPlan().getName() : "";
executionDegreeLabelValueBeans.add(new LabelValueBean(enumMessages.getMessage(getLocale(request), degree
.getDegreeType().toString())
+ " "
+ messages.getMessage(getLocale(request), "public.degree.information.label.in")
+ " "
+ degree.getNameFor(academicInterval).getContent() + part, executionDegree.getExternalId().toString()));
}
Collections.sort(executionDegreeLabelValueBeans, new BeanComparator("label"));
request.setAttribute("executionDegreeLabelValueBeans", executionDegreeLabelValueBeans);
return mapping.findForward("showForm");