Package eu.planets_project.pp.plato.xml

Examples of eu.planets_project.pp.plato.xml.ProjectImporter.importProjects()


               
                logText = "Test plan: " + demoFile.getAbsolutePath();
                System.out.println(logText);
                log.info(logText);
               
                List<Plan> importedPlans = importer.importProjects(demoFile.getAbsolutePath());
               
                assert importedPlans.size() == 1;
               
                logText = " - organisation: "+ importedPlans.get(0).getPlanProperties().getOrganization();
               
View Full Code Here


                    InputStream in = Thread.currentThread()
                    .getContextClassLoader().getResourceAsStream(
                            xmlFileName);
                    ProjectImporter projectImporter = new ProjectImporter();
                    try {
                        for (Plan plan : projectImporter.importProjects(in)) {

                            em.persist(plan);
                            em.flush();
                        }
                    } catch (IOException e) {
View Full Code Here

                    InputStream in = Thread.currentThread()
                    .getContextClassLoader().getResourceAsStream(
                            xmlFileName);
                    ProjectImporter projectImporter = new ProjectImporter();
                    try {
                        for (Plan plan : projectImporter.importProjects(in)) {
                            PlanProperties pp = plan.getPlanProperties();
                            // We set the current user as the owner of the project.
                            if (user == null) {
                                log.error("user is null! why?");
                            } else {
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.