Package org.libreplan.importers

Examples of org.libreplan.importers.OrderDTO


        InputStream file;

        try {
            file = new FileInputStream(filename);

            OrderDTO importData = orderImporter.getImportData(file, filename);

            assertEquals(importData.name, "T1R1FCT2R2");

            assertEquals(importData.tasks.size(), 2);
View Full Code Here


        InputStream file;

        try {
            file = new FileInputStream(filename);

            OrderDTO importData = orderImporter.getImportData(file, filename);

            assertEquals(importData.tasks.size(), 2);

            assertEquals(importData.tasks.get(0).name, "Tarea1");
View Full Code Here

        List<BaseCalendar> baseCalendars = calendarImporterMPXJ
                .getBaseCalendars(calendarDTOs);

        calendarImporterMPXJ.storeBaseCalendars(baseCalendars);

        OrderDTO importData = calendarImporterMPXJ.getOrderDTO(file);

        Order order = orderImporterMPXJ.convertImportDataToOrder(importData,
                true);

        TaskGroup taskGroup = orderImporterMPXJ.createTask(importData, true);
View Full Code Here

     *            Name of the file that we want to import.
     */
    @Transactional
    private void importProject(InputStream streamData, String file) {

        OrderDTO importData = orderImporterMPXJ.getImportData(streamData, file);

        Order order = orderImporterMPXJ.convertImportDataToOrder(importData,
                false);

        TaskGroup taskGroup = orderImporterMPXJ.createTask(importData, false);
View Full Code Here

TOP

Related Classes of org.libreplan.importers.OrderDTO

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.