Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan


    @Override
    protected List<IndividualCandidacyProcess> getChildProcesses(final CandidacyProcess process, HttpServletRequest request) {
        Collection<IndividualCandidacyProcess> processes = process.getChildProcessesSet();
        List<IndividualCandidacyProcess> selectedDegreesIndividualCandidacyProcesses =
                new ArrayList<IndividualCandidacyProcess>();
        DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);

        for (IndividualCandidacyProcess child : processes) {
            if (((SecondCycleIndividualCandidacyProcess) child).getSelectedDegrees().contains(degreeCurricularPlan.getDegree())) {
                selectedDegreesIndividualCandidacyProcesses.add(child);
            }
        }

        return selectedDegreesIndividualCandidacyProcesses;
View Full Code Here


        List<String> genericDegreeWarnings = new ArrayList<String>();

        final Student student = AccessControl.getPerson().getStudent();
        if (student != null) {
            for (Registration registration : student.getActiveRegistrationsIn(ExecutionSemester.readActualExecutionSemester())) {
                DegreeCurricularPlan degreeCurricularPlan = registration.getActiveDegreeCurricularPlan();
                if (registration.getAttendingExecutionCoursesForCurrentExecutionPeriod().isEmpty() == false) {
                    studentPortalBeans.add(new StudentPortalBean(registration.getDegree(), student, registration
                            .getAttendingExecutionCoursesForCurrentExecutionPeriod(), degreeCurricularPlan));
                }
                if (hasSpecialSeasonEnrolments(student)) {
View Full Code Here

        Person selectedPerson = bean.getPerson();
        if (selectedPerson == null) {
            addActionMessage("info", request, "thesis.selectPerson.internal.required");
            return mapping.findForward("select-person");
        } else {
            DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);
            Thesis thesis = getThesis(request);
            final PersonTarget personTarget = bean.getTargetType();
            if (personTarget == PersonTarget.president) {
                final Enrolment enrolment = thesis.getEnrolment();
                final ExecutionYear executionYear = enrolment.getExecutionYear();
                if (selectedPerson == null || !degreeCurricularPlan.isScientificCommissionMember(executionYear, selectedPerson)) {
                    addActionMessage("info", request, "thesis.selectPerson.president.required.scientific.commission");
                    return mapping.findForward("select-person");
                }
            }
            if (personTarget == PersonTarget.vowel) {
View Full Code Here

        final List<DegreeCurricularPlan> result = new ArrayList<DegreeCurricularPlan>();

        for (final ExecutionDegree executionDegree : bean.getSemester().getExecutionYear()
                .getExecutionDegreesByType(DegreeType.BOLONHA_ADVANCED_SPECIALIZATION_DIPLOMA)) {

            final DegreeCurricularPlan degreeCurricularPlan = executionDegree.getDegreeCurricularPlan();

            if (!hasEnrolmentPeriod(degreeCurricularPlan, bean.getSemester())
                    && programs.contains(degreeCurricularPlan.getDegree().getPhdProgram())) {
                result.add(degreeCurricularPlan);
            }

        }
        return result;
View Full Code Here

        final List<LabelValueBean> labelListOfExecutionDegrees = new ArrayList<LabelValueBean>();
        final List<InfoExecutionDegree> infoExecutionDegrees = new ArrayList<InfoExecutionDegree>();
        for (final ExecutionDegree executionDegree : executionDegrees) {
            infoExecutionDegrees.add(InfoExecutionDegree.newInfoFromDomain(executionDegree));

            final DegreeCurricularPlan degreeCurricularPlan = executionDegree.getDegreeCurricularPlan();
            final Degree degree = degreeCurricularPlan.getDegree();
            final String degreeTypeString = BundleUtil.getString(Bundle.ENUMERATION, degree.getDegreeType().toString());
            final StringBuilder name = new StringBuilder();
            name.append(degreeTypeString);
            name.append(" ").append(BundleUtil.getString(Bundle.APPLICATION, "label.in")).append(" ");
            name.append(degree.getNameFor(executionDegree.getExecutionYear()).getContent());
            if (duplicateDegreeInList(degree, executionYear)) {
                name.append(" - ");
                name.append(degreeCurricularPlan.getName());
            }
            final LabelValueBean labelValueBean = new LabelValueBean(name.toString(), executionDegree.getExternalId().toString());
            labelListOfExecutionDegrees.add(labelValueBean);
        }
        Collections.sort(labelListOfExecutionDegrees);
View Full Code Here

        final Integer anoCurricular = (Integer) escolherContextoForm.get("curYear");
        request.setAttribute("curYear", anoCurricular);

        // infoDegreeCurricularPlan
        if (degreeCurricularPlanId != null) {
            final DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanId);

            InfoDegreeCurricularPlan infoDegreeCurricularPlan = InfoDegreeCurricularPlan.newInfoFromDomain(degreeCurricularPlan);
            request.setAttribute("infoDegreeCurricularPlan", infoDegreeCurricularPlan);
        }

        InfoExecutionPeriod infoExecutionPeriod =
                (InfoExecutionPeriod) request.getAttribute(PresentationConstants.EXECUTION_PERIOD);
        String executionPeriodID = (String) escolherContextoForm.get("indice");
        if (StringUtils.isEmpty(executionPeriodID)) {
            executionPeriodID = getFromRequest("indice", request);
        }
        if (!StringUtils.isEmpty(executionPeriodID)) {
            infoExecutionPeriod = ReadExecutionPeriodByOID.run(executionPeriodID);
        }
        request.setAttribute("indice", infoExecutionPeriod.getExternalId());
        escolherContextoForm.set("indice", infoExecutionPeriod.getExternalId());
        RequestUtils.setExecutionPeriodToRequest(request, infoExecutionPeriod);
        request.setAttribute(PresentationConstants.EXECUTION_PERIOD, infoExecutionPeriod);
        request.setAttribute(PresentationConstants.EXECUTION_PERIOD_OID, infoExecutionPeriod.getExternalId().toString());
        request.setAttribute("semester", infoExecutionPeriod.getSemester());

        final ExecutionSemester executionSemester = FenixFramework.getDomainObject(infoExecutionPeriod.getExternalId());
        final DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanId);
        ExecutionDegree executionDegree = degreeCurricularPlan.getExecutionDegreeByYear(executionSemester.getExecutionYear());
        if (executionDegree == null) {
            executionDegree = degreeCurricularPlan.getMostRecentExecutionDegree();

            if (executionDegree != null) {
                infoExecutionPeriod =
                        InfoExecutionPeriod.newInfoFromDomain(executionDegree.getExecutionYear().getExecutionSemesterFor(1));
                request.setAttribute("indice", infoExecutionPeriod.getExternalId());
View Full Code Here

        }
        return executionDegrees;
    }

    private boolean hasDissertation(final ExecutionDegree executionDegree) {
        final DegreeCurricularPlan degreeCurricularPlan = executionDegree.getDegreeCurricularPlan();
        final HasDissertationPredicate hasDissertationPredicate = new HasDissertationPredicate();
        degreeCurricularPlan.doForAllCurricularCourses(hasDissertationPredicate);
        return hasDissertationPredicate.hasDissertation;
    }
View Full Code Here

    @Override
    public Object provide(Object source, Object currentValue) {
        final EquivalencePlanEntryCreator equivalencePlanEntryCreator = (EquivalencePlanEntryCreator) source;
        final DegreeCurricularPlanEquivalencePlan equivalencePlan =
                (DegreeCurricularPlanEquivalencePlan) equivalencePlanEntryCreator.getEquivalencePlan();
        final DegreeCurricularPlan degreeCurricularPlan = equivalencePlan.getSourceDegreeCurricularPlan();
        final Set<DegreeModule> degreeModules = degreeCurricularPlan.getAllDegreeModules();
        return degreeModules;
    }
View Full Code Here

        final String searchValue = StringNormalizer.normalize(value);

        final List<ExecutionDegree> result = new ArrayList<ExecutionDegree>();
        for (final ExecutionDegree executionDegree : executionYear.getExecutionDegreesSet()) {
            final DegreeCurricularPlan degreeCurricularPlan = executionDegree.getDegreeCurricularPlan();
            final Degree degree = degreeCurricularPlan.getDegree();
            if (match(searchValue, degreeCurricularPlan.getName())
                    || match(searchValue, degree.getNameI18N(executionYear).getContent())
                    || match(searchValue, degree.getSigla())) {
                result.add(executionDegree);
                if (result.size() >= maxCount) {
                    break;
View Full Code Here

    @Override
    public Object provide(Object source, Object currentValue) {
        final EquivalencePlanEntryCreator equivalencePlanEntryCreator = (EquivalencePlanEntryCreator) source;
        final DegreeCurricularPlanEquivalencePlan equivalencePlan =
                (DegreeCurricularPlanEquivalencePlan) equivalencePlanEntryCreator.getEquivalencePlan();
        final DegreeCurricularPlan degreeCurricularPlan = equivalencePlan.getDegreeCurricularPlan();
        final Set<DegreeModule> degreeModules = degreeCurricularPlan.getAllDegreeModules();
        return degreeModules;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.DegreeCurricularPlan

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.