Examples of InfoExecutionDegree


Examples of org.fenixedu.academic.dto.InfoExecutionDegree

                        .getAttribute(PresentationConstants.EXECUTION_PERIOD)).getInfoExecutionYear());
        List<LabelValueBean> licenciaturas = new ArrayList<LabelValueBean>();
        licenciaturas.add(new LabelValueBean("escolher", ""));
        Collections.sort(infoExecutionDegreeList, new ComparatorByNameForInfoExecutionDegree());

        InfoExecutionDegree infoExecutionDegree = (InfoExecutionDegree) infoExecutionDegreeList.get(index);

        if (infoExecutionDegree != null) {
            CurricularYearAndSemesterAndInfoExecutionDegree cYSiED =
                    new CurricularYearAndSemesterAndInfoExecutionDegree(anoCurricular, semestre, infoExecutionDegree);
            request.setAttribute(PresentationConstants.CONTEXT_KEY, cYSiED);

            request.setAttribute(PresentationConstants.CURRICULAR_YEAR_KEY, anoCurricular);
            request.setAttribute(PresentationConstants.CURRICULAR_YEAR_OID, anoCurricular.toString());
            request.setAttribute(PresentationConstants.INFO_EXECUTION_DEGREE_KEY, infoExecutionDegree);
            request.setAttribute(PresentationConstants.EXECUTION_DEGREE, infoExecutionDegree);
            request.setAttribute(PresentationConstants.EXECUTION_DEGREE_OID, infoExecutionDegree.getExternalId().toString());
        } else {
            return mapping.findForward("Licenciatura execucao inexistente");
        }

        if (nextPage != null) {
View Full Code Here

Examples of org.fenixedu.academic.dto.InfoExecutionDegree

                request.setAttribute("semester", infoExecutionPeriod.getSemester());
            }
        }

        if (executionDegree != null) {
            InfoExecutionDegree infoExecutionDegree = InfoExecutionDegree.newInfoFromDomain(executionDegree);
            request.setAttribute(PresentationConstants.EXECUTION_DEGREE, infoExecutionDegree);
            request.setAttribute("executionDegreeID", infoExecutionDegree.getExternalId().toString());
            RequestUtils.setExecutionDegreeToRequest(request, infoExecutionDegree);

            request.setAttribute("infoDegreeCurricularPlan", infoExecutionDegree.getInfoDegreeCurricularPlan());
            request.setAttribute(PresentationConstants.INFO_DEGREE_CURRICULAR_PLAN,
                    infoExecutionDegree.getInfoDegreeCurricularPlan());
        }

        String nextPage = request.getParameter("nextPage");
        if (nextPage != null) {
            return mapping.findForward(nextPage);
View Full Code Here

Examples of org.fenixedu.academic.dto.InfoExecutionDegree

    }

    public static Collection buildExecutionDegreeLabelValueBean(Collection executionDegrees) {
        final Map duplicateDegreesMap = new HashMap();
        for (Iterator iterator = executionDegrees.iterator(); iterator.hasNext();) {
            InfoExecutionDegree infoExecutionDegree = (InfoExecutionDegree) iterator.next();
            InfoDegree infoDegree = infoExecutionDegree.getInfoDegreeCurricularPlan().getInfoDegree();
            String degreeName = infoDegree.getNome();

            if (duplicateDegreesMap.get(degreeName) == null) {
                duplicateDegreesMap.put(degreeName, new Boolean(false));
            } else {
                duplicateDegreesMap.put(degreeName, new Boolean(true));
            }
        }

        Collection lableValueList = CollectionUtils.collect(executionDegrees, new Transformer() {

            @Override
            public Object transform(Object arg0) {
                InfoExecutionDegree infoExecutionDegree = (InfoExecutionDegree) arg0;

                String label =
                        infoExecutionDegree.getInfoDegreeCurricularPlan().getDegreeCurricularPlan()
                                .getPresentationName(infoExecutionDegree.getInfoExecutionYear().getExecutionYear());

                String value = infoExecutionDegree.getExternalId().toString();

                return new LabelValueBean(label, value);
            }

        });
View Full Code Here

Examples of org.fenixedu.academic.dto.InfoExecutionDegree

            if ((executionDegreeOIDString == null) || (executionDegreeOIDString.length() == 0)) {
                request.setAttribute(PresentationConstants.EXECUTION_DEGREE, null);
            }
        }

        InfoExecutionDegree infoExecutionDegree = null;

        if (executionDegreeOIDString != null) {
            infoExecutionDegree = ReadExecutionDegreeByOID.run(executionDegreeOIDString);

            if (infoExecutionDegree != null) {
                // Place it in request
                request.setAttribute(PresentationConstants.EXECUTION_DEGREE, infoExecutionDegree);
                request.setAttribute(PresentationConstants.EXECUTION_DEGREE_OID, infoExecutionDegree.getExternalId().toString());
            }
        }
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.InfoExecutionDegree

        request.setAttribute(PresentationConstants.CONTEXT_SELECTION_BEAN, context);
        request.setAttribute(PresentationConstants.ACADEMIC_INTERVAL, context.getAcademicInterval()
                .getResumedRepresentationInStringFormat());

        if (context.getExecutionDegree() != null) {
            request.setAttribute(PresentationConstants.EXECUTION_DEGREE, new InfoExecutionDegree(context.getExecutionDegree()));
        }

        request.setAttribute(PresentationConstants.CURRICULAR_YEAR, new InfoCurricularYear(context.getCurricularYear()));
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.InfoExecutionDegree

    /**
     * @param degreeOID
     * @return
     */
    public static InfoExecutionDegree getInfoExecutionDegree(User userView, String degreeOID) {
        InfoExecutionDegree infoExecutionDegree = null;

        infoExecutionDegree = ReadExecutionDegreeByOID.run(degreeOID);
        return infoExecutionDegree;
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.InfoExecutionDegree

        final List infoExecutionDegreeList = new ArrayList();
        final List<ExecutionDegree> executionDegrees = readExecutionDegrees(infoExecutionYear);

        for (ExecutionDegree executionDegree : executionDegrees) {
            final InfoExecutionDegree infoExecutionDegree = InfoExecutionDegree.newInfoFromDomain(executionDegree);
            infoExecutionDegreeList.add(infoExecutionDegree);
        }
        return infoExecutionDegreeList;
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.InfoExecutionDegree

            Iterator iterator = executionDegrees.iterator();
            infoExecutionDegreeList = new ArrayList<InfoExecutionDegree>();

            while (iterator.hasNext()) {
                ExecutionDegree executionDegree = (ExecutionDegree) iterator.next();
                InfoExecutionDegree infoExecutionDegree = InfoExecutionDegree.newInfoFromDomain(executionDegree);
                infoExecutionDegreeList.add(infoExecutionDegree);
            }
        }

        return infoExecutionDegreeList;
