Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.ExecutionDegree


        request.setAttribute(PresentationConstants.EXECUTION_PERIOD_OID, infoExecutionPeriod.getExternalId().toString());
        request.setAttribute("semester", infoExecutionPeriod.getSemester());

        final ExecutionSemester executionSemester = FenixFramework.getDomainObject(infoExecutionPeriod.getExternalId());
        final DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanId);
        ExecutionDegree executionDegree = degreeCurricularPlan.getExecutionDegreeByYear(executionSemester.getExecutionYear());
        if (executionDegree == null) {
            executionDegree = degreeCurricularPlan.getMostRecentExecutionDegree();

            if (executionDegree != null) {
                infoExecutionPeriod =
                        InfoExecutionPeriod.newInfoFromDomain(executionDegree.getExecutionYear().getExecutionSemesterFor(1));
                request.setAttribute("indice", infoExecutionPeriod.getExternalId());
                escolherContextoForm.set("indice", infoExecutionPeriod.getExternalId());
                RequestUtils.setExecutionPeriodToRequest(request, infoExecutionPeriod);
                request.setAttribute(PresentationConstants.EXECUTION_PERIOD, infoExecutionPeriod);
                request.setAttribute(PresentationConstants.EXECUTION_PERIOD_OID, infoExecutionPeriod.getExternalId().toString());
View Full Code Here


    public ExecutionSemester getBeginBolonhaExecutionPeriod() {
        return ExecutionSemester.readFirstBolonhaExecutionPeriod();
    }

    private ExecutionSemester getFirstExecutionPeriodOfFirstExecutionDegree() {
        final ExecutionDegree executionDegree = getParentDegreeCurricularPlan().getFirstExecutionDegree();
        return executionDegree != null ? executionDegree.getExecutionYear().getFirstExecutionPeriod() : getBeginBolonhaExecutionPeriod();
    }
View Full Code Here

        super(roleTypes, candidacy);
    }

    @Override
    protected void internalExecute() {
        final ExecutionDegree executionDegree = getExecutionDegree();
        final Registration registration = createRegistration();
        enrolStudentInCurricularCourses(executionDegree, registration);
        associateShiftsFor(registration);
        //assignMeasurementTestShift(registration);
        Signal.emit("academic.candidacy.registration.created", new RegistrationCreatedByCandidacy(registration,
View Full Code Here

    }

    public ActionForward removeDegreeFromGroup(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) {
        final OutboundMobilityContextBean outboundMobilityContextBean = getRenderedObject();
        final ExecutionDegree executionDegree = getDomainObject(request, "executionDegreeOid");
        outboundMobilityContextBean.setExecutionDegree(executionDegree);
        outboundMobilityContextBean.removeDegreeFromGroup();
        RenderUtils.invalidateViewState();
        return prepare(mapping, request, outboundMobilityContextBean);
    }
View Full Code Here

            context = (ContextSelectionBean) renderedObject;
        } else if (request.getAttribute(PresentationConstants.CONTEXT_SELECTION_BEAN) != null) {
            context = (ContextSelectionBean) request.getAttribute(PresentationConstants.CONTEXT_SELECTION_BEAN);
        } else {
            AcademicInterval academicInterval = null;
            ExecutionDegree executionDegree = null;
            CurricularYear curricularYear = null;
            String courseName = null;
            if (request.getAttribute(PresentationConstants.ACADEMIC_INTERVAL) != null) {
                String academicIntervalStr = (String) request.getAttribute(PresentationConstants.ACADEMIC_INTERVAL);
                academicInterval = AcademicInterval.getAcademicIntervalFromResumedString(academicIntervalStr);
View Full Code Here

public class ReadProfessorshipsAndResponsibilitiesByExecutionDegreeAndExecutionPeriod {

    @Atomic
    public static List run(String executionDegreeId, Integer semester, Integer teacherType) throws FenixServiceException {

        final ExecutionDegree executionDegree = FenixFramework.getDomainObject(executionDegreeId);

        List professorships;
        if (semester.intValue() == 0) {
            professorships =
                    Professorship.readByDegreeCurricularPlanAndExecutionYear(executionDegree.getDegreeCurricularPlan(),
                            executionDegree.getExecutionYear());
        } else {
            ExecutionSemester executionSemester = executionDegree.getExecutionYear().getExecutionSemesterFor(semester);
            professorships =
                    Professorship.readByDegreeCurricularPlanAndExecutionPeriod(executionDegree.getDegreeCurricularPlan(),
                            executionSemester);
        }

        List responsibleFors = getResponsibleForsByDegree(executionDegree);
View Full Code Here

        if (executionDegreeId == null) {
            return result;
        }
        try {
            final Person person = id.getPerson();
            ExecutionDegree executionDegree = FenixFramework.getDomainObject(executionDegreeId);
            if (executionDegree == null) {
                return false;
            }
            Coordinator coordinator = executionDegree.getCoordinatorByTeacher(person);

            result = coordinator != null;

        } catch (Exception e) {
            return false;
View Full Code Here

    public boolean isCoordinatorForPhdProgram(Person person) {
        if (getPhdProgram().getDegree() == null) {
            return false;
        }

        final ExecutionDegree executionDegree =
                getPhdProgram().getDegree().getLastActiveDegreeCurricularPlan()
                        .getExecutionDegreeByAcademicInterval(ExecutionYear.readCurrentExecutionYear().getAcademicInterval());

        if (executionDegree != null) {
            for (final Coordinator coordinator : executionDegree.getCoordinatorsListSet()) {
                if (coordinator.getPerson() == person) {
                    return true;
                }
            }
        }
View Full Code Here

        final HasExecutionSemester hasExecutionSemester = (HasExecutionSemester) source;
        final ExecutionSemester executionPeriod = hasExecutionSemester.getExecutionPeriod();

        final HasExecutionDegree hasExecutionDegree = (HasExecutionDegree) source;
        final ExecutionDegree executionDegree = hasExecutionDegree.getExecutionDegree();
        final DegreeCurricularPlan degreeCurricularPlan = executionDegree.getDegreeCurricularPlan();

        if (executionPeriod != null && executionDegree != null) {
            for (final ExecutionCourse executionCourse : executionPeriod.getAssociatedExecutionCoursesSet()) {
                if (matches(executionCourse, degreeCurricularPlan)) {
                    executionCourses.add(executionCourse);
View Full Code Here

            return result;
        }
        try {
            final Person person = id.getPerson();

            ExecutionDegree executionDegree = FenixFramework.getDomainObject(infoExecutionDegreeId);
            ExecutionYear executionYear = executionDegree.getExecutionYear();

            Coordinator coordinator = executionDegree.getCoordinatorByTeacher(person);

            result = (coordinator != null) && executionYear.isCurrent();

        } catch (Exception e) {
            return false;
View Full Code Here

TOP

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

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.