Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.ExecutionCourse


public class ListExecutionCourseTeachersToShowSummariesInDepartmentAdmOfficeProvider implements DataProvider {

    @Override
    public Object provide(Object source, Object currentValue) {
        ExecutionCourse executionCourse = ((ShowSummariesBean) source).getExecutionCourse();
        Professorship professorshipLogged = ((ShowSummariesBean) source).getProfessorshipLogged();
        List<SummaryTeacherBean> teachers = new ArrayList<SummaryTeacherBean>();
        if (executionCourse != null && professorshipLogged != null) {
            teachers.add(teachers.size(), new SummaryTeacherBean(professorshipLogged));
            teachers.add(teachers.size(), new SummaryTeacherBean(Boolean.TRUE));
View Full Code Here


    public static final ExecutionCourseCoordinatorAuthorizationFilter instance =
            new ExecutionCourseCoordinatorAuthorizationFilter();

    protected ExecutionYear getSpecificExecutionYear(String executionCourseID) {
        ExecutionCourse executionCourse = FenixFramework.getDomainObject(executionCourseID);

        return (executionCourse == null) ? null : executionCourse.getExecutionYear();
    }
View Full Code Here

public class ListShiftsToShowSummariesProvider implements DataProvider {

    @Override
    public Object provide(Object source, Object currentValue) {
        ShowSummariesBean bean = (ShowSummariesBean) source;
        ExecutionCourse executionCourse = bean.getExecutionCourse();
        Set<Shift> shifts = new TreeSet<Shift>(Shift.SHIFT_COMPARATOR_BY_TYPE_AND_ORDERED_LESSONS);
        if (executionCourse != null) {
            shifts.addAll(executionCourse.getAssociatedShifts());
        }
        return shifts;
    }
View Full Code Here

        List infoExecutionCourseList = (List) CollectionUtils.collect(executionCourseList, new Transformer() {

            @Override
            public Object transform(Object input) {
                ExecutionCourse executionCourse = (ExecutionCourse) input;
                InfoExecutionCourse infoExecutionCourse = InfoExecutionCourse.newInfoFromDomain(executionCourse);
                return infoExecutionCourse;
            }
        });
View Full Code Here

public class ListExecutionCourseTeachersToShowSummariesProvider implements DataProvider {

    @Override
    public Object provide(Object source, Object currentValue) {
        ExecutionCourse executionCourse = ((ShowSummariesBean) source).getExecutionCourse();
        List<SummaryTeacherBean> teachers = new ArrayList<SummaryTeacherBean>();
        Set<Professorship> professorships = new TreeSet<Professorship>(Professorship.COMPARATOR_BY_PERSON_NAME);
        if (executionCourse != null) {
            professorships.addAll(executionCourse.getProfessorshipsSet());
            for (Professorship professorship : professorships) {
                teachers.add(teachers.size(), new SummaryTeacherBean(professorship));
            }
            teachers.add(teachers.size(), new SummaryTeacherBean(Boolean.TRUE));
        }
View Full Code Here

        return ((CreateLessonPlanningBean) source).getExecutionCourse();
    }

    @Override
    public Object provide(Object source, Object currentValue) {
        ExecutionCourse executionCourse = getExecutionCourse(source);
        return (getExecutionCourse(source) != null) ? executionCourse.getShiftTypes() : new HashSet<ShiftType>();
    }
View Full Code Here

        infoCurriculum.getInfoCurricularCourse().setInfoScopes(scopes);

        List<InfoExecutionCourse> infoExecutionCourses = new ArrayList<InfoExecutionCourse>();
        Iterator iterExecutionCourses = allExecutionCourses.iterator();
        while (iterExecutionCourses.hasNext()) {
            ExecutionCourse executionCourse = (ExecutionCourse) iterExecutionCourses.next();
            infoExecutionCourses.add(InfoExecutionCourse.newInfoFromDomain(executionCourse));
        }
        infoCurriculum.getInfoCurricularCourse().setInfoAssociatedExecutionCourses(infoExecutionCourses);
        return infoCurriculum;
    }
View Full Code Here

        infoCurriculum.getInfoCurricularCourse().setInfoScopes(scopes);

        List<InfoExecutionCourse> infoExecutionCourses = new ArrayList<InfoExecutionCourse>();
        Iterator iterExecutionCourses = associatedExecutionCourses.iterator();
        while (iterExecutionCourses.hasNext()) {
            ExecutionCourse executionCourse = (ExecutionCourse) iterExecutionCourses.next();
            infoExecutionCourses.add(InfoExecutionCourse.newInfoFromDomain(executionCourse));
        }
        infoCurriculum.getInfoCurricularCourse().setInfoAssociatedExecutionCourses(infoExecutionCourses);
        return infoCurriculum;
    }
View Full Code Here

     * @throws ExcepcaoPersistencia
     */
    public InfoSiteShifts getInfoSiteShifts(InfoSiteShifts component, String groupPropertiesCode, String studentGroupCode)
            throws FenixServiceException {
        List<InfoShift> infoShifts = new ArrayList<InfoShift>();
        ExecutionCourse executionCourse = null;

        Grouping groupProperties = FenixFramework.getDomainObject(groupPropertiesCode);
        if (groupProperties == null) {
            return null;
        }
        if (studentGroupCode != null) {
            StudentGroup studentGroup = FenixFramework.getDomainObject(studentGroupCode);
            if (studentGroup == null) {
                component.setShifts(null);
                return component;
            }

            component.setOldShift(InfoShift.newInfoFromDomain(studentGroup.getShift()));
        }

        IGroupEnrolmentStrategyFactory enrolmentGroupPolicyStrategyFactory = GroupEnrolmentStrategyFactory.getInstance();
        IGroupEnrolmentStrategy strategy = enrolmentGroupPolicyStrategyFactory.getGroupEnrolmentStrategyInstance(groupProperties);

        if (strategy.checkHasShift(groupProperties)) {

            List executionCourses = new ArrayList();
            executionCourses = groupProperties.getExecutionCourses();

            Iterator iterExecutionCourses = executionCourses.iterator();
            List<Shift> shifts = new ArrayList<Shift>();
            while (iterExecutionCourses.hasNext()) {
                ExecutionCourse executionCourse2 = (ExecutionCourse) iterExecutionCourses.next();
                Set<Shift> someShifts = executionCourse2.getAssociatedShifts();

                shifts.addAll(someShifts);
            }

            if (shifts == null || shifts.isEmpty()) {
View Full Code Here

        }

        private void generateStatisticsLinkCell(final HtmlTableRow row, final Enrolment enrolment) {
            if (enrolment.getStudent() == AccessControl.getPerson().getStudent()
                    && enrolment.getStudent().hasAnyActiveRegistration()) {
                ExecutionCourse executionCourse = enrolment.getExecutionCourseFor(enrolment.getExecutionPeriod());
                if (executionCourse != null) {
                    final HtmlInlineContainer inlineContainer = new HtmlInlineContainer();
                    inlineContainer.addChild(createExecutionCourseStatisticsLink(
                            BundleUtil.getString(Bundle.APPLICATION, "label.statistics"), executionCourse));
                    final HtmlTableCell cell = row.createCell();
View Full Code Here

TOP

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

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.