Examples of DegreeType


Examples of org.fenixedu.academic.domain.degree.DegreeType

    @Override
    public Object provide(Object source, Object currentValue) {

        FindPersonBean bean = (FindPersonBean) source;
        final DegreeType degreeType = bean.getDegreeType();
        return new ArrayList<Degree>(Degree.readAllByDegreeType(degreeType));
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

    public Object provide(Object source, Object currentValue) {

        DFACandidacyBean bean = (DFACandidacyBean) source;

        final List<Degree> result = new ArrayList<Degree>();
        DegreeType degreeType = bean.getDegreeType();
        if (degreeType != null) {
            for (Degree degree : Degree.readNotEmptyDegrees()) {
                if (degree.getDegreeType() == degreeType) {
                    result.add(degree);
                }
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

        this.chosenDegreeType = chosenDegreeType;
    }

    public UISelectItems getDegreeCurricularPlansSelectItems() {
        if (this.degreeCurricularPlansSelectItems == null) {
            final DegreeType degreeType = getDegreeType(getChosenDegreeType());

            final List<SelectItem> result;
            if (degreeType == null) {
                result = Collections.EMPTY_LIST;
            } else {
                result = new ArrayList<SelectItem>();

                final List<DegreeCurricularPlan> toShow =
                        DegreeCurricularPlan.readByDegreeTypeAndState(degreeType, DegreeCurricularPlanState.ACTIVE);
                Collections
                        .sort(toShow,
                                DegreeCurricularPlan.DEGREE_CURRICULAR_PLAN_COMPARATOR_BY_DEGREE_TYPE_AND_EXECUTION_DEGREE_AND_DEGREE_CODE);

                for (final DegreeCurricularPlan degreeCurricularPlan : toShow) {
                    result.add(new SelectItem(degreeCurricularPlan.getExternalId(), BundleUtil.getString(Bundle.ENUMERATION,
                            degreeType.getName())
                            + " "
                            + degreeCurricularPlan.getDegree().getName()
                            + " - "
                            + degreeCurricularPlan.getName()));
                }
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

        this.degreeCurricularPlansSelectItems = degreeCurricularPlansSelectItems;
    }

    public UISelectItems getBolonhaDegreeCurricularPlansSelectItems() {
        if (this.bolonhaDegreeCurricularPlansSelectItems == null) {
            final DegreeType bolonhaDegreeType = DegreeType.valueOf(getChosenDegreeType());

            final List<DegreeCurricularPlan> toShow = new ArrayList<DegreeCurricularPlan>();
            for (final Degree degree : Degree.readBolonhaDegrees()) {
                if (degree.getDegreeType() == bolonhaDegreeType) {
                    for (final DegreeCurricularPlan degreeCurricularPlan : degree.getActiveDegreeCurricularPlans()) {
                        if (!degreeCurricularPlan.isDraft()) {
                            toShow.add(degreeCurricularPlan);
                        }
                    }
                }
            }
            Collections.sort(toShow,
                    DegreeCurricularPlan.DEGREE_CURRICULAR_PLAN_COMPARATOR_BY_DEGREE_TYPE_AND_EXECUTION_DEGREE_AND_DEGREE_CODE);

            final List<SelectItem> result = new ArrayList<SelectItem>();
            for (final DegreeCurricularPlan degreeCurricularPlan : toShow) {
                result.add(new SelectItem(degreeCurricularPlan.getExternalId(), BundleUtil.getString(Bundle.ENUMERATION,
                        bolonhaDegreeType.getName())
                        + " "
                        + degreeCurricularPlan.getDegree().getName()
                        + " - "
                        + degreeCurricularPlan.getName()));
            }
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

            if (getAttend().getEnrolment() == null) {
                final Registration registration = getAttend().getRegistration();
                final StudentCurricularPlan studentCurricularPlan =
                        registration.getStudentCurricularPlan(getAttend().getExecutionPeriod());
                final DegreeCurricularPlan degreeCurricularPlan = studentCurricularPlan.getDegreeCurricularPlan();
                final DegreeType degreeType = degreeCurricularPlan.getDegreeType();
                if (degreeType == DegreeType.EMPTY) {
                    gradeScale = GradeScale.TYPE20;
                } else {
                    gradeScale = degreeCurricularPlan.getGradeScaleChain();
                }
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

        public boolean getAreRequiredFieldsFilledOut() {
            return (getActive() || getConcluded()) && getExecutionYear() != null;
        }

        public boolean applyFor(final DegreeType forDegreeType) {
            final DegreeType degreeType = getDegreeType();
            return degreeType == null || degreeType == forDegreeType;
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

        final List<SelectItem> result = new ArrayList<SelectItem>();
        if (selectedCurricularRuleType != null
                && selectedCurricularRuleType.equals(CurricularRuleType.ANY_CURRICULAR_COURSE.name())) {

            final List<Degree> allDegrees = Degree.readNotEmptyDegrees();
            final DegreeType bolonhaDegreeType =
                    (selectedDegreeType == null || selectedDegreeType.equals(NO_SELECTION_STRING)) ? null : DegreeType
                            .valueOf(selectedDegreeType);
            for (final Degree degree : allDegrees) {
                if (degree.isBolonhaDegree() && (bolonhaDegreeType == null || degree.getDegreeType() == bolonhaDegreeType)) {
                    result.add(new SelectItem(degree.getExternalId(), "["
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

    public static Spreadsheet generateReport(final StudentReportPredicate studentReportPredicate) {
        final Spreadsheet spreadsheet = new Spreadsheet("StudentDataAuthorizations");
        addHeaders(spreadsheet);
        final ExecutionYear executionYear = ExecutionYear.readCurrentExecutionYear();
        for (final Degree degree : Degree.readNotEmptyDegrees()) {
            final DegreeType degreeType = degree.getDegreeType();
            if (studentReportPredicate.applyFor(degreeType)) {
                processDegree(spreadsheet, studentReportPredicate, degree, executionYear);
            }
        }
        return spreadsheet;
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

    @Override
    public QueueJobResult execute() throws Exception {
        I18N.setLocale(Locale.getDefault());
        final ExecutionYear executionYear = getExecutionYear();
        final DegreeType degreeType = getDegreeType();
        final boolean concluded = getConcluded();
        final boolean active = getActive();

        final StudentReportPredicate studentReportPredicate = new StudentReportPredicate();
        studentReportPredicate.setExecutionYear(executionYear);
View Full Code Here

Examples of org.fenixedu.academic.domain.degree.DegreeType

        return DocumentRequestType.DIPLOMA_SUPPLEMENT_REQUEST;
    }

    @Override
    final public String getDescription() {
        final DegreeType degreeType = getDegreeType();
        final CycleType requestedCycle = getRequestedCycle();

        return getDescription(getAcademicServiceRequestType(),
                getDocumentRequestType().getQualifiedName() + "." + degreeType.name()
                        + (degreeType.isComposite() ? "." + requestedCycle.name() : ""));
    }
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.