Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan


    }

    private void checkIsScientificCommissionMember() {
        final Enrolment enrolment = getEnrolment();
        final ExecutionYear executionYear = enrolment.getExecutionYear();
        final DegreeCurricularPlan degreeCurricularPlan = enrolment.getDegreeCurricularPlanOfStudent();
        final Person person = AccessControl.getPerson();

        if (person != null) {
            for (final ScientificCommission scientificCommission : person.getScientificCommissionsSet()) {
                final ExecutionDegree executionDegree = scientificCommission.getExecutionDegree();
View Full Code Here


        }
    }

    private ExecutionDegree getExecutionDegree(final Enrolment enrolment) {
        final ExecutionYear executionYear = enrolment.getExecutionYear();
        final DegreeCurricularPlan degreeCurricularPlan = enrolment.getDegreeCurricularPlanOfDegreeModule();
        return degreeCurricularPlan.getExecutionDegreeByYear(executionYear);
    }
View Full Code Here

                conditions.add(new ThesisCondition("thesis.condition.president.notInternal"));
            } else {
                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) {
View Full Code Here

            }
        }
    }

    private ExecutionDegree getDefaultExecutionDegree(HttpServletRequest request) {
        DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);

        TreeSet<ExecutionDegree> executionDegrees =
                new TreeSet<ExecutionDegree>(ExecutionDegree.EXECUTION_DEGREE_COMPARATORY_BY_YEAR);
        executionDegrees.addAll(degreeCurricularPlan.getExecutionDegreesSet());

        return executionDegrees.isEmpty() ? null : executionDegrees.last();
    }
View Full Code Here

        return executionDegrees.isEmpty() ? null : executionDegrees.last();
    }

    public ActionForward manage(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);
        ExecutionDegree executionDegree = getExecutionDegree(request);

        ExecutionDegreeBean bean = getRenderedObject("executionDegreeChoice");
        if (bean == null) {
            bean = new ExecutionDegreeBean(degreeCurricularPlan);
View Full Code Here

    public ActionForward choosePrinterMarkSheetsWebPostBack(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        final DynaActionForm form = (DynaActionForm) actionForm;

        final ExecutionSemester executionSemester = getExecutionSemester(form);
        final DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(form);

        return choosePrinterMarkSheetsWeb(mapping, actionForm, request, response, executionSemester, degreeCurricularPlan);
    }
View Full Code Here

        final String degreeCurricularPlanId = (String) actionForm.get("degreeCurricularPlanID");
        Student student = getStudent(actionForm);
        if (student != null) {
            if (!StringUtils.isEmpty(degreeCurricularPlanId)) {
                DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanId);
                registration = student.readRegistrationByDegreeCurricularPlan(degreeCurricularPlan);
            } else {
                final Collection<Registration> registrations = student.getRegistrationsSet();
                if (!registrations.isEmpty()) {
                    registration = registrations.iterator().next();
View Full Code Here

        final String curricularYearID = getCurricularYearID(dynaActionForm);
        final CurricularYear selecctedCurricularYear =
                setDomainObjectInRequest(dynaActionForm, request, "curricularYearID", "selecctedCurricularYear");

        final DegreeCurricularPlan degreeCurricularPlan =
                setDomainObjectInRequest(dynaActionForm, request, "degreeCurricularPlanID", "executionCourse");
        if (degreeCurricularPlan != null) {
            request.setAttribute("degreeCurricularPlanID", degreeCurricularPlan.getExternalId());
            for (final CurricularCourse curricularCourse : degreeCurricularPlan.getCurricularCoursesSet()) {
                for (final DegreeModuleScope degreeCourseScope : curricularCourse.getDegreeModuleScopes()) {
                    final CurricularYear curricularYear = CurricularYear.readByYear(degreeCourseScope.getCurricularYear());
                    curricularYears.add(curricularYear);

                    if (curricularYearID == null || curricularYear.getExternalId().equals(curricularYearID)) {
View Full Code Here

        int start = phase * degrees.size() * MAX_NUMBER_OF_STUDENTS;
        int maxLimit = start + MAX_NUMBER_OF_STUDENTS;
        final Map<DegreeCurricularPlan, List<Integer>> result = new HashMap<DegreeCurricularPlan, List<Integer>>();

        for (final Degree degree : degrees) {
            final DegreeCurricularPlan mostRecentDegreeCurricularPlan = degree.getMostRecentDegreeCurricularPlan();
            if (mostRecentDegreeCurricularPlan == null) {
                //Found NULL most recentDegreeCurricularPlan for
                errorLog.add(new StringBuilder("** O plano curricular do curso mais recente está a null para ").append(
                        degree.getSigla()).toString());
                continue;
View Full Code Here

        final Map<DegreeCurricularPlan, List<SchoolClassDistributionInformation>> result =
                new HashMap<DegreeCurricularPlan, List<SchoolClassDistributionInformation>>();
        Map<String, DegreeCurricularPlan> degreeCurricularPlans = new HashMap<String, DegreeCurricularPlan>();
        for (final ShiftDistributionDTO shiftDistributionDTO : shiftDistributionFromFile) {

            final DegreeCurricularPlan degreeCurricularPlan =
                    readDegreeCurricularPlanBy(shiftDistributionDTO.getDegreeCurricularPlanName(), degreeCurricularPlans);
            if (degreeCurricularPlan == null) {
                //Error reading degree with name
                errorLog.add(new StringBuilder("Erro ao ler o curso com o nome: '")
                        .append(shiftDistributionDTO.getDegreeCurricularPlanName()).append("' ignorando informação.").toString());
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.