Examples of YearMonthDay


Examples of org.joda.time.YearMonthDay

    public ActionForward viewAcademicCalendar(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        CalendarEntryBean bean = getRenderedObject("datesToDisplayID");

        YearMonthDay beginDate = bean.getBeginDateToDisplayInYearMonthDayFormat();
        YearMonthDay endDate = bean.getEndDateToDisplayInYearMonthDayFormat();

        if (beginDate.isAfter(endDate)) {
            addActionMessage(request, "error.begin.after.end");
            ExecutionYear currentExecutionYear = ExecutionYear.readCurrentExecutionYear();
            Partial begin = CalendarEntryBean.getPartialFromYearMonthDay(currentExecutionYear.getBeginDateYearMonthDay());
View Full Code Here

Examples of org.joda.time.YearMonthDay

    // Private Methods

    private ActionForward generateGanttDiagram(ActionMapping mapping, HttpServletRequest request, CalendarEntryBean bean) {

        YearMonthDay beginDate = bean.getBeginDateToDisplayInYearMonthDayFormat();
        YearMonthDay endDate = bean.getEndDateToDisplayInYearMonthDayFormat();

        endDate = endDate.plusMonths(1).withDayOfMonth(1).minusDays(1);

        List<GanttDiagramEvent> newEntries = generateEntriesTree(request, bean.getRootEntry(), beginDate, endDate);
        GanttDiagram diagram = GanttDiagram.getNewTotalGanttDiagram(newEntries, beginDate, endDate);

        request.setAttribute("entryBean", bean);
View Full Code Here

Examples of org.joda.time.YearMonthDay

        try {
            response.setContentType("plain/text");
            final ServletOutputStream writer = response.getOutputStream();
            // final PrintWriter printWriter = response.getWriter();
            final StringBuilder fileName = new StringBuilder();
            final YearMonthDay currentDate = new YearMonthDay();
            fileName.append("listaDeAlunos_");
            fileName.append(executionCourseAttendsBean.getExecutionCourse().getSigla()).append("_")
                    .append(currentDate.getDayOfMonth());
            fileName.append("-").append(currentDate.getMonthOfYear()).append("-").append(currentDate.getYear());
            fileName.append(".tsv");
            response.setHeader("Content-disposition", "attachment; filename=" + StringNormalizer.normalize(fileName.toString()));
            // printWriter.print(fileContents);
            // printWriter.flush();
            writer.write(fileContents.getBytes());
View Full Code Here

Examples of org.joda.time.YearMonthDay

        addParameter("langSuffix", getLanguage().getLanguage());
    }

    protected void fillGroup7() {
        final UniversityUnit institutionsUniversityUnit = UniversityUnit.getInstitutionsUniversityUnit();
        addParameter("day", new YearMonthDay().toString(DD_SLASH_MM_SLASH_YYYY, getLocale()));
        addParameter("universityPrincipal",
                institutionsUniversityUnit.getInstitutionsUniversityResponsible(FunctionType.PRINCIPAL));
    }
View Full Code Here

Examples of org.joda.time.YearMonthDay

    public ActionForward index(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request,
            final HttpServletResponse response) {

        Integer over23Size =
                IndividualCandidacyPaymentCode.getAvailablePaymentCodes(PaymentCodeType.OVER_23_INDIVIDUAL_CANDIDACY_PROCESS,
                        new YearMonthDay()).size();

        Integer externalDegreeCandidacyForGraduatedPersonSize =
                IndividualCandidacyPaymentCode.getAvailablePaymentCodes(
                        PaymentCodeType.EXTERNAL_DEGREE_CANDIDACY_FOR_GRADUATED_PERSON_INDIVIDUAL_PROCESS, new YearMonthDay())
                        .size();
        Integer internalDegreeCandidacyForGraduatedPersonSize =
                IndividualCandidacyPaymentCode.getAvailablePaymentCodes(
                        PaymentCodeType.INTERNAL_DEGREE_CANDIDACY_FOR_GRADUATED_PERSON_INDIVIDUAL_PROCESS, new YearMonthDay())
                        .size();

        Integer externalDegreeChangeSize =
                IndividualCandidacyPaymentCode.getAvailablePaymentCodes(
                        PaymentCodeType.EXTERNAL_DEGREE_CHANGE_INDIVIDUAL_CANDIDACY_PROCESS, new YearMonthDay()).size();
        Integer internalDegreeChangeSize =
                IndividualCandidacyPaymentCode.getAvailablePaymentCodes(
                        PaymentCodeType.INTERNAL_DEGREE_CHANGE_INDIVIDUAL_CANDIDACY_PROCESS, new YearMonthDay()).size();

        Integer externalDegreeTransferSize =
                IndividualCandidacyPaymentCode.getAvailablePaymentCodes(
                        PaymentCodeType.EXTERNAL_DEGREE_TRANSFER_INDIVIDUAL_CANDIDACY_PROCESS, new YearMonthDay()).size();
        Integer internalDegreeTransferSize =
                IndividualCandidacyPaymentCode.getAvailablePaymentCodes(
                        PaymentCodeType.INTERNAL_DEGREE_TRANSFER_INDIVIDUAL_CANDIDACY_PROCESS, new YearMonthDay()).size();

        Integer secondCycleSize =
                IndividualCandidacyPaymentCode.getAvailablePaymentCodes(
                        PaymentCodeType.SECOND_CYCLE_INDIVIDUAL_CANDIDACY_PROCESS, new YearMonthDay()).size();

        request.setAttribute("over23Size", over23Size);
        request.setAttribute("externalDegreeCandidacyForGraduatedPersonSize", externalDegreeCandidacyForGraduatedPersonSize);
        request.setAttribute("internalDegreeCandidacyForGraduatedPersonSize", internalDegreeCandidacyForGraduatedPersonSize);
        request.setAttribute("externalDegreeChangeSize", externalDegreeChangeSize);
View Full Code Here

Examples of org.joda.time.YearMonthDay

        department.setRealName(bean.getRealName());
        department.setName(bean.getName());
        department.setRealNameEn(bean.getRealNameEn());
        department.setRootDomainObject(Bennu.getInstance());
        DepartmentUnit.createNewInternalDepartmentUnit(department.getNameI18n(), null, null, department.getCode(),
                new YearMonthDay(), null, Bennu.getInstance().getInstitutionUnit().getSubUnits().stream()
                        .filter(x -> ((AggregateUnit) x).getName().equals("Departments")).findAny()
                        .orElse(Bennu.getInstance().getInstitutionUnit()),
                AccountabilityType.readByType(AccountabilityTypeEnum.ACADEMIC_STRUCTURE), null, department, null, false, null);

    }
View Full Code Here

Examples of org.joda.time.YearMonthDay

    }

    @Atomic(mode = TxMode.WRITE)
    private void createScientificArea(AssociatedObjectsBean bean) {
        ScientificAreaUnit.createNewInternalScientificArea(MultiLanguageString.fromLocalizedString(bean.getNameLS()), null, null,
                bean.getCode(), new YearMonthDay(), null,
                bean.getDepartment().getDepartmentUnit(),
                AccountabilityType.readByType(AccountabilityTypeEnum.ORGANIZATIONAL_STRUCTURE),
                null, null, false, null);
    }
View Full Code Here

Examples of org.joda.time.YearMonthDay

    }

    @Atomic(mode = TxMode.WRITE)
    private void createCompetenceCourseGroup(AssociatedObjectsBean bean) {
        CompetenceCourseGroupUnit.createNewInternalCompetenceCourseGroupUnit(
                MultiLanguageString.fromLocalizedString(bean.getNameLS()), null, null, bean.getCode(), new YearMonthDay(), null,
                bean.getScientificAreaUnit(), AccountabilityType.readByType(AccountabilityTypeEnum.ORGANIZATIONAL_STRUCTURE),
                null, null, false, null);
    }
View Full Code Here

Examples of org.joda.time.YearMonthDay

        if (registration != null && !registration.isBolonha()) {
            return;
        }

        YearMonthDay registrationConclusionDate =
                registration != null ? registration.getLastStudentCurricularPlan().getCycle(CycleType.THIRD_CYCLE)
                        .getConclusionDate() : null;

        if (registration != null && registrationConclusionDate == null) {
            registrationConclusionDate =
                    registration.getLastStudentCurricularPlan().calculateConclusionDate(CycleType.THIRD_CYCLE);
        }

        row.setCell(String.valueOf(registration != null && !registration.isCanceled()));

        // Ciclo
        row.setCell(CycleType.THIRD_CYCLE.getDescription());

        // Concluído
        row.setCell(String.valueOf(process.isConcluded()));

        // Média do Ciclo
        String grade = concluded ? process.getFinalGrade().getLocalizedName() : "n/a";
        if (concluded && registration != null && registration.isConcluded()) {
            grade +=
                    " "
                            + registration.getLastStudentCurricularPlan().getCycle(CycleType.THIRD_CYCLE)
                                    .getCurriculum(registrationConclusionDate.toDateTimeAtMidnight()).getAverage()
                                    .toPlainString();
        }
        row.setCell(grade);

        // Data de conclusão
View Full Code Here

Examples of org.joda.time.YearMonthDay

    }

    @Override
    protected YearMonthDay getStartDate() {
        final ExecutionInterval interval = getCandidacyExecutionInterval().getExecutionYear();
        return interval.isCurrent() ? new YearMonthDay() : interval.getBeginDateYearMonthDay();
    }
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.