throw new DomainException("error.request.already.processed");
}
setApproved(true);
setAnalizedBy(analisedBy);
CompetenceCourse course = getCompetenceCourse();
ExecutionSemester executionSemester = getExecutionPeriod();
CompetenceCourseInformation information = null;
if (course.isCompetenceCourseInformationDefinedAtExecutionPeriod(executionSemester)) {
information = course.findCompetenceCourseInformationForExecutionPeriod(executionSemester);
information.edit(getName(), getNameEn(), information.getBasic(), getCompetenceCourseLevel(),
getCompetenceCourseGroupUnit());
information.setRegime(getRegime());
information.edit(getObjectives(), getProgram(), getEvaluationMethod(), getObjectivesEn(), getProgramEn(),
getEvaluationMethodEn());
information.setBibliographicReferences(getBibliographicReferences());
for (; !information.getCompetenceCourseLoadsSet().isEmpty(); information.getCompetenceCourseLoadsSet().iterator()
.next().delete()) {
;
}
createLoads(information);
} else {
information =
new CompetenceCourseInformation(getName(), getNameEn(), course.isBasic(), getRegime(),
getCompetenceCourseLevel(), getExecutionPeriod(), getCompetenceCourseGroupUnit());
information.edit(getObjectives(), getProgram(), getEvaluationMethod(), getObjectivesEn(), getProgramEn(),
getEvaluationMethodEn());
information.setAcronym(course.getAcronym());
information.setBibliographicReferences(getBibliographicReferences());
course.addCompetenceCourseInformations(information);
createLoads(information);
}
}