throw new FenixActionException("must.select.curricular.rule.type");
}
}
private CurricularRuleParametersDTO buildCurricularRuleParametersDTO() throws FenixServiceException, NumberFormatException {
final CurricularRuleParametersDTO parametersDTO = new CurricularRuleParametersDTO();
parametersDTO.setSelectedDegreeModuleID(getSelectedDegreeModuleID());
parametersDTO.setContextCourseGroupID((getSelectedContextCourseGroupID() == null || getSelectedContextCourseGroupID()
.equals(NO_SELECTION_STRING)) ? null : getSelectedContextCourseGroupID());
parametersDTO.setCurricularPeriodInfoDTO(new CurricularPeriodInfoDTO(Integer.valueOf(getSelectedSemester()),
AcademicPeriod.SEMESTER));
parametersDTO.setMinimumCredits(getMinimumCredits());
parametersDTO.setMaximumCredits(getMaximumCredits());
parametersDTO.setMinimumLimit(getMinimumLimit());
parametersDTO.setMaximumLimit(getMaximumLimit());
parametersDTO
.setSelectedDegreeID((getSelectedDegreeID() == null || getSelectedDegreeID().equals(NO_SELECTION_STRING)) ? null : getSelectedDegreeID());
parametersDTO.setSelectedDepartmentUnitID((getSelectedDepartmentUnitID() == null || getSelectedDepartmentUnitID().equals(
NO_SELECTION_STRING)) ? null : getSelectedDepartmentUnitID());
parametersDTO
.setDegreeType((getSelectedDegreeType() == null || getSelectedDegreeType().equals(NO_SELECTION_STRING)) ? null : DegreeType
.valueOf(getSelectedDegreeType()));
// must get these values like this to prevent override values
parametersDTO.setMinimumYear((Integer) getViewState().getAttribute("minimumYear"));
parametersDTO.setMaximumYear((Integer) getViewState().getAttribute("maximumYear"));
parametersDTO.setCredits((Double) getViewState().getAttribute("credits"));
parametersDTO.setEven(Boolean.valueOf(getSelectedEven()));
return parametersDTO;
}