Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.ExecutionYear


        }
    }

    public ActionForward downloadStatistics(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        ExecutionYear executionYear = getDomainObject(request, "executionYearId");
        Set<Degree> degreesToInclude =
                AcademicAccessRule.getDegreesAccessibleToFunction(AcademicOperationType.STUDENT_LISTINGS, Authenticate.getUser())
                        .collect(Collectors.toSet());

        final String filename = getResourceMessage("label.statistics") + "_" + executionYear.getName().replace('/', '-');
        final Spreadsheet spreadsheet = new Spreadsheet(filename);
        addStatisticsHeaders(spreadsheet);
        addStatisticsInformation(spreadsheet, executionYear, degreesToInclude);

        response.setContentType("application/vnd.ms-excel");
View Full Code Here


        } else {
            throw new DomainException("error.personWithoutParishOfBirth");
        }

        Degree degree = ((RegistryDiplomaRequest) getDocumentRequest()).getDegree();
        ExecutionYear year = ((RegistryDiplomaRequest) getDocumentRequest()).getConclusionYear();

        addParameter(
                "secondParagraph",
                MessageFormat.format(secondParagraph, studentGender,
                        BundleUtil.getString(Bundle.ENUMERATION, getLocale(), person.getIdDocumentType().getName()),
View Full Code Here

        return mapping.findForward("showPaymentPlans");
    }

    private void setRequestAttributesToShowPaymentPlans(HttpServletRequest request, final PostingRulesManagementForm form) {

        final ExecutionYear executionYear = FenixFramework.getDomainObject(form.getExecutionYearId());

        request.setAttribute("executionYears", new ArrayList<ExecutionYear>(rootDomainObject.getExecutionYearsSet()));
        request.setAttribute("paymentPlans", getDegreeCurricularPlan(request).getServiceAgreementTemplate()
                .getGratuityPaymentPlansFor(executionYear));
        request.setAttribute("degreeCurricularPlan", getDegreeCurricularPlan(request));
View Full Code Here

        final Teacher teacher = FenixFramework.getDomainObject(teacherID);
        if (teacher == null) {
            throw new DomainException("error.noTeacher");
        }

        final ExecutionYear executionYear;
        if (Strings.isNullOrEmpty(executionYearID)) {
            executionYear = ExecutionYear.readCurrentExecutionYear();
        } else {
            executionYear = FenixFramework.getDomainObject(executionYearID);
        }
View Full Code Here

        if (student == null) {
            throw new DomainException("error.degreeTransfer.person.number.is.not.empty.but.check.for.enrollment.on.institution");
        }

        ExecutionYear candidacyExecutionInterval = bean.getCandidacyExecutionInterval();

        for (Registration registration : student.getRegistrationsSet()) {
            StudentCurricularPlan lastStudentCurricularPlan = registration.getLastStudentCurricularPlan();

            if (lastStudentCurricularPlan.isActive(candidacyExecutionInterval.getPreviousExecutionYear())) {
                if ("LEIC-A 2006".equals(lastStudentCurricularPlan.getDegreeCurricularPlan().getName())
                        && "LEIC-T".equals(bean.getSelectedDegree().getSigla())) {
                    return false;
                }
View Full Code Here

        SortedSet<ExecutionYear> years = new TreeSet<ExecutionYear>();
        Map<String, Collection<Thesis>> theses = new HashMap<String, Collection<Thesis>>();

        ThesisFilterBean bean = getFilterBean(request);

        ExecutionYear year = bean.getYear();
        ThesisState state = bean.getState();

        Collection<Degree> degrees = bean.getDegreeOptions();

        Degree degree = bean.getDegree();
View Full Code Here

                    continue;
                }

                final Enrolment enrolment = thesis.getEnrolment();
                if (enrolment != null) {
                    final ExecutionYear executionYear = enrolment.getExecutionYear();

                    if (year != null && executionYear != year) {
                        continue;
                    }
View Full Code Here

            }
        }
    }

    protected Collection<Thesis> prepareMap(Thesis thesis, SortedSet<ExecutionYear> years, Map<String, Collection<Thesis>> theses) {
        ExecutionYear executionYear = thesis.getEnrolment().getExecutionYear();
        years.add(executionYear);

        Collection<Thesis> collection = theses.get(executionYear.getYear());
        if (collection == null) {
            collection = new TreeSet<Thesis>(new ThesisByNameComparator());
            theses.put(executionYear.getYear(), collection);
        }

        return collection;
    }
View Full Code Here

        final Set<Registration> registrations = new TreeSet<Registration>(Registration.COMPARATOR_BY_NUMBER_AND_ID);

        final Degree chosenDegree = searchbean.getDegree();
        final DegreeType chosenDegreeType = searchbean.getDegreeType();
        final ExecutionYear executionYear = searchbean.getExecutionYear();
        for (final ExecutionDegree executionDegree : executionYear.getExecutionDegreesSet()) {
            final DegreeCurricularPlan degreeCurricularPlan = executionDegree.getDegreeCurricularPlan();
            if (chosenDegreeType != null && degreeCurricularPlan.getDegreeType() != chosenDegreeType) {
                continue;
            }
            if (chosenDegree != null && degreeCurricularPlan.getDegree() != chosenDegree) {
View Full Code Here

        try {
            String filename = getResourceMessage("label.students");

            Degree degree = searchBean.getDegree();
            DegreeType degreeType = searchBean.getDegreeType();
            ExecutionYear executionYear = searchBean.getExecutionYear();
            if (degree != null) {
                filename += "_" + degree.getNameFor(executionYear).getContent().replace(' ', '_');
            } else if (degreeType != null) {
                filename += "_" + degreeType.getLocalizedName().replace(' ', '_');
            }
            filename += "_" + executionYear.getYear();

            response.setContentType("application/vnd.ms-excel");
            response.setHeader("Content-disposition", "attachment; filename=" + filename + ".xls");
            ServletOutputStream writer = response.getOutputStream();
View Full Code Here

TOP

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

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.