Package org.fenixedu.academic.domain.phd

Examples of org.fenixedu.academic.domain.phd.ManageEnrolmentsBean


        Set<AcademicProgram> programs =
                AcademicAccessRule.getProgramsAccessibleToFunction(AcademicOperationType.MANAGE_PHD_ENROLMENT_PERIODS,
                        Authenticate.getUser()).collect(Collectors.toSet());

        final ManageEnrolmentsBean bean = (ManageEnrolmentsBean) source;

        final List<DegreeCurricularPlan> result = new ArrayList<DegreeCurricularPlan>();

        for (final ExecutionDegree executionDegree : bean.getSemester().getExecutionYear()
                .getExecutionDegreesByType(DegreeType.BOLONHA_ADVANCED_SPECIALIZATION_DIPLOMA)) {

            final DegreeCurricularPlan degreeCurricularPlan = executionDegree.getDegreeCurricularPlan();

            if (!hasEnrolmentPeriod(degreeCurricularPlan, bean.getSemester())
                    && programs.contains(degreeCurricularPlan.getDegree().getPhdProgram())) {
                result.add(degreeCurricularPlan);
            }

        }
View Full Code Here


        return new DomainObjectKeyConverter();
    }

    @Override
    public Object provide(Object source, Object currentValue) {
        final ManageEnrolmentsBean bean = (ManageEnrolmentsBean) source;

        final Collection<ExecutionSemester> result = new TreeSet<ExecutionSemester>(new ReverseComparator());

        for (final ExecutionYear executionYear : bean.getCurricularCourse().getDegreeCurricularPlan().getExecutionYears()) {
            result.addAll(executionYear.getExecutionPeriodsSet());
        }

        return result;
    }
View Full Code Here

    }

    @Override
    protected PhdIndividualProgramProcess executeActivity(PhdIndividualProgramProcess process, User userView, Object object) {

        final ManageEnrolmentsBean bean = (ManageEnrolmentsBean) object;
        final StudentCurricularPlan scp = process.getRegistration().getLastStudentCurricularPlan();
        final String mailBody = buildBody(bean);

        scp.enrol(bean.getSemester(), Collections.<IDegreeModuleToEvaluate> emptySet(),
                getCurriculumModules(bean.getEnrolmentsToValidate()), CurricularRuleLevel.ENROLMENT_WITH_RULES);

        AlertService.alertStudent(process, AlertMessage.create(bean.getMailSubject()).isKey(false), AlertMessage.create(mailBody)
                .isKey(false));

        // TODO: wich group should be used in academic office?
        // AlertService.alertAcademicOffice(process, permissionType,
        // subjectKey, bodyKey)
View Full Code Here

    }

    @Override
    protected PhdIndividualProgramProcess executeActivity(PhdIndividualProgramProcess process, User userView, Object object) {

        final ManageEnrolmentsBean bean = (ManageEnrolmentsBean) object;

        for (final Enrolment enrolment : bean.getEnrolmentsToValidate()) {
            if (process.getRegistration().hasEnrolments(enrolment)) {
                enrolment.setEnrolmentCondition(EnrollmentCondition.VALIDATED);
            }
        }

        AlertService.alertStudent(process, AlertMessage.create(bean.getMailSubject()).isKey(false),
                AlertMessage.create(buildBody(bean)).isKey(false));

        // TODO: wich group should be used in academic office?
        // AlertService.alertAcademicOffice(process, permissionType,
        // subjectKey, bodyKey)
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.phd.ManageEnrolmentsBean

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.