Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.StudentCurricularPlan


        return spreadsheet;
    }

    private void addInformation(final Spreadsheet spreadsheet, final Student student) {
        StudentCurricularPlan studentCurricularPlan = getStudentCurricularPlan(student, getExecutionSemester());

        final Row row = spreadsheet.addRow();
        row.setCell(student.getNumber());
        row.setCell(student.getPerson().getName());
        row.setCell(studentCurricularPlan.getDegreeType().getFilteredName());
        row.setCell(studentCurricularPlan.getName());
        row.setCell(studentCurricularPlan.getRegistration().getCycleType(getExecutionSemester().getExecutionYear())
                .getDescription());
        row.setCell(getApprovedECTS(student).toPlainString());
        row.setCell(getEnrolledECTS(student).toPlainString());
        row.setCell(getApprovedGradeValuesSum(student));
        row.setCell(getNumberOfApprovedCourses(student));
View Full Code Here


public class ReadStudentCurriculum {

    protected List run(String executionDegreeCode, String studentCurricularPlanID) throws FenixServiceException {

        final StudentCurricularPlan studentCurricularPlan = FenixFramework.getDomainObject(studentCurricularPlanID);
        if (studentCurricularPlan == null) {
            throw new NonExistingServiceException("error.readStudentCurriculum.noStudentCurricularPlan");
        }

        final List<InfoEnrolment> result = new ArrayList<InfoEnrolment>(studentCurricularPlan.getEnrolmentsCount());
        for (final Enrolment enrolment : studentCurricularPlan.getEnrolmentsSet()) {
            result.add(InfoEnrolment.newInfoFromDomain(enrolment));
        }
        return result;
    }
View Full Code Here

        }

        return (List) CollectionUtils.collect(students, new Transformer() {
            @Override
            public Object transform(Object arg0) {
                StudentCurricularPlan studentCurricularPlan = (StudentCurricularPlan) arg0;
                return InfoStudentCurricularPlan.newInfoFromDomain(studentCurricularPlan);
            }

        });
    }
View Full Code Here

        // FIXME: There's a problem with data of the Graduation Students
        // For now only Master Degree Students can view their Curriculum

        while (iterator.hasNext()) {
            StudentCurricularPlan studentCurricularPlan = (StudentCurricularPlan) iterator.next();

            result.add(InfoStudentCurricularPlan.newInfoFromDomain(studentCurricularPlan));
        }

        if (result.size() == 0) {
View Full Code Here

        check(RolePredicates.MANAGER_OR_OPERATOR_PREDICATE);

        if (!StringUtils.isEmpty(destinationCurriculumGroupID)) {

            CurriculumGroup curriculumGroup = (CurriculumGroup) FenixFramework.getDomainObject(destinationCurriculumGroupID);
            StudentCurricularPlan studentCurricularPlan = curriculumGroup.getStudentCurricularPlan();

            for (final String enrollmentIDToTransfer : enrollmentIDsToTransfer) {
                Enrolment enrolment = (Enrolment) FenixFramework.getDomainObject(enrollmentIDToTransfer);

                fixEnrolmentCurricularCourse(studentCurricularPlan, enrolment);

                enrolment.setCurriculumGroup(curriculumGroup);
                enrolment.setStudentCurricularPlan(null);
            }

        } else {

            final StudentCurricularPlan studentCurricularPlan =
                    FenixFramework.getDomainObject(destinationStudentCurricularPlanId);
            for (final String enrollmentIDToTransfer : enrollmentIDsToTransfer) {
                final Enrolment enrollment = (Enrolment) FenixFramework.getDomainObject(enrollmentIDToTransfer);

                fixEnrolmentCurricularCourse(studentCurricularPlan, enrollment);
View Full Code Here

public class DeleteStudentCurricularPlan {

    @Atomic
    public static void run(final String studentCurricularPlanId) throws DomainException, NonExistingServiceException {
        check(RolePredicates.MANAGER_OR_OPERATOR_PREDICATE);
        final StudentCurricularPlan studentCurricularPlan = FenixFramework.getDomainObject(studentCurricularPlanId);

        if (studentCurricularPlan != null) {

            for (Enrolment enrolment : studentCurricularPlan.getEnrolmentsSet()) {
                for (EnrolmentEvaluation evaluation : enrolment.getEvaluationsSet()) {
                    evaluation.setEnrolmentEvaluationState(EnrolmentEvaluationState.TEMPORARY_OBJ);
                }
            }

            studentCurricularPlan.delete();
        } else {
            throw new NonExistingServiceException();
        }
    }
View Full Code Here

     * conclude first cycle
     *
     */
    @Atomic
    public static void run(final Person person, final CycleEnrolmentBean cycleBean) {
        final StudentCurricularPlan studentCurricularPlan = cycleBean.getStudentCurricularPlan();
        studentCurricularPlan.enrolInAffinityCycle(cycleBean.getCycleCourseGroupToEnrol(), cycleBean.getExecutionPeriod());
    }
View Full Code Here

    public static InfoStudentCurricularPlan run(final String studentCurricularPlanID) throws FenixServiceException {
        if (studentCurricularPlanID == null) {
            throw new FenixServiceException("Persistence layer error");
        }

        final StudentCurricularPlan studentCurricularPlan = FenixFramework.getDomainObject(studentCurricularPlanID);
        if (studentCurricularPlan == null) {
            throw new NonExistingServiceException();
        }

        return InfoStudentCurricularPlan.newInfoFromDomain(studentCurricularPlan);
View Full Code Here

    public Date getCalendarStartDate() {
        final ExecutionSemester executionSemester = getExecutionPeriod();
        final String evaluationTypeClassname = getEvaluationTypeClassname();
        final Registration registration = getStudent();
        final StudentCurricularPlan studentCurricularPlan =
                (registration != null) ? registration.getActiveStudentCurricularPlan() : null;
        final DegreeCurricularPlan degreeCurricularPlan =
                (studentCurricularPlan != null) ? studentCurricularPlan.getDegreeCurricularPlan() : null;
        final ExecutionDegree executionDegree = findExecutinDegree(degreeCurricularPlan, executionSemester);
        if (evaluationTypeClassname == null || evaluationTypeClassname.length() == 0 || executionDegree == null) {
            if (executionDegree != null && executionSemester.getSemester().intValue() == 1
                    && executionDegree.getPeriodLessonsFirstSemester() != null) {
                return executionDegree.getPeriodLessonsFirstSemester().getStart();
View Full Code Here

    }

    public Date getCalendarEndDate() {
        final ExecutionSemester executionSemester = getExecutionPeriod();
        final String evaluationTypeClassname = getEvaluationTypeClassname();
        final StudentCurricularPlan studentCurricularPlan = getStudent().getActiveStudentCurricularPlan();
        final DegreeCurricularPlan degreeCurricularPlan =
                (studentCurricularPlan != null) ? studentCurricularPlan.getDegreeCurricularPlan() : null;
        final ExecutionDegree executionDegree = findExecutinDegree(degreeCurricularPlan, executionSemester);
        if (evaluationTypeClassname == null || evaluationTypeClassname.length() == 0 || executionDegree == null) {
            if (executionDegree != null && executionSemester.getSemester().intValue() == 1
                    && executionDegree.getPeriodExamsFirstSemester() != null) {
                return executionDegree.getPeriodExamsFirstSemester().getEnd();
View Full Code Here

TOP

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

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.