Package org.fenixedu.academic.domain

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


        }

        Thesis thesis = getThesis(request);
        ThesisBean bean = new ThesisBean(thesis);

        Degree degree = getDegreeCurricularPlan(request).getDegree();
        bean.setDegree(degree);

        PersonTarget targetType = PersonTarget.valueOf(target);
        bean.setTargetType(targetType);
View Full Code Here


    public Set<StudentCurricularPlan> search() {
        final ExecutionYear executionYear = getExecutionYear();
        final Set<StudentCurricularPlan> studentCurricularPlans = new HashSet<StudentCurricularPlan>();
        if (degreeDomainReferences != null) {
            for (final Degree degreeDomainReference : degreeDomainReferences) {
                final Degree degree = degreeDomainReference;
                for (final DegreeCurricularPlan degreeCurricularPlan : degree.getDegreeCurricularPlansSet()) {
                    if (degreeCurricularPlan.isActive()) {
                        for (final StudentCurricularPlan studentCurricularPlan : degreeCurricularPlan
                                .getStudentCurricularPlansSet()) {
                            if (studentCurricularPlan.hasEnrolments(executionYear)) {
                                studentCurricularPlans.add(studentCurricularPlan);
View Full Code Here

        ChooseDegreeBean chooseDegreeBean = (ChooseDegreeBean) getObjectFromViewState("choose.degree.bean");
        if (chooseDegreeBean == null) {
            chooseDegreeBean = new ChooseDegreeBean(getProcess(request));
            String degreeEid = request.getParameter("degreeEid");
            if (degreeEid != null && !degreeEid.isEmpty()) {
                Degree degree = FenixFramework.getDomainObject(degreeEid);
                chooseDegreeBean.setDegree(degree);
            }
        }
        request.setAttribute("chooseDegreeBean", chooseDegreeBean);
    }
View Full Code Here

    }

    @Override
    protected Predicate<IndividualCandidacyProcess> getChildProcessSelectionPredicate(final CandidacyProcess process,
            HttpServletRequest request) {
        final Degree selectedDegree = getChooseDegreeBean(request).getDegree();
        final MobilityProgram mobilityProgram = getChooseMobilityProgramBean(request).getMobilityProgram();
        if (selectedDegree == null) {
            if (mobilityProgram == null) {
                return Predicates.alwaysTrue();
            } else {
View Full Code Here

    }

    @Override
    protected Predicate<IndividualCandidacyProcess> getChildProcessSelectionPredicate(final CandidacyProcess process,
            HttpServletRequest request) {
        final Degree selectedDegree = getChooseDegreeBean(request).getDegree();
        if (selectedDegree == null) {
            return Predicates.alwaysTrue();
        } else {
            return new Predicate<IndividualCandidacyProcess>() {
                @Override
View Full Code Here

        return registration;
    }

    protected void createRaidesInformation(Registration registration) {
        Degree degree = registration.getDegree();
        ExecutionYear startExecutionYear = registration.getStartExecutionYear();
        ExecutionDegree executionDegree =
                ExecutionDegree.getAllByDegreeAndExecutionYear(degree, startExecutionYear.getName()).iterator().next();
        StudentCandidacy studentCandidacy = null;
View Full Code Here

        final StringBuilder stringBuilder = new StringBuilder();
        final Student student = person.getStudent();
        if (student != null) {
            final Set<String> names = new TreeSet<String>();
            for (final Registration registration : student.getRegistrationsSet()) {
                final Degree degree = registration.getDegree();
                names.add(degree.getSigla());
            }
            for (final String name : names) {
                if (stringBuilder.length() > 0) {
                    stringBuilder.append(", ");
                }
View Full Code Here

            throw new DomainException(
                    "error.curricularRules.executors.ruleExecutors.AnyCurricularCourseExecutor.unexpected.degree.module.to.evaluate");
        }

        final ExecutionSemester executionSemester = enrolmentContext.getExecutionPeriod();
        final Degree degree = curricularCourseToEnrol.getDegree();

        boolean result = true;

        result &=
                rule.hasMinimumCredits() ? rule.getMinimumCredits() <= curricularCourseToEnrol.getEctsCredits(executionSemester) : true;

        result &=
                rule.hasMaximumCredits() ? rule.getMaximumCredits() >= curricularCourseToEnrol.getEctsCredits(executionSemester) : true;

        result &=
                rule.getDegree() != null ? rule.getDegree() == degree : rule.hasBolonhaDegreeType() ? degree.getDegreeType() == rule
                        .getBolonhaDegreeType() : true;

        if (rule.getDepartmentUnit() != null) {
            final DepartmentUnit departmentUnit =
                    curricularCourseToEnrol.getCompetenceCourse().getDepartmentUnit(executionSemester);
View Full Code Here

        final Over23IndividualCandidacyProcessBean bean = getIndividualCandidacyProcessBean();
        request.setAttribute(getIndividualCandidacyProcessBeanName(), bean);

        final String degreeId = ((CandidacyForm) actionForm).getDegreeToDelete();
        if (degreeId != null) {
            final Degree degree = getDegree(degreeId);
            if (bean.containsDegree(degree)) {
                bean.removeDegree(degree);
            }
        }
View Full Code Here

    @Override
    protected List<IndividualCandidacyProcess> getChildProcesses(final CandidacyProcess process, HttpServletRequest request) {
        Collection<IndividualCandidacyProcess> processes = process.getChildProcessesSet();
        List<IndividualCandidacyProcess> selectedDegreesIndividualCandidacyProcesses =
                new ArrayList<IndividualCandidacyProcess>();
        Degree selectedDegree = getChooseDegreeBean(request).getDegree();

        for (IndividualCandidacyProcess child : processes) {
            if ((selectedDegree == null)
                    || ((SecondCycleIndividualCandidacyProcess) child).getCandidacy().getSelectedDegreesSet()
                            .contains(selectedDegree)) {
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.