Examples of DegreeCurricularPlan


Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        try {
            AssociateCurricularCoursesToExecutionCourse.run(executionCourseId, curricularCourseIds);

            // avmc (ist150958): success messages: 1 line for each curricular course
            String degreeCurricularPlanId = RequestUtils.getAndSetStringToRequest(request, "degreeCurricularPlanId");
            DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanId);

            addActionMessage("success", request, "message.manager.executionCourseManagement.associateCourse.success",
                    degreeCurricularPlan.getName());
            for (final String curricularCourseId : curricularCourseIds) {
                final CurricularCourse curricularCourse = FenixFramework.getDomainObject(curricularCourseId);
                addActionMessage("successCourse", request,
                        "message.manager.executionCourseManagement.associateCourse.success.line", curricularCourse.getName());
            }
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        final MessageResources enumMessages = MessageResources.getMessageResources(Bundle.ENUMERATION);
        final MessageResources messages = MessageResources.getMessageResources(Bundle.DEGREE);

        final List<LabelValueBean> executionDegreeLabelValueBeans = new ArrayList<LabelValueBean>();
        for (final ExecutionDegree executionDegree : ExecutionDegree.filterByAcademicInterval(academicInterval)) {
            final DegreeCurricularPlan degreeCurricularPlan = executionDegree.getDegreeCurricularPlan();
            final Degree degree = degreeCurricularPlan.getDegree();
            String part =
                    addAnotherInfoToLabel(executionDegree, academicInterval) ? " - "
                            + executionDegree.getDegreeCurricularPlan().getName() : "";
            executionDegreeLabelValueBeans.add(new LabelValueBean(enumMessages.getMessage(getLocale(request), degree
                    .getDegreeType().toString())
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

            if (!academicServiceRequest.isRequestForRegistration()) {
                continue;
            }
            RegistrationAcademicServiceRequest request = (RegistrationAcademicServiceRequest) academicServiceRequest;

            DegreeCurricularPlan degreeCurricularPlan =
                    getMostRecentDegreeCurricularPlanForYear(request.getRegistration().getDegree(), chosenExecutionYear);
            if ((chosenDegreeType != null)
                    && (degreeCurricularPlan == null || chosenDegreeType != degreeCurricularPlan.getDegreeType())) {
                continue;
            }
            if ((degreeCurricularPlan != null) && (degreeCurricularPlan.getDegreeType() != DegreeType.EMPTY)
                    && (!accessibleDegreeTypes.contains(degreeCurricularPlan.getDegreeType()))) {
                continue;
            }

            if (chosenDegree != null && chosenDegree != request.getRegistration().getDegree()) {
                continue;
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        return resultList;
    }

    private DegreeCurricularPlan getMostRecentDegreeCurricularPlanForYear(Degree degree, final ExecutionYear executionYear) {
        DegreeCurricularPlan degreeCurricularPlan = null;
        for (DegreeCurricularPlan plan : degree.getDegreeCurricularPlansForYear(executionYear)) {
            if ((degreeCurricularPlan == null)
                    || (degreeCurricularPlan.getMostRecentExecutionDegree().isBefore(plan.getMostRecentExecutionDegree()))) {
                degreeCurricularPlan = plan;
            }
        }
        if (degreeCurricularPlan == null) {
            degreeCurricularPlan = degree.getMostRecentDegreeCurricularPlan();
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

            SortedSet<DegreeCurricularPlan> possible =
                    new TreeSet<DegreeCurricularPlan>(DegreeCurricularPlan.COMPARATOR_BY_PRESENTATION_NAME);
            if (degreeType != null && type != null && semester != null) {
                if (degreeType.isBolonhaType()) {
                    for (ExecutionDegree execution : semester.getExecutionYear().getExecutionDegreesByType(degreeType)) {
                        DegreeCurricularPlan dcp = execution.getDegreeCurricularPlan();
                        addIfNotUsedInPeriod(possible, dcp);
                    }
                } else {
                    for (DegreeCurricularPlan dcp : DegreeCurricularPlan.readPreBolonhaDegreeCurricularPlans()) {
                        addIfNotUsedInPeriod(possible, dcp);
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

    @Override
    public ActionForward listProcessAllowedActivities(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final String degreeCurricularPlanOID = DegreeCoordinatorIndex.findDegreeCurricularPlanID(request);
        final DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanOID);
        if (getProcess(request).getCandidacy().getSecondCycleIndividualCandidacySeriesGradeForDegree(
                degreeCurricularPlan.getDegree()) != null) {
            request.setAttribute("seriesGrade", getProcess(request).getCandidacy()
                    .getSecondCycleIndividualCandidacySeriesGradeForDegree(degreeCurricularPlan.getDegree()));
        } else {
            request.setAttribute("seriesGrade", getProcess(request).getCandidacy().getSecondCycleIndividualCandidacySeriesGrade());
        }
        return super.listProcessAllowedActivities(mapping, form, request, response);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        final ExecutionDegree executionDegree = getExecutionDegree();
        if (executionDegree != null) {
            final ExecutionYear executionYear = executionDegree.getExecutionYear();
            final ExecutionYear previousExecutionYear = executionYear.getPreviousExecutionYear();
            if (previousExecutionYear != null) {
                final DegreeCurricularPlan degreeCurricularPlan = executionDegree.getDegreeCurricularPlan();
                for (final ExecutionDegree otherExecutionDegree : degreeCurricularPlan.getExecutionDegreesSet()) {
                    if (otherExecutionDegree.getExecutionYear() == previousExecutionYear) {
                        return otherExecutionDegree;
                    }
                }
            }
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

    public SortedSet<ExecutionDegree> getAvailableExecutionDegrees() {
        final SortedSet<ExecutionDegree> executionDegrees =
                new TreeSet<ExecutionDegree>(ExecutionDegree.REVERSE_EXECUTION_DEGREE_COMPARATORY_BY_YEAR);
        final ExecutionDegree executionDegree = getExecutionDegree();
        if (executionDegree != null) {
            final DegreeCurricularPlan degreeCurricularPlan = executionDegree.getDegreeCurricularPlan();
            executionDegrees.addAll(degreeCurricularPlan.getExecutionDegreesSet());
        }
        return executionDegrees;
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

    @Override
    public ActionForward prepareExecuteIntroduceCandidacyResult(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        final String degreeCurricularPlanOID = DegreeCoordinatorIndex.findDegreeCurricularPlanID(request);
        final DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanOID);
        request.setAttribute("secondCycleIndividualCandidacyResultBean", new SecondCycleIndividualCandidacyResultBean(
                getProcess(request), degreeCurricularPlan.getDegree()));
        return mapping.findForward("introduce-candidacy-result");
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        throw new RuntimeException("not allowed");
    }

    @Override
    protected List<IndividualCandidacyProcess> getChildProcesses(CandidacyProcess process, HttpServletRequest request) {
        final DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);
        final List<IndividualCandidacyProcess> result = new ArrayList(super.getChildProcesses(process, request));
        for (final Iterator<IndividualCandidacyProcess> i = result.iterator(); i.hasNext();) {
            final StandaloneIndividualCandidacyProcess individualCandidacyProcess =
                    (StandaloneIndividualCandidacyProcess) i.next();
            if (!matchesDegree(degreeCurricularPlan, individualCandidacyProcess)) {
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.