Package org.fenixedu.academic.dto.administrativeOffice

Examples of org.fenixedu.academic.dto.administrativeOffice.ExecutionDegreeBean


public class DegreeCurricularPlansForDegree implements DataProvider {

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

        final ExecutionDegreeBean executionDegreeBean = (ExecutionDegreeBean) source;
        final List<DegreeCurricularPlan> result = new ArrayList<DegreeCurricularPlan>();
        if (executionDegreeBean.getDegree() != null) {
            result.addAll(executionDegreeBean.getDegree().getDegreeCurricularPlansForYear(executionDegreeBean.getExecutionYear()));
            Collections.sort(result, DegreeCurricularPlan.COMPARATOR_BY_NAME);
        } else {
            executionDegreeBean.setDegreeCurricularPlan(null);
        }
        return result;
    }
View Full Code Here


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

        if (source instanceof ExecutionDegreeBean) {
            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();
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.administrativeOffice.ExecutionDegreeBean

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.