Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.EnrolmentPeriod


            final HttpServletRequest request, final HttpServletResponse response) {
        ExecutionSemester semester = getDomainObject(request, "semester");
        String periodOids = request.getParameter("periods");
        EnrolmentPeriodConfigurationForEdit conf = null;
        for (String periodOid : periodOids.split(":")) {
            EnrolmentPeriod period = FenixFramework.getDomainObject(periodOid);
            if (conf == null) {
                conf = new EnrolmentPeriodConfigurationForEdit(period.getInterval(), semester);
                conf.addPeriod(period);
            } else if (conf.getInterval().equals(period.getInterval())) {
                conf.addPeriod(period);
            } else {
                // something went wrong, most likely someone changed a date concurrently. we just leave it out of the edit
            }
        }
View Full Code Here


            }
        }

        for (TreeSet<EnrolmentPeriod> periods : enrolmentPeriodsByDate.values()) {
            if (periods.size() == 1) {
                EnrolmentPeriod enrolmentPeriod = periods.first();
                warnings.add(BundleUtil.getString(Bundle.STUDENT,
                        "message.out.degree.enrolment.period.in.special.season.evaluations", degreeCurricularPlan.getDegree()
                                .getSigla(), enrolmentPeriod.getExecutionPeriod().getSemester().toString(), enrolmentPeriod
                                .getExecutionPeriod().getYear(), YearMonthDay.fromDateFields(enrolmentPeriod.getStartDate())
                                .toString(), YearMonthDay.fromDateFields(enrolmentPeriod.getEndDate()).toString()));
            } else {
                EnrolmentPeriod enrolmentPeriod = periods.first();
                warnings.add(BundleUtil.getString(Bundle.STUDENT,
                        "message.out.degree.enrolment.period.in.special.season.evaluations.simple", degreeCurricularPlan
                                .getDegree().getSigla(), YearMonthDay.fromDateFields(enrolmentPeriod.getStartDate()).toString(),
                        YearMonthDay.fromDateFields(enrolmentPeriod.getEndDate()).toString()));
            }
        }
        return warnings;
    }
View Full Code Here

    }

    private EnrolmentPeriodInImprovementOfApprovedEnrolment getEnrolmentPeriodInImprovementOfApprovedEnrolment(
            EnrolmentEvaluation enrolmentEvaluation) {
        final DegreeCurricularPlan degreeCurricularPlan = enrolmentEvaluation.getDegreeCurricularPlan();
        final EnrolmentPeriod enrolmentPeriodInImprovementOfApprovedEnrolment =
                enrolmentEvaluation.getExecutionPeriod().getEnrolmentPeriod(
                        EnrolmentPeriodInImprovementOfApprovedEnrolment.class, degreeCurricularPlan);
        if (enrolmentPeriodInImprovementOfApprovedEnrolment == null) {
            throw new DomainException(
                    "error.accounting.postingRules.ImprovementOfApprovedEnrolmentPR.enrolmentPeriodInImprovementOfApprovedEnrolment.must.not.be.null");
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.EnrolmentPeriod

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.