Examples of ExecutionDegree


Examples of org.fenixedu.academic.domain.ExecutionDegree

    }

    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.ExecutionDegree

                        .getAttribute(PresentationConstants.ACADEMIC_INTERVAL));
        InfoCurricularYear infoCurricularYear = (InfoCurricularYear) request.getAttribute(PresentationConstants.CURRICULAR_YEAR);
        InfoExecutionDegree infoExecutionDegree =
                (InfoExecutionDegree) request.getAttribute(PresentationConstants.EXECUTION_DEGREE);

        final ExecutionDegree executionDegree = FenixFramework.getDomainObject(infoExecutionDegree.getExternalId());

        final Set<SchoolClass> classes;
        Integer curricularYear = infoCurricularYear.getYear();
        if (curricularYear != null) {
            classes = executionDegree.findSchoolClassesByAcademicIntervalAndCurricularYear(academicInterval, curricularYear);
        } else {
            classes = executionDegree.findSchoolClassesByAcademicInterval(academicInterval);
        }

        final List<InfoClass> infoClassesList = new ArrayList<InfoClass>();

        for (final SchoolClass schoolClass : classes) {
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionDegree

        final Map<ExecutionDegree, Integer> modified = new HashMap<ExecutionDegree, Integer>();

        for (final Degree degree : Degree.readAllByDegreeType(DegreeType.BOLONHA_DEGREE,
                DegreeType.BOLONHA_INTEGRATED_MASTER_DEGREE)) {
            for (final DegreeCurricularPlan degreeCurricularPlan : degree.getActiveDegreeCurricularPlans()) {
                final ExecutionDegree executionDegree =
                        degreeCurricularPlan.getExecutionDegreeByAcademicInterval(executionSemester.getExecutionYear()
                                .getAcademicInterval());

                if (executionDegree != null) {
                    for (final SchoolClass schoolClass : executionDegree.getSchoolClassesSet()) {
                        if (schoolClass.getAnoCurricular().equals(FIRST_CURRICULAR_YEAR)
                                && schoolClass.getExecutionPeriod() == executionSemester) {
                            for (final Shift shift : schoolClass.getAssociatedShiftsSet()) {
                                Set<ExecutionDegree> executionDegrees = shiftsDegrees.get(shift);
                                if (executionDegrees == null) {
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionDegree

    }

    private String getResponsibleCoordinatorNames(final DegreeCurricularPlan degreeCurricularPlan,
            final ExecutionYear executionYear) {
        final StringBuilder builder = new StringBuilder();
        final ExecutionDegree executionDegree = degreeCurricularPlan.getExecutionDegreeByYear(executionYear);
        final Iterator<Coordinator> coordinators = executionDegree.getResponsibleCoordinators().iterator();
        while (coordinators.hasNext()) {
            builder.append(coordinators.next().getPerson().getName()).append(coordinators.hasNext() ? ", " : "");
        }
        return builder.toString();
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionDegree

        DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);
        for (ExecutionInterval interval : executionIntervals) {
            final ExecutionYear executionYear =
                    (interval instanceof ExecutionYear) ? (ExecutionYear) interval : ((ExecutionSemester) interval)
                            .getExecutionYear();
            final ExecutionDegree executionDegree = degreeCurricularPlan.getExecutionDegreeByYear(executionYear);

            for (Coordinator coordinator : executionDegree.getCoordinatorsListSet()) {
                if (coordinator.getPerson() == AccessControl.getPerson()) {
                    returnExecutionIntervals.add(interval);
                    break;
                }
            }
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionDegree

            final String executionYearId = request.getParameter("executionYearId");
            ExecutionYear executionYear = FenixFramework.getDomainObject(executionYearId);

            final String executionDegreeId = request.getParameter("executionDegreeId");
            ExecutionDegree executionDegree = FenixFramework.getDomainObject(executionDegreeId);

            Boolean megavisor = Boolean.valueOf(request.getParameter("megavisor"));

            bean = new ExternalSupervisorViewsBean(executionYear, registrationProtocol);
            bean.setExecutionDegree(executionDegree);
            bean.setDegreeType(executionDegree.getDegreeType());
            bean.setMegavisor(megavisor);
        }

        if (bean.getMegavisor()) {
            boolean selectProtocol = true;
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionDegree

        public StatisticsBean(final ContextBean contextBean) {
            this.contextBean = contextBean;
        }

        public int getNumberOfRegisteredStudents() {
            final ExecutionDegree executionDegree = contextBean.getExecutionDegree();
            int counter = 0;
            if (executionDegree == null) {
                final ExecutionYear executionYear = contextBean.getExecutionYear();
                final DegreeType degreeType = contextBean.getDegreeType();
                for (final Degree degree : rootDomainObject.getDegreesSet()) {
                    if (degree.getDegreeType() == degreeType) {
                        counter += countDegreeRegistrations(executionYear, degree);
                    }
                }
            } else {
                final Degree degree = executionDegree.getDegree();
                counter = countDegreeRegistrations(executionDegree.getExecutionYear(), degree);
            }
            return counter;
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionDegree

                boolean isMember = false;

                final Enrolment enrolment = getEnrolment();
                final DegreeCurricularPlan degreeCurricularPlan = enrolment.getDegreeCurricularPlanOfDegreeModule();
                final ExecutionYear executionYear = enrolment.getExecutionYear();
                final ExecutionDegree executionDegree = degreeCurricularPlan.getExecutionDegreeByYear(executionYear);
                if (executionDegree != null) {
                    for (ScientificCommission member : executionDegree.getScientificCommissionMembersSet()) {
                        isMember = isMember || president == member.getPerson();

                        if (isMember) {
                            break;
                        }
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionDegree

        final String degreeCurricularPlanOID = newFindDegreeCurricularPlanID(request);
        request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanOID);

        final DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanOID);

        final ExecutionDegree executionDegree = degreeCurricularPlan.getMostRecentExecutionDegree();

        Degree degree = executionDegree.getDegree();

        // Degree degree = getDomainObject(request, "degreeCurricularPlanID");
        SearchDegreeLogBean sdlb = new SearchDegreeLogBean(degree);
        sdlb.setDegreeLogTypes(new ArrayList<DegreeLogTypes>());
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionDegree

            SearchDegreeStudentsGroup degreeStudentsGroup =
                    SearchDegreeStudentsGroup.parse((String) getFromRequestOrForm(request, (DynaActionForm) form, "searchGroup"));
            label = degreeStudentsGroup.getLabel();
            String executionDegreeId = (String) getFromRequestOrForm(request, (DynaActionForm) form, "executionDegreeId");
            studentsGroup = degreeStudentsGroup.getUserGroup();
            ExecutionDegree executionDegree = FenixFramework.getDomainObject(executionDegreeId);
            sender = CoordinatorSender.newInstance(executionDegree.getDegree());
        }

        Recipient recipient = Recipient.newInstance(label, studentsGroup);
        return EmailsDA.sendEmail(request, sender, recipient);
    }
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.