Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.Degree$ComparatorByDegreeTypeAndNameAndId


                    String key = (String) value;
                    if (key == null || key.isEmpty()) {
                        return null;
                    }
                    final String[] values = key.split(":");
                    final Degree degree = FenixFramework.getDomainObject(values[0]);
                    final ExecutionYear year = FenixFramework.getDomainObject(values[1]);
                    return new DegreeByExecutionYearBean(degree, year);
                }

                @Override
View Full Code Here


            LocalDate localDate =
                    new LocalDate(Integer.parseInt(dateFields[2]), Integer.parseInt(dateFields[1]),
                            Integer.parseInt(dateFields[0]));

            Degree degree = getDegree();

            try {
                CreateDegreeOfficialPublication.run(degree, localDate, officialReference);
            } catch (IllegalDataAccessException e) {
                this.addErrorMessage(BundleUtil.getString(Bundle.SCIENTIFIC, "error.notAuthorized"));
View Full Code Here

        final ExecutionYear executionYear = ExecutionYear.readCurrentExecutionYear();
        final Collection<ExecutionDegree> executionDegrees = executionYear.getExecutionDegreesSet();
        final List<InfoExecutionDegree> infoExecutionDegrees = new ArrayList<InfoExecutionDegree>();
        for (final ExecutionDegree executionDegree : executionDegrees) {
            final Degree degree = executionDegree.getDegreeCurricularPlan().getDegree();
            if (degree.getDegreeType().equals(typeOfCourse)) {
                infoExecutionDegrees.add(getInfoExecutionDegree(executionDegree));
            }
        }
        return infoExecutionDegrees;
    }
View Full Code Here

    public List<Degree> getFilteredPreBolonhaDegrees() {
        final List<Degree> orderedResult = Degree.readOldDegrees();

        final Iterator<Degree> degrees = orderedResult.iterator();
        while (degrees.hasNext()) {
            final Degree degree = degrees.next();
            if (degree.getDegreeType() != DegreeType.DEGREE) {
                degrees.remove();
            }
        }

        Collections.sort(orderedResult, Degree.COMPARATOR_BY_DEGREE_TYPE_AND_NAME_AND_ID);
View Full Code Here

            final StudentCurricularPlan studentCurricularPlan, final ExecutionYear executionYear) {
        final Registration registration = studentCurricularPlan.getRegistration();
        final Student student = registration.getStudent();
        final Person person = student.getPerson();
        final DegreeCurricularPlan degreeCurricularPlan = studentCurricularPlan.getDegreeCurricularPlan();
        final Degree degree = degreeCurricularPlan.getDegree();
        final Branch branch = studentCurricularPlan.getBranch();
        StudentDataShareAuthorization dataAccess =
                student.getPersonalDataAuthorizationAt(executionYear.getEndDateYearMonthDay().toDateTimeAtMidnight());
        final Row row = spreadsheet.addRow();
        row.setCell(student.getNumber().toString());
        row.setCell(person.getName());
        row.setCell(degree.getDegreeType().getLocalizedName() + " "
                + degree.getNameFor(registration.getStartExecutionYear()).getContent());
        row.setCell(branch == null ? "" : branch.getName());
        row.setCell("" + registration.getCurricularYear(executionYear));
        row.setCell("" + registration.getAverage(executionYear));
        if (registration.isConcluded()) {
            row.setCell(executionYear.getYear());
View Full Code Here

        }
        return degree;
    }

    public DegreeCurricularPlan getDegreeCurricularPlan() {
        final Degree degree = getDegree();
        final String degreeCurricularPlanID = getDegreeCurricularPlanID();
        if (degree != null && degreeCurricularPlanID != null) {
            for (final DegreeCurricularPlan degreeCurricularPlan : degree.getDegreeCurricularPlansSet()) {
                if (degreeCurricularPlanID.equals(degreeCurricularPlan.getExternalId())) {
                    return degreeCurricularPlan;
                }
            }
        }
View Full Code Here

    }

    public List<SelectItem> getDegreeCurricularPlanSelectItems() {
        final List<SelectItem> degreeCurricularPlanSelectItems = new ArrayList<SelectItem>();

        final Degree degree = getDegree();
        if (degree != null) {
            for (final DegreeCurricularPlan degreeCurricularPlan : degree.getActiveDegreeCurricularPlans()) {
                degreeCurricularPlanSelectItems.add(new SelectItem(degreeCurricularPlan.getExternalId(), degreeCurricularPlan
                        .getName()));
            }
        }
View Full Code Here

    public static Registration createRegistrationWithCustomStudentNumber(final Person person,
            final DegreeCurricularPlan degreeCurricularPlan, final StudentCandidacy studentCandidacy,
            final RegistrationProtocol protocol, final CycleType cycleType, final ExecutionYear executionYear,
            Integer studentNumber) {
        final Degree degree = degreeCurricularPlan == null ? null : degreeCurricularPlan.getDegree();
        Registration registration = new Registration(person, calculateStartDate(executionYear), studentNumber, degree);
        registration.setRegistrationYear(executionYear == null ? ExecutionYear.readCurrentExecutionYear() : executionYear);
        registration.setRequestedChangeDegree(false);
        registration.setRequestedChangeBranch(false);
        registration.setRegistrationProtocol(protocol == null ? RegistrationProtocol.getDefault() : protocol);
View Full Code Here

        if (studentCandidacy != null) {
            super.setEntryPhase(studentCandidacy.getEntryPhase());
            super.setIngression(studentCandidacy.getIngression());

            if (studentCandidacy.getIngression() == Ingression.RI) {
                final Degree sourceDegree = studentCandidacy.getDegreeCurricularPlan().getEquivalencePlan().getSourceDegree();
                Registration registration = getStudent().readRegistrationByDegree(sourceDegree);
                if (registration == null) {
                    final Collection<Registration> registrations = getStudent().getRegistrationsByDegreeType(DegreeType.DEGREE);
                    registrations.remove(this);
                    registration = registrations.size() == 1 ? registrations.iterator().next() : null;
View Full Code Here

            if (person == null || person.getStudent() == null) {
                throw new DomainException("error.registration.preBolonhaSourceDegreeNotFound");
            }
            if (degreeCurricularPlan.getEquivalencePlan() != null) {
                final Student student = person.getStudent();
                final Degree sourceDegree = degreeCurricularPlan.getEquivalencePlan().getSourceDegreeCurricularPlan().getDegree();

                Registration sourceRegistration = person.getStudent().readRegistrationByDegree(sourceDegree);
                if (sourceRegistration == null) {
                    final Collection<Registration> registrations = student.getRegistrationsByDegreeType(DegreeType.DEGREE);
                    registrations.removeAll(student.getRegistrationsFor(degreeCurricularPlan));
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.Degree$ComparatorByDegreeTypeAndNameAndId

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.