Package pt.ist.fenixWebFramework.rendererExtensions.converters

Examples of pt.ist.fenixWebFramework.rendererExtensions.converters.DomainObjectKeyConverter


        return degreeModules;
    }

    @Override
    public Converter getConverter() {
        return new DomainObjectKeyConverter();
    }
View Full Code Here


            if (value == null) {
                return null;
            }

            final DomainObjectKeyConverter converter = new DomainObjectKeyConverter();
            final List<SelectedCurricularCourse> result = new ArrayList<SelectedCurricularCourse>();

            final String[] values = (String[]) value;
            for (String key : values) {
                String[] parts = key.split(",");
                if (parts.length < 3) {
                    throw new ConversionException("invalid key format: " + key);
                }

                final CurricularCourse curricularCourse = (CurricularCourse) converter.convert(type, parts[0]);
                final CurriculumGroup curriculumGroup = (CurriculumGroup) converter.convert(type, parts[1]);
                final StudentCurricularPlan studentCurricularPlan = (StudentCurricularPlan) converter.convert(type, parts[2]);

                final SelectedCurricularCourse selectedCurricularCourse =
                        new SelectedCurricularCourse(curricularCourse, studentCurricularPlan);
                selectedCurricularCourse.setCurriculumGroup(curriculumGroup);
                result.add(selectedCurricularCourse);
View Full Code Here

        return result;
    }

    @Override
    public Converter getConverter() {
        return new DomainObjectKeyConverter();
    }
View Full Code Here

        return degreeModules;
    }

    @Override
    public Converter getConverter() {
        return new DomainObjectKeyConverter();
    }
View Full Code Here

            if (value == null) {
                return null;
            }

            final DomainObjectKeyConverter converter = new DomainObjectKeyConverter();
            final List<SelectedOptionalCurricularCourse> result = new ArrayList<SelectedOptionalCurricularCourse>();

            final String[] values = (String[]) value;
            for (String key : values) {
                String[] parts = key.split(",");
                if (parts.length < 3) {
                    throw new ConversionException("invalid key format: " + key);
                }

                final OptionalCurricularCourse curricularCourse = (OptionalCurricularCourse) converter.convert(type, parts[0]);
                final CurriculumGroup curriculumGroup = (CurriculumGroup) converter.convert(type, parts[1]);
                final StudentCurricularPlan studentCurricularPlan = (StudentCurricularPlan) converter.convert(type, parts[2]);

                final SelectedOptionalCurricularCourse selectedCurricularCourse =
                        new SelectedOptionalCurricularCourse(curricularCourse, studentCurricularPlan);
                selectedCurricularCourse.setCurriculumGroup(curriculumGroup);
                result.add(selectedCurricularCourse);
View Full Code Here

        return countryUnitSet;
    }

    @Override
    public Converter getConverter() {
        return new DomainObjectKeyConverter();
    }
View Full Code Here

        return result;
    }

    @Override
    public Converter getConverter() {
        return new DomainObjectKeyConverter();
    }
View Full Code Here

        return result;
    }

    @Override
    public Converter getConverter() {
        return new DomainObjectKeyConverter();
    }
View Full Code Here

        return lessons;
    }

    @Override
    public Converter getConverter() {
        return new DomainObjectKeyConverter();
    }
View Full Code Here

        return degreeType.canCreateStudent() && !degreeType.canCreateStudentOnlyWithCandidacy();
    }

    @Override
    public Converter getConverter() {
        return new DomainObjectKeyConverter();
    }
View Full Code Here

TOP

Related Classes of pt.ist.fenixWebFramework.rendererExtensions.converters.DomainObjectKeyConverter

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.