Package org.fenixedu.academic.domain.studentCurriculum.curriculumLine

Examples of org.fenixedu.academic.domain.studentCurriculum.curriculumLine.CurriculumLineLocationBean


public class CurriculumGroupsProviderForMoveCurriculumLines implements DataProvider {

    @Override
    public Object provide(Object source, Object currentValue) {
        final CurriculumLineLocationBean bean = (CurriculumLineLocationBean) source;

        final Student student = bean.getStudent();
        final Set<CurriculumGroup> result = new HashSet<CurriculumGroup>();

        for (final Registration registration : student.getRegistrationsSet()) {

            if (!registration.isBolonha()) {
                result.addAll(registration.getLastStudentCurricularPlan().getAllCurriculumGroups());
                continue;
            }

            final StudentCurricularPlan studentCurricularPlan = registration.getLastStudentCurricularPlan();
            result.addAll(studentCurricularPlan.getNoCourseGroupCurriculumGroups());

            for (final CycleCurriculumGroup cycle : studentCurricularPlan.getCycleCurriculumGroups()) {

                if (bean.isWithRules() && isConcluded(student, cycle)) {
                    continue;
                }

                result.addAll(cycle.getAllCurriculumGroups());
            }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.studentCurriculum.curriculumLine.CurriculumLineLocationBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.