Examples of OrderVersion


Examples of org.libreplan.business.scenarios.entities.OrderVersion

        order.setCode(UUID.randomUUID().toString());
        order.setInitDate(new Date());
        BaseCalendar basicCalendar = BaseCalendarTest.createBasicCalendar();
        calendarDAO.save(basicCalendar);
        order.setCalendar(basicCalendar);
        OrderVersion orderVersion = ResourceAllocationDAOTest
                .setupVersionUsing(scenarioManager, order);
        order.useSchedulingDataFor(orderVersion);
        return order;
    }
View Full Code Here

Examples of org.libreplan.business.scenarios.entities.OrderVersion

            return true;
        }

        @Override
        public void saveVersioningInfo() {
            OrderVersion orderVersion = order.getCurrentVersionInfo()
                    .getOrderVersion();
            if (order.isNewObject()) {
                scenarioDAO.updateDerivedScenariosWithNewVersion(null, order,
                        currentScenario, orderVersion);
            }
            orderVersion.savingThroughOwner();
            synchronizeWithSchedule(order, getPersistence());
            order.writeSchedulingDataChanges();
        }
View Full Code Here

Examples of org.libreplan.business.scenarios.entities.OrderVersion

            order.writeSchedulingDataChanges();
        }

        private void createAndSaveNewOrderVersion(Scenario currentScenario,
                OrderVersion newOrderVersion) {
            OrderVersion previousOrderVersion = currentScenario
                    .getOrderVersion(order);
            currentScenario.setOrderVersion(order, newOrderVersion);
            scenarioDAO.updateDerivedScenariosWithNewVersion(
                    previousOrderVersion, order, currentScenario,
                    newOrderVersion);
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.