Package org.libreplan.business.common

Examples of org.libreplan.business.common.IAdHocTransactionService


        this.planningStateCreator = planningStateCreator;
        this.resourcesSearcher = resourcesSearcher;
    }

    List<TaskElement> getCriticalPath(final Order order, final Desktop desktop) {
        IAdHocTransactionService transactionService = Registry
                .getTransactionService();
        return transactionService
                .runOnReadOnlyTransaction(new IOnTransaction<List<TaskElement>>() {
                    @Override
                    public List<TaskElement> execute() {
                        PlanningState state = retrieveOrCreate();
                        return criticalPathFor(state, resourcesSearcher);
View Full Code Here


                planningStateCreator, resourcesSearcher);
        return builder.getCriticalPath(order, desktop);
    }

    PlanningState getPlanningState(final Order order, final Desktop desktop) {
        IAdHocTransactionService transactionService = Registry
                .getTransactionService();
        return transactionService
                .runOnReadOnlyTransaction(new IOnTransaction<PlanningState>() {
                    @Override
                    public PlanningState execute() {
                        return planningStateCreator.retrieveOrCreate(desktop,
                                order);
View Full Code Here

TOP

Related Classes of org.libreplan.business.common.IAdHocTransactionService

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.