Package eu.planets_project.pp.plato.xml

Examples of eu.planets_project.pp.plato.xml.ProjectExporter.addProject()


                tempDir.mkdirs();

                List<Integer> uploadIDs = new ArrayList<Integer>();
                List<Integer> recordIDs = new ArrayList<Integer>();
                try {
                    exporter.addProject(list.get(0), doc, uploadIDs, recordIDs);
                   
                    writeBinaryObjects(recordIDs, uploadIDs, tempPath, encoder);
                    // perform XSLT transformation to get the DATA into the PLANS
                    XMLWriter writer = new XMLWriter(new FileOutputStream("/tmp/testout"+System.currentTimeMillis()+".xml"));
                    writer.write(doc);
View Full Code Here


            if (list.size() != 1) {
                FacesMessages.instance().add(FacesMessage.SEVERITY_ERROR,
                        "Skipping the export of the plan with properties"+id+": Couldnt load.");
            } else {
                //log.debug("adding project "+p.getplanProperties().getName()+" to XML...");
                exporter.addProject(list.get(0), doc, uploadIDs, recordIDs);
            }
            list.clear();
            list = null;
           
            log.info("XMLExport: addString destinationed project ppid="+id);
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.