View Full Code Here

Examples of org.fenixedu.academic.dto.InfoExecutionDegree

    private static List getInfoExecutionDegrees(final List executionDegrees) {
        final List<InfoExecutionDegree> infoExecutionDegrees = new ArrayList<InfoExecutionDegree>(executionDegrees.size());
        for (int i = 0; i < executionDegrees.size(); i++) {
            final ExecutionDegree executionDegree = (ExecutionDegree) executionDegrees.get(i);
            final InfoExecutionDegree infoExecutionDegree = getInfoExecutionDegree(executionDegree);
            infoExecutionDegrees.add(infoExecutionDegree);
        }
        return infoExecutionDegrees;
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.InfoExecutionDegree

        List<ExecutionDegree> degrees =
                ExecutionDegree.filterByAcademicInterval(getAcademicIntervalFromParameter(getAcademicInterval()));
        List<InfoExecutionDegree> infoExecutionDegrees = new ArrayList<InfoExecutionDegree>();
        for (ExecutionDegree degree : degrees) {
            infoExecutionDegrees.add(new InfoExecutionDegree(degree));
        }
        Collections.sort(infoExecutionDegrees, new ComparatorByNameForInfoExecutionDegree());

        List<SelectItem> result = new ArrayList<SelectItem>(infoExecutionDegrees.size());
        result.add(new SelectItem(0, this.chooseMessage));
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.