Examples of PlanningState


Examples of org.libreplan.web.planner.order.PlanningStateCreator.PlanningState

                .getTransactionService();
        return transactionService
                .runOnReadOnlyTransaction(new IOnTransaction<List<TaskElement>>() {
                    @Override
                    public List<TaskElement> execute() {
                        PlanningState state = retrieveOrCreate();
                        return criticalPathFor(state, resourcesSearcher);
                    }

                    private PlanningState retrieveOrCreate() {
                        return planningStateCreator.retrieveOrCreate(desktop,
View Full Code Here

Examples of org.libreplan.web.planner.order.PlanningStateCreator.PlanningState

    @Override
    @Transactional(readOnly = true)
    public ResourceLoadDisplayData calculateDataToDisplay(
            ResourceLoadParameters parameters) {

        PlanningState planningState = parameters.getPlanningState();
        if (planningState != null) {
            planningState.reattach();
            planningState.reassociateResourcesWithSession();
        }
        ResourceAllocationsFinder<?> allocationsFinder = create(parameters);
        List<LoadTimeLine> loadTimeLines = allocationsFinder.buildTimeLines();
        return new ResourceLoadDisplayData(loadTimeLines,
                parameters.getInitDateFilter(),
View Full Code Here

Examples of org.libreplan.web.planner.order.PlanningStateCreator.PlanningState

        abstract Map<T, List<ResourceAllocation<?>>> getFoundAllocations();

        abstract Paginator<T> getPaginator();

        Scenario getCurrentScenario() {
            PlanningState state = parameters.getPlanningState();
            if (state != null) {
                return state.getCurrentScenario();
            }
            return scenarioManager.getCurrent();
        }
View Full Code Here

Examples of org.libreplan.web.planner.order.PlanningStateCreator.PlanningState

                List<TaskElement> criticalPath = orderPlanningController.getCriticalPath();
                if (criticalPath == null) {
                    criticalPath = getCriticalPath(mode.getOrder(),
                            getDesktop());
                }
                PlanningState planningState = getPlanningState(mode.getOrder(), getDesktop());
                Order currentOrder = planningState.getOrder();
                dashboardController.setCurrentOrder(planningState,
                        criticalPath);
                breadcrumbs.getChildren().clear();
                breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
                breadcrumbs.appendChild(new Label(getSchedulingLabel()));
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.