Package org.joda.time

Examples of org.joda.time.YearMonthDay


        getMostRecentCompetenceCourseInformation().setAcronym(acronym);
    }

    public void changeCurricularStage(CurricularStage curricularStage) {
        if (curricularStage.equals(CurricularStage.APPROVED)) {
            super.setCreationDateYearMonthDay(new YearMonthDay());
        }
        setCurricularStage(curricularStage);
    }
View Full Code Here


        return isConclusionProcessed() ? getConclusionProcess().getConclusionYearMonthDay() : null;
    }

    @Override
    public YearMonthDay calculateConclusionDate() {
        YearMonthDay result = super.calculateConclusionDate();

        if (getRegistration().getWasTransition()) {
            final ExecutionSemester firstBolonhaTransitionExecutionPeriod =
                    ExecutionSemester.readFirstBolonhaTransitionExecutionPeriod();
            final YearMonthDay begin = firstBolonhaTransitionExecutionPeriod.getBeginDateYearMonthDay();

            if (result == null || result.isBefore(begin)) {
                result = begin;
            }
        }
View Full Code Here

                int month = Integer.parseInt(newDateString.substring(3, 5));
                int year = Integer.parseInt(newDateString.substring(6, 10));
                if (year == 0 || month == 0 || day == 0) {
                    return null;
                } else {
                    return new YearMonthDay(year, month, day);
                }
            } catch (NumberFormatException e) {
                return null;
            }
        }
View Full Code Here

        return mapping.findForward("viewRegistrationDetails");
    }

    private YearMonthDay getSituationDate() {
        final AcademicServiceRequestBean requestBean = (AcademicServiceRequestBean) getObjectFromViewState("serviceRequestBean");
        return requestBean == null ? new YearMonthDay() : requestBean.getSituationDate();
    }
View Full Code Here

    private AcademicServiceRequestBean getOrCreateAcademicServiceRequestBean(HttpServletRequest request) {
        AcademicServiceRequestBean bean = (AcademicServiceRequestBean) getObjectFromViewState("bean");
        if (bean == null) {
            Integer year = getIntegerFromRequest(request, "serviceRequestYear");
            if (year == null) {
                year = new YearMonthDay().getYear();
            }

            bean =
                    new AcademicServiceRequestBean(AcademicServiceRequestSituationType.valueOf(request
                            .getParameter("academicSituationType")), AccessControl.getPerson(), year);
View Full Code Here

        addParameter("nameOfMother", StringFormatter.prettyPrint(this.studentDiplomaInformation.getNameOfMother()));
        addParameter("birthLocale", StringFormatter.prettyPrint(this.studentDiplomaInformation.getBirthLocale()));

        addParameter("conclusionDate", this.studentDiplomaInformation.getConclusionDate().toString(DD_MMMM_YYYY, getLocale()));
        addParameter("institutionName", Bennu.getInstance().getInstitutionUnit().getName());
        addParameter("day", new YearMonthDay().toString(DD_MMMM_YYYY, getLocale()));
        addParameter("dissertationTitle", this.studentDiplomaInformation.getDissertationTitle());

        fillReportSpecificParameters();
    }
View Full Code Here

        setGuideEntry(null);
        setGratuitySituation(gratuitySituation);
    }

    public boolean isInsidePeriod(final YearMonthDay start, final YearMonthDay end) {
        final YearMonthDay date = getTransactionDateDateTime().toYearMonthDay();
        return !date.isBefore(start) && !date.isAfter(end);
    }
View Full Code Here

        }
    }

    private void createStudentCurricularPlan(final Person person, final DegreeCurricularPlan degreeCurricularPlan,
            final CycleType cycleType, final ExecutionYear executionYear) {
        final YearMonthDay startDay;
        final ExecutionSemester executionSemester;
        if (executionYear == null || executionYear.isCurrent()) {
            startDay = new YearMonthDay();
            executionSemester = ExecutionSemester.readActualExecutionSemester();
        } else {
            startDay = executionYear.getBeginDateYearMonthDay();
            executionSemester = executionYear.getFirstExecutionPeriod();
        }
View Full Code Here

    final public YearMonthDay getLastApprovedEnrolmentEvaluationDate() {
        final SortedSet<Enrolment> enrolments =
                new TreeSet<Enrolment>(Enrolment.COMPARATOR_BY_LATEST_ENROLMENT_EVALUATION_AND_ID);
        enrolments.addAll(getApprovedEnrolments());

        YearMonthDay internalEnrolmentExamDate =
                enrolments.isEmpty() ? null : enrolments.last().getLatestEnrolmentEvaluation().getExamDateYearMonthDay();

        YearMonthDay externalEnrolmentExamDate =
                getExternalEnrolmentsSet().isEmpty() ? null : getLastExternalApprovedEnrolmentEvaluationDate();

        if (internalEnrolmentExamDate == null && externalEnrolmentExamDate == null) {
            return null;
        }
View Full Code Here

    public YearMonthDay calculateConclusionDate() {
        if (isBolonha()) {
            return getLastStudentCurricularPlan().getLastApprovementDate();
        } else {
            YearMonthDay result = null;

            for (final StudentCurricularPlan plan : getStudentCurricularPlansSet()) {
                final YearMonthDay date = plan.getLastApprovementDate();
                if (date != null && (result == null || result.isBefore(date))) {
                    result = date;
                }
            }

            if (getDegreeType() == DegreeType.MASTER_DEGREE) {
                final LocalDate date = this.getDissertationThesisDiscussedDate();
                if (date != null && (result == null || result.isBefore(date))) {
                    result = new YearMonthDay(date);
                }

                if (result == null && hasState(RegistrationStateType.SCHOOLPARTCONCLUDED)) {
                    return getFirstRegistrationState(RegistrationStateType.SCHOOLPARTCONCLUDED).getStateDate().toYearMonthDay();
                }
View Full Code Here

TOP

Related Classes of org.joda.time.YearMonthDay

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.