Examples of ExecutionCourse


Examples of org.fenixedu.academic.domain.ExecutionCourse

            Professorship professorship = (Professorship) input;
            InfoProfessorship infoProfessorShip = InfoProfessorship.newInfoFromDomain(professorship);

            final DetailedProfessorship detailedProfessorship = new DetailedProfessorship();

            ExecutionCourse executionCourse = professorship.getExecutionCourse();
            List executionCourseCurricularCoursesList = getInfoCurricularCourses(detailedProfessorship, executionCourse);

            detailedProfessorship.setResponsibleFor(professorship.getResponsibleFor());

            detailedProfessorship.setInfoProfessorship(infoProfessorShip);
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionCourse

    public static void writeByStudent(final String executioCourseOID, final String evaluationOID, final List<StudentMark> marks)
            throws FenixServiceException {
        check(RolePredicates.TEACHER_PREDICATE);

        final Evaluation evaluation = FenixFramework.getDomainObject(evaluationOID);
        final ExecutionCourse executionCourse = FenixFramework.getDomainObject(executioCourseOID);

        writeMarks(convertMarks(executionCourse, marks), executionCourse, evaluation);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionCourse

    public static void writeByAttend(final String executioCourseOID, final String evaluationOID, final List<AttendsMark> marks)
            throws FenixServiceException {
        check(RolePredicates.TEACHER_PREDICATE);

        final Evaluation evaluation = FenixFramework.getDomainObject(evaluationOID);
        final ExecutionCourse executionCourse = FenixFramework.getDomainObject(executioCourseOID);

        writeMarks(marks, executionCourse, evaluation);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionCourse

            HttpServletResponse response) throws FenixServiceException {

        DegreesMergeBean degreeBean = getRenderedObject("degreeBean");
        RenderUtils.invalidateViewState();

        ExecutionCourse sourceExecutionCourse = degreeBean.getSourceExecutionCourse();
        ExecutionCourse destinationExecutionCourse = degreeBean.getDestinationExecutionCourse();

        Boolean error = false;

        String sourceName = sourceExecutionCourse.getName() + " [" + sourceExecutionCourse.getDegreePresentationString() + "]";
        String destinationName =
                destinationExecutionCourse.getName() + " [" + destinationExecutionCourse.getDegreePresentationString() + "]";
        String periodName =
                destinationExecutionCourse.getExecutionPeriod().getName() + " "
                        + destinationExecutionCourse.getExecutionPeriod().getYear();

        try {
            MergeExecutionCourses.merge(destinationExecutionCourse, sourceExecutionCourse);
        } catch (DomainException ex) {
            error = true;
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionCourse

        List<String> internalIds = new ArrayList<String>();
        internalIds.add(executionCourseId);

        List<String> errorCodes = new ArrayList<String>();

        ExecutionCourse executionCourseToBeDeleted = FenixFramework.getDomainObject(executionCourseId);
        String executionCourseName = executionCourseToBeDeleted.getNome();
        String executionCourseSigla = executionCourseToBeDeleted.getSigla();

        try {
            errorCodes = DeleteExecutionCourses.run(internalIds);
        } catch (FenixServiceException fenixServiceException) {
            throw new FenixActionException(fenixServiceException.getMessage());
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionCourse

    protected void prepareReturnSessionBean(HttpServletRequest request, Boolean chooseNotLinked, String executionCourseId) {
        // Preparing sessionBean for the EditExecutionCourseDA.list...Actions...
        String executionPeriodId = (String) request.getAttribute("executionPeriodId");

        ExecutionCourse executionCourse = null;
        if (!org.apache.commons.lang.StringUtils.isEmpty(executionCourseId)) {
            executionCourse = FenixFramework.getDomainObject(executionCourseId);
        }
        ExecutionSemester executionPeriod = FenixFramework.getDomainObject(executionPeriodId);
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionCourse

    private final static String OPTIMUS_NETWORK_PREFIX = "93";

    protected Object run(String executionCourseCode, String evaluationCode, String publishmentMessage, Boolean sendSMS,
            String announcementTitle) throws ExcepcaoInexistente, FenixServiceException {

        final ExecutionCourse executionCourse = FenixFramework.getDomainObject(executionCourseCode);
        final Evaluation evaluation = FenixFramework.getDomainObject(evaluationCode);

        if (publishmentMessage == null || publishmentMessage.length() == 0) {
            evaluation.setPublishmentMessage(" ");
        } else {
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionCourse

            List<ExecutionCourse> executionCourseList =
                    degreeCurricularPlan.getExecutionCoursesByExecutionPeriodAndSemesterAndYear(executionSemester,
                            curricularYear, infoExecutionPeriod.getSemester());

            for (int i = 0; i < executionCourseList.size(); i++) {
                ExecutionCourse aux = executionCourseList.get(i);
                InfoExecutionCourse infoExecutionCourse = InfoExecutionCourse.newInfoFromDomain(aux);
                infoExecutionCourseList.add(infoExecutionCourse);
            }
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionCourse

public class CreateAdHocEvaluation {

    protected void run(String executionCourseID, String name, String description, GradeScale gradeScale)
            throws FenixServiceException {

        ExecutionCourse executionCourse = FenixFramework.getDomainObject(executionCourseID);

        if (executionCourse == null) {
            throw new FenixServiceException("error.noExecutionCourse");
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.ExecutionCourse

    public ActionForward dissociateCurricularCourse(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixActionException {

        String executionCourseId = RequestUtils.getAndSetStringToRequest(request, "executionCourseId");
        String curricularCourseId = RequestUtils.getAndSetStringToRequest(request, "curricularCourseId");
        ExecutionCourse executionCourse = FenixFramework.getDomainObject(executionCourseId);
        String executionCourseName = executionCourse.getName() + " [" + executionCourse.getDegreePresentationString() + "]";

        try {
            DissociateCurricularCourseByExecutionCourseId.run(executionCourseId, curricularCourseId);
            CurricularCourse curricularCourse = FenixFramework.getDomainObject(curricularCourseId);
            addActionMessage("success", request, "message.manager.executionCourseManagement.dissociate.success",
                    curricularCourse.getName(), curricularCourse.getDegreeCurricularPlan().getName());
        } catch (FenixServiceException e) {
            throw new FenixActionException(e);
        }

        Set<Degree> degrees = executionCourse.getDegreesSortedByDegreeName();
        // destination attributes
        String originExecutionDegreeId = RequestUtils.getAndSetStringToRequest(request, "originExecutionDegreeId");
        ExecutionDegree originExecutionDegree = FenixFramework.getDomainObject(originExecutionDegreeId);
        request.setAttribute("originExecutionDegreeName", originExecutionDegree.getPresentationName());
        Boolean chooseNotLinked = Boolean.valueOf(RequestUtils.getAndSetStringToRequest(request, "executionCoursesNotLinked"));
        String curricularYearId = RequestUtils.getAndSetStringToRequest(request, "curricularYearId");

        if (!degrees.contains(originExecutionDegree.getDegree())) {
            ExecutionCourseBean sessionBean = new ExecutionCourseBean();
            sessionBean.setSourceExecutionCourse(executionCourse);
            sessionBean.setExecutionSemester(executionCourse.getExecutionPeriod());
            sessionBean.setChooseNotLinked(chooseNotLinked);
            CurricularYear curYear = FenixFramework.getDomainObject(curricularYearId);
            sessionBean.setExecutionDegree(originExecutionDegree);
            sessionBean.setCurricularYear(curYear);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.