Package pt.ist.fenixWebFramework.rendererExtensions.converters

Examples of pt.ist.fenixWebFramework.rendererExtensions.converters.DomainObjectKeyConverter.convert()


                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);
View Full Code Here


                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);
View Full Code Here

                    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

                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);
View Full Code Here

                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);
View Full Code Here

                    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

            ArrayList<ErasmusExtraCurricularEnrolmentBean> list =
                    new ArrayList<ErasmusBolonhaStudentEnrollmentBean.ErasmusExtraCurricularEnrolmentBean>();
            final DomainObjectKeyConverter converter = new DomainObjectKeyConverter();

            for (String string : (String[]) value) {
                list.add(new ErasmusExtraCurricularEnrolmentBean((CurricularCourse) converter.convert(type, string), true));
            }

            return list;
        }
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.