Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.ExecutionYear


        if (bean != null) {
            return bean;
        } else {
            ExecutionDegree degree = getExecutionDegree(request);
            ExecutionYear executionYear = getExecutionYear(request);

            if (executionYear == null) {
                executionYear = ExecutionYear.readCurrentExecutionYear();
            }
View Full Code Here


                getRenderedObject("thesisCreationPeriodFactoryExecutor");
        if (thesisCreationPeriodFactoryExecutor == null) {
            thesisCreationPeriodFactoryExecutor = new ThesisCreationPeriodFactoryExecutor();

            final String executionYearIdString = request.getParameter("executionYearId");
            final ExecutionYear executionYear;
            if (executionYearIdString == null) {
                if (thesisCreationPeriodFactoryExecutor.hasExecutionYear()) {
                    executionYear = thesisCreationPeriodFactoryExecutor.getExecutionYear();
                } else {
                    executionYear = ExecutionYear.readCurrentExecutionYear();
View Full Code Here

        final ThesisCreationPeriodFactoryExecutor thesisCreationPeriodFactoryExecutor =
                getThesisCreationPeriodFactoryExecutor(request);

        final ExecutionDegree executionDegree = thesisCreationPeriodFactoryExecutor.getExecutionDegree();
        if (executionDegree == null) {
            final ExecutionYear executionYear = thesisCreationPeriodFactoryExecutor.getExecutionYear();
            if (executionYear != null) {
                for (final ExecutionDegree otherExecutionDegree : executionYear.getExecutionDegreesSet()) {
                    final YearMonthDay beginThesisCreationPeriod = otherExecutionDegree.getBeginThesisCreationPeriod();
                    final YearMonthDay endThesisCreationPeriod = otherExecutionDegree.getEndThesisCreationPeriod();
                    if (beginThesisCreationPeriod != null) {
                        thesisCreationPeriodFactoryExecutor.setBeginThesisCreationPeriod(beginThesisCreationPeriod);
                    }
View Full Code Here

    }

    public ActionForward downloadDissertationsList(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        final String executionYearIdString = request.getParameter("executionYearId");
        final ExecutionYear executionYear = FenixFramework.getDomainObject(executionYearIdString);

        response.setContentType("application/vnd.ms-excel");
        response.setHeader("Content-disposition", "attachment; filename=dissertacoes" + executionYear.getYear().replace("/", "")
                + ".xls");
        ServletOutputStream writer = response.getOutputStream();

        exportDissertations(writer, executionYear);
View Full Code Here

        if (selectedPerson == null) {
            addActionMessage("info", request, "thesis.selectPerson.internal.required");
            return mapping.findForward("select-person");
        } else {
            Degree degree = getDegree(request);
            ExecutionYear executionYear = getExecutionYear(request);
            List<DegreeCurricularPlan> degreeCurricularPlansForYear = degree.getDegreeCurricularPlansForYear(executionYear);
            DegreeCurricularPlan degreeCurricularPlan = degreeCurricularPlansForYear.iterator().next();
            Thesis thesis = getThesis(request);
            final PersonTarget personTarget = bean.getTargetType();
            if (personTarget == PersonTarget.president) {
View Full Code Here

        ChooseRegistrationOrPhd chooseRegistrationOrPhd = getRenderedObject("choosePhdOrRegistration");
        if (chooseRegistrationOrPhd.getPhdRegistrationWrapper() == null) {
            request.setAttribute("studentID", chooseRegistrationOrPhd.getStudent().getExternalId());
            return null;
        }
        ExecutionYear currentExecutionYear = ExecutionYear.readCurrentExecutionYear();
        if (chooseRegistrationOrPhd.getPhdRegistrationWrapper().isRegistration()) {
            return chooseRegistrationOrPhd.getPhdRegistrationWrapper().getRegistration()
                    .getPersonalInformationBean(currentExecutionYear);
        } else {
            return chooseRegistrationOrPhd.getPhdRegistrationWrapper().getPhdIndividualProgramProcess()
View Full Code Here

        setThesisCount();
    }

    private void setThesisCount() {
        DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan();
        ExecutionYear executionYear = getExecutionDegree().getExecutionYear().getNextExecutionYear();
        for (Enrolment enrolment : degreeCurricularPlan.getDissertationEnrolments(executionYear)) {
            ThesisPresentationState state = ThesisPresentationState.getThesisPresentationState(enrolment.getThesis());
            if (!thesisExcludedStates.contains(state)) {
                incThesis(state);
            }
View Full Code Here

        @Override
        public Object provide(Object source, Object currentValue) {
            ((EnrolmentModelFactoryEditor) source).getRegistration().getStartExecutionYear();

            List<ExecutionYear> executionYearList = new ArrayList<ExecutionYear>();
            ExecutionYear iterator = ((EnrolmentModelFactoryEditor) source).getRegistration().getStartExecutionYear();
            while (ExecutionYear.readCurrentExecutionYear().getNextExecutionYear() != iterator) {
                executionYearList.add(iterator);
                iterator = iterator.getNextExecutionYear();
            }

            return executionYearList;
        }
View Full Code Here

        @Override
        public Object execute() {
            final ExecutionDegree executionDegree = getExecutionDegree();
            if (executionDegree == null) {
                final ExecutionYear executionYear = getExecutionYear();
                if (executionYear != null) {
                    for (final ExecutionDegree otherExecutionDegree : executionYear.getExecutionDegreesSet()) {
                        execute(otherExecutionDegree);
                    }
                }
            } else {
                execute(executionDegree);
View Full Code Here

    public ActionForward viewRegistrationCurriculum(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        final RegistrationCurriculumBean registrationCurriculumBean = getRegistrationCurriculumBeanFromViewState();

        final ExecutionYear currentExecutionYear = ExecutionYear.readCurrentExecutionYear();
        if (registrationCurriculumBean.getExecutionYear() == null
                && registrationCurriculumBean.getRegistration().hasAnyEnrolmentsIn(currentExecutionYear)) {
            registrationCurriculumBean.setExecutionYear(currentExecutionYear);
        }
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.