Examples of StudentCurricularPlanCreator


Examples of org.fenixedu.academic.service.factoryExecutors.StudentCurricularPlanFactoryExecutor.StudentCurricularPlanCreator

public class DegreeCurricularPlansForCreateStudentCurricularPlan implements DataProvider {

    @Override
    public Object provide(Object source, Object currentValue) {

        final StudentCurricularPlanCreator creator = (StudentCurricularPlanCreator) source;
        final SortedSet<DegreeCurricularPlan> result = new TreeSet<DegreeCurricularPlan>(DegreeCurricularPlan.COMPARATOR_BY_NAME);
        if (creator.getDegree() != null) {
            Set<DegreeCurricularPlan> degreeCurricularPlans = creator.getRegistration().getDegreeCurricularPlans();
            for (DegreeCurricularPlan degreeCurricularPlan : creator.getDegree().getDegreeCurricularPlansSet()) {
                if (!degreeCurricularPlans.contains(degreeCurricularPlan)) {
                    result.add(degreeCurricularPlan);
                }
            }
        }
View Full Code Here

Examples of org.fenixedu.academic.service.factoryExecutors.StudentCurricularPlanFactoryExecutor.StudentCurricularPlanCreator

            ExecutionDegreeBean executionDegreeBean = (ExecutionDegreeBean) source;
            if (executionDegreeBean.getDegree() != null) {
                return executionDegreeBean.getDegree().getDegreeType().getCycleTypes();
            }
        } else if (source instanceof StudentCurricularPlanCreator) {
            StudentCurricularPlanCreator studentCurricularPlanCreator = (StudentCurricularPlanCreator) source;
            if (studentCurricularPlanCreator.getDegree() != null) {
                return studentCurricularPlanCreator.getDegree().getDegreeType().getCycleTypes();
            }
        }

        return new ArrayList<CycleType>();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.