@Atomic
public static void run(CurricularCourse curricularCourse, Context context, CourseGroup courseGroup, Integer year,
Integer semester, String beginExecutionPeriodID, String endExecutionPeriodID) {
final CurricularPeriod degreeCurricularPeriod =
context.getParentCourseGroup().getParentDegreeCurricularPlan().getDegreeStructure();
// ********************************************************
/*
* TODO: Important - change this code (must be generic to support
* several curricularPeriodInfoDTOs, instead of year and semester)
*/
CurricularPeriod curricularPeriod = null;
CurricularPeriodInfoDTO curricularPeriodInfoYear = null;
if (courseGroup.getParentDegreeCurricularPlan().getDegree().getDegreeType().getYears() > 1) {
curricularPeriodInfoYear = new CurricularPeriodInfoDTO(year, AcademicPeriod.YEAR);
}
final CurricularPeriodInfoDTO curricularPeriodInfoSemester =