request.setAttribute("degreeID", degreeId);
// degreeCurricularPlanID
String degreeCurricularPlanId = (String) request.getAttribute("degreeCurricularPlanID");
request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanId);
final DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanId);
if (!degreeCurricularPlan.getDegree().getExternalId().equals(degreeId)) {
throw new FenixActionException();
} else {
request.setAttribute("degree", degreeCurricularPlan.getDegree());
}
// lista
List<LabelValueBean> executionPeriodsLabelValueList = buildExecutionPeriodsLabelValueList(degreeCurricularPlanId);
if (executionPeriodsLabelValueList.size() > 1) {
request.setAttribute("lista", executionPeriodsLabelValueList);
} else {
request.removeAttribute("lista");
}
// indice
final DynaActionForm escolherContextoForm = (DynaActionForm) form;
String indice = (String) escolherContextoForm.get("indice");
escolherContextoForm.set("indice", indice);
request.setAttribute("indice", indice);
InfoExecutionPeriod infoExecutionPeriod =
(InfoExecutionPeriod) request.getAttribute(PresentationConstants.EXECUTION_PERIOD);
request.setAttribute(PresentationConstants.EXECUTION_PERIOD, infoExecutionPeriod);
request.setAttribute(PresentationConstants.EXECUTION_PERIOD_OID, infoExecutionPeriod.getExternalId().toString());
final ExecutionSemester executionSemester = FenixFramework.getDomainObject(infoExecutionPeriod.getExternalId());
ExecutionDegree executionDegree = degreeCurricularPlan.getExecutionDegreeByYear(executionSemester.getExecutionYear());
if (executionDegree != null) {
// infoExecutionDegree
InfoExecutionDegree infoExecutionDegree = InfoExecutionDegree.newInfoFromDomain(executionDegree);
RequestUtils.setExecutionDegreeToRequest(request, infoExecutionDegree